21 theRotation = rotationInDegrees;
29 theHorizontalScale = horizontal;
30 theVerticalScale = vertical;
37 NEWMAT::Matrix r(2,2);
38 NEWMAT::Matrix s(2,2);
40 double radRotation = theRotation*
M_PI/180.0;
42 r << cos(radRotation) << -sin(radRotation)
43 << sin(radRotation) << cos(radRotation);
45 s << theHorizontalScale << theVerticalShear
46 << theHorizontalShear << theVerticalScale;
48 theAffineTransform = s*r;
54 getBoundingBox(clippedBox);
56 if(!theClippingBox.hasNans()&&
57 (theClippingBox.width()>1)&&(theClippingBox.height()>1) )
59 clippedBox = clippedBox.
clipToRect(theClippingBox);
66 getBoundingClipBox(clipBox);
virtual ossimIrect getBoundingClipBox()
ossimIrect clipToRect(const ossimIrect &rect) const
virtual void setScale(double horizontal, double vertical)
virtual void setRotation(double rotationInDegrees)
RTTI_DEF2(ossimFont, "ossimFont", ossimObject, ossimErrorStatusInterface)