OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimFont.h>
Public Member Functions | |
ossimFont () | |
ossimFont (const ossimString &familyName, const ossimString &styleName, int horizontalPixelSize, int verticalPixelSize, int horizontalDeviceUnits=72, int verticalDeviceUnits=72) | |
ossimFont (const ossimFont &rhs) | |
virtual ossimObject * | dup () const =0 |
virtual bool | isFixed () const =0 |
virtual void | getFixedSizes (vector< ossimIpt > &sizes) const =0 |
virtual const ossim_uint8 * | getBuf () const =0 |
virtual const ossim_uint8 * | rasterize ()=0 |
virtual const ossim_uint8 * | rasterize (const ossimString &s) |
virtual void | setString (const ossimString &s) |
virtual void | getBoundingBox (ossimIrect &box)=0 |
virtual ossimString | getFamilyName () const |
virtual ossimString | getStyleName () const |
virtual void | setRotation (double rotationInDegrees) |
virtual double | getRotation () const |
virtual void | getRotation (double &rotation) const |
virtual void | setHorizontalVerticalShear (double horizontalShear, double verticalShear) |
virtual void | setVerticalShear (double verticalShear) |
virtual void | setHorizontalShear (double horizontalShear) |
virtual double | getVerticalShear () const |
virtual double | getHorizontalShear () const |
virtual void | setScale (double horizontal, double vertical) |
virtual void | getScale (double &horizontal, double &vertical) |
virtual void | setPixelSize (int horizontalPixelSize, int verticalPixelSize) |
virtual void | setPixelSize (int pixelSize) |
virtual void | getPixelSize (int &horizontal, int &vertical) |
virtual long | getHorizontalPixelSize () const |
virtual ossimIpt | getPixelSize () const |
virtual long | getVerticalPixelSize () const |
virtual void | setDeviceDpi (int horizontalDeviceUnits, int verticalDeviceUnits) |
virtual void | getBufferRect (ossimIrect &bufRect) |
virtual ossimIrect | getBufferRect () |
virtual void | getBoundingClipBox (ossimIrect &clippedBox) |
virtual ossimIrect | getBoundingClipBox () |
virtual void | setClippingBox (const ossimIrect &clipBox=ossimIrect(0, 0, 0, 0)) |
virtual ossimIrect | getClippingBox () const |
bool | isIdentityTransform () const |
virtual void | getFontInformation (vector< ossimFontInformation > &fontInformationList) const |
![]() | |
ossimObject () | |
virtual | ~ossimObject () |
virtual ossimString | getShortName () const |
virtual ossimString | getLongName () const |
virtual ossimString | getDescription () const |
virtual ossimString | getClassName () const |
virtual RTTItypeid | getType () const |
virtual bool | canCastTo (ossimObject *obj) const |
virtual bool | canCastTo (const RTTItypeid &id) const |
virtual bool | canCastTo (const ossimString &parentClassName) const |
virtual bool | saveState (ossimKeywordlist &kwl, const char *prefix=0) const |
virtual bool | loadState (const ossimKeywordlist &kwl, const char *prefix=0) |
virtual std::ostream & | print (std::ostream &out) const |
Generic print method. More... | |
virtual bool | isEqualTo (const ossimObject &obj, ossimCompareType compareType=OSSIM_COMPARE_FULL) const |
virtual void | accept (ossimVisitor &visitor) |
![]() | |
ossimReferenced () | |
ossimReferenced (const ossimReferenced &) | |
ossimReferenced & | operator= (const ossimReferenced &) |
void | ref () const |
increment the reference count by one, indicating that this object has another pointer which is referencing it. More... | |
void | unref () const |
decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
void | unref_nodelete () const |
decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
int | referenceCount () const |
![]() | |
ossimErrorStatusInterface () | |
virtual | ~ossimErrorStatusInterface () |
virtual ossimErrorCode | getErrorStatus () const |
virtual ossimString | getErrorStatusString () const |
virtual void | setErrorStatus (ossimErrorCode error_status) const |
virtual void | setErrorStatus () const |
virtual void | clearErrorStatus () const |
bool | hasError () const |
virtual std::ostream & | print (std::ostream &out) const |
Outputs theErrorStatus as an ossimErrorCode and an ossimString. More... | |
Protected Member Functions | |
virtual | ~ossimFont () |
void | computeMatrix () |
![]() | |
virtual | ~ossimReferenced () |
Protected Attributes | |
ossimString | theStringToRasterize |
ossimString | theFamilyName |
ossimString | theStyleName |
double | theRotation |
double | theHorizontalShear |
double | theVerticalShear |
double | theHorizontalScale |
double | theVerticalScale |
int | theHorizontalPixelSize |
int | theVerticalPixelSize |
int | theHorizontalDeviceUnits |
int | theVerticalDeviceUnits |
ossimIrect | theClippingBox |
ossimIpt | theLocalOrigin |
NEWMAT::Matrix | theAffineTransform |
![]() | |
ossimErrorCode | theErrorStatus |
Definition at line 25 of file ossimFont.h.
|
inline |
|
inline |
|
inline |
Definition at line 71 of file ossimFont.h.
References theAffineTransform, theClippingBox, theFamilyName, theHorizontalDeviceUnits, theHorizontalPixelSize, theHorizontalScale, theHorizontalShear, theLocalOrigin, theRotation, theStringToRasterize, theStyleName, theVerticalDeviceUnits, theVerticalScale, and theVerticalShear.
|
inlineprotectedvirtual |
Definition at line 290 of file ossimFont.h.
|
protected |
Definition at line 35 of file ossimFont.cpp.
References M_PI.
Referenced by setHorizontalVerticalShear().
|
pure virtual |
Reimplemented from ossimObject.
Implemented in ossimGdBitmapFont.
Referenced by ossimMapCompositionSource::ossimMapCompositionSource(), and ossimVpfAnnotationFeatureInfo::setDrawingFeaturesToAnnotation().
|
pure virtual |
Will return the bounding box of the last string that was set to be rasterized in pixel space
Implemented in ossimGdBitmapFont.
Referenced by ossimMapCompositionSource::addMeterGridLabels(), ossimAnnotationFontObject::computeBoundingRect(), ossimAnnotationFontObject::draw(), ossimAnnotationFontObject::ossimAnnotationFontObject(), ossimAnnotationFontObject::setGeometryInformation(), ossimAnnotationFontObject::setPointSize(), ossimAnnotationFontObject::setRotation(), ossimAnnotationFontObject::setScale(), and ossimAnnotationFontObject::setShear().
|
virtual |
Definition at line 52 of file ossimFont.cpp.
References ossimIrect::clipToRect().
|
virtual |
Definition at line 63 of file ossimFont.cpp.
Referenced by getBufferRect().
|
pure virtual |
Will return the previously rasterized buffer.
Implemented in ossimGdBitmapFont.
|
inlinevirtual |
Will clip the clipping box with the bounding box of the string and this is the viewable information.
If the clipping box is set then this should be used to get the dimensions of the buffer.
Definition at line 252 of file ossimFont.h.
References getBoundingClipBox().
Referenced by ossimAnnotationFontObject::draw().
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Specifies if its helvetica, times new roman ... etc.
Definition at line 133 of file ossimFont.h.
References theFamilyName.
Referenced by getFontInformation(), ossimAnnotationFontObject::print(), and ossimInfo::printFonts().
|
pure virtual |
You can get a list of fixed sizes supported by this font.
Implemented in ossimGdBitmapFont.
|
inlinevirtual |
Definition at line 281 of file ossimFont.h.
References getFamilyName(), getPixelSize(), getStyleName(), and isFixed().
Referenced by ossimVpfAnnotationFeatureInfo::ossimVpfAnnotationFeatureInfo().
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Definition at line 217 of file ossimFont.h.
References theHorizontalPixelSize, and theVerticalPixelSize.
|
inlinevirtual |
Definition at line 228 of file ossimFont.h.
References theHorizontalPixelSize, and theVerticalPixelSize.
Referenced by getFontInformation().
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Specifies if its bold or italic .. etc
Definition at line 141 of file ossimFont.h.
References theStyleName.
Referenced by getFontInformation(), and ossimAnnotationFontObject::print().
|
inlinevirtual |
|
inlinevirtual |
|
pure virtual |
Returns true if this font is a fixed size font
Implemented in ossimGdBitmapFont.
Referenced by getFontInformation().
|
inline |
|
pure virtual |
Will return an internal buffer for rasterizing and will also set the width, and height arguments of the returned buffer.
Implemented in ossimGdBitmapFont.
Referenced by ossimAnnotationFontObject::draw(), and rasterize().
|
inlinevirtual |
Definition at line 113 of file ossimFont.h.
References rasterize(), and setString().
|
inlinevirtual |
Definition at line 266 of file ossimFont.h.
References theClippingBox.
Referenced by ossimAnnotationFontObject::draw().
|
inlinevirtual |
Definition at line 238 of file ossimFont.h.
References theHorizontalDeviceUnits, and theVerticalDeviceUnits.
|
inlinevirtual |
Definition at line 174 of file ossimFont.h.
References setHorizontalVerticalShear(), and theVerticalShear.
|
inlinevirtual |
Definition at line 161 of file ossimFont.h.
References computeMatrix(), theHorizontalShear, and theVerticalShear.
Referenced by ossimAnnotationFontObject::setFontInfo(), setHorizontalShear(), and setVerticalShear().
|
inlinevirtual |
Definition at line 205 of file ossimFont.h.
References theHorizontalPixelSize, and theVerticalPixelSize.
Referenced by ossimFontFactoryRegistry::getDefaultFont(), ossimAnnotationFontObject::setFontInfo(), and setPixelSize().
|
inlinevirtual |
Definition at line 212 of file ossimFont.h.
References setPixelSize().
|
virtual |
Allow us to rotate a font.
Definition at line 19 of file ossimFont.cpp.
Referenced by ossimAnnotationFontObject::setFontInfo().
|
virtual |
Sets the scale of the font. I'll have code in place to perform reflections. This can be specified with a - scale along the direction you wish to reflect.
Definition at line 26 of file ossimFont.cpp.
Referenced by ossimAnnotationFontObject::setFontInfo().
|
inlinevirtual |
Definition at line 119 of file ossimFont.h.
References theStringToRasterize.
Referenced by ossimMapCompositionSource::addMeterGridLabels(), rasterize(), and ossimAnnotationFontObject::setFontInfo().
|
inlinevirtual |
Definition at line 168 of file ossimFont.h.
References setHorizontalVerticalShear(), and theHorizontalShear.
|
protected |
Definition at line 314 of file ossimFont.h.
Referenced by ossimGdBitmapFont::getBoundingBox(), isIdentityTransform(), and ossimFont().
|
protected |
Definition at line 304 of file ossimFont.h.
Referenced by getClippingBox(), ossimFont(), and setClippingBox().
|
protected |
Definition at line 293 of file ossimFont.h.
Referenced by getFamilyName(), and ossimFont().
|
protected |
Definition at line 302 of file ossimFont.h.
Referenced by ossimFont(), and setDeviceDpi().
|
protected |
Definition at line 300 of file ossimFont.h.
Referenced by ossimGdBitmapFont::getBoundingBox(), ossimGdBitmapFont::getFixedSizes(), getHorizontalPixelSize(), getPixelSize(), ossimFont(), and setPixelSize().
|
protected |
Definition at line 298 of file ossimFont.h.
Referenced by ossimGdBitmapFont::getBoundingBox(), getScale(), and ossimFont().
|
protected |
Definition at line 296 of file ossimFont.h.
Referenced by getHorizontalShear(), ossimFont(), setHorizontalVerticalShear(), and setVerticalShear().
|
mutableprotected |
During the compution of the global bounding rect we will Make sure that we save off the upper left since its not really 0,0. We will make sure that the bounding rect is shifted to 0,0 but the shift will be saved. That way we can render the shape correctly later.
Definition at line 312 of file ossimFont.h.
Referenced by ossimFont().
|
protected |
Definition at line 295 of file ossimFont.h.
Referenced by ossimGdBitmapFont::getBoundingBox(), getRotation(), and ossimFont().
|
protected |
Definition at line 292 of file ossimFont.h.
Referenced by ossimGdBitmapFont::getBoundingBox(), ossimFont(), ossimGdBitmapFont::rasterizeNormal(), and setString().
|
protected |
Definition at line 294 of file ossimFont.h.
Referenced by getStyleName(), and ossimFont().
|
protected |
Definition at line 303 of file ossimFont.h.
Referenced by ossimFont(), and setDeviceDpi().
|
protected |
Definition at line 301 of file ossimFont.h.
Referenced by ossimGdBitmapFont::getBoundingBox(), ossimGdBitmapFont::getFixedSizes(), getPixelSize(), getVerticalPixelSize(), and setPixelSize().
|
protected |
Definition at line 299 of file ossimFont.h.
Referenced by ossimGdBitmapFont::getBoundingBox(), getScale(), and ossimFont().
|
protected |
Definition at line 297 of file ossimFont.h.
Referenced by getVerticalShear(), ossimFont(), setHorizontalShear(), and setHorizontalVerticalShear().