|
OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimGdBitmapFont.h>
Public Member Functions | |
| ossimGdBitmapFont (const ossimString &familyName, const ossimString &styleName, const ossimGdFont *gdFontPtr) | |
| ossimGdBitmapFont (const ossimGdBitmapFont &rhs) | |
| virtual | ~ossimGdBitmapFont () |
| virtual ossimObject * | dup () const |
| virtual const ossim_uint8 * | getBuf () const |
| virtual const ossim_uint8 * | rasterize () |
| virtual void | getBoundingBox (ossimIrect &box) |
| bool | isFixed () const |
| virtual void | getFixedSizes (vector< ossimIpt > &sizes) const |
Public Member Functions inherited from ossimFont | |
| ossimFont () | |
| ossimFont (const ossimString &familyName, const ossimString &styleName, int horizontalPixelSize, int verticalPixelSize, int horizontalDeviceUnits=72, int verticalDeviceUnits=72) | |
| ossimFont (const ossimFont &rhs) | |
| virtual const ossim_uint8 * | rasterize (const ossimString &s) |
| virtual void | setString (const ossimString &s) |
| 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 |
Public Member Functions inherited from ossimObject | |
| 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) |
Public Member Functions inherited from ossimReferenced | |
| 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 |
Public Member Functions inherited from ossimErrorStatusInterface | |
| 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 | |
| void | getActualScale (ossimDpt &scales) const |
| void | rasterizeNormal () |
| void | allocateBuffer () |
Protected Member Functions inherited from ossimFont | |
| virtual | ~ossimFont () |
| void | computeMatrix () |
Protected Member Functions inherited from ossimReferenced | |
| virtual | ~ossimReferenced () |
Protected Attributes | |
| const ossimGdFont * | theGdFontPtr |
| long | theBufferSize |
| ossim_uint8 * | theOutputBuffer |
Protected Attributes inherited from ossimFont | |
| 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 |
Protected Attributes inherited from ossimErrorStatusInterface | |
| ossimErrorCode | theErrorStatus |
This is a wrapper for the gd library fonts. Note that this class will currently only support scaling. It will not support any other affine operation.
Definition at line 35 of file ossimGdBitmapFont.h.
| ossimGdBitmapFont::ossimGdBitmapFont | ( | const ossimString & | familyName, |
| const ossimString & | styleName, | ||
| const ossimGdFont * | gdFontPtr | ||
| ) |
| ossimGdBitmapFont::ossimGdBitmapFont | ( | const ossimGdBitmapFont & | rhs | ) |
|
virtual |
|
protected |
Definition at line 222 of file ossimGdBitmapFont.cpp.
References getBoundingBox(), ossimIrect::height(), theBufferSize, theOutputBuffer, and ossimIrect::width().
Referenced by rasterize().
|
inlinevirtual |
Implements ossimFont.
Definition at line 46 of file ossimGdBitmapFont.h.
References ossimGdBitmapFont().
|
protected |
This will take into consideration the point size along the horizontal and vertical and also the scale values. So the actual scale will be:
Scale*(pointSize/fixedSize);
|
virtual |
Will return the bounding box of the last string that was set to be rasterized in pixel space
Implements ossimFont.
Definition at line 50 of file ossimGdBitmapFont.cpp.
References ossimGdFont::h, ossimIrect::ll(), ossimIrect::lr(), max, min, ossimString::size(), ossimFont::theAffineTransform, theGdFontPtr, ossimFont::theHorizontalPixelSize, ossimFont::theHorizontalScale, ossimFont::theRotation, ossimFont::theStringToRasterize, ossimFont::theVerticalPixelSize, ossimFont::theVerticalScale, ossimIrect::ur(), ossimGdFont::w, ossimIpt::x, and ossimIpt::y.
Referenced by allocateBuffer(), and rasterizeNormal().
|
inlinevirtual |
Will return the previously rasterized buffer.
Implements ossimFont.
Definition at line 50 of file ossimGdBitmapFont.h.
References theOutputBuffer.
|
virtual |
You can get a list of fixed sizes supported by this font.
Implements ossimFont.
Definition at line 245 of file ossimGdBitmapFont.cpp.
References ossimFont::theHorizontalPixelSize, and ossimFont::theVerticalPixelSize.
|
inlinevirtual |
Returns true if this font is a fixed size font
Implements ossimFont.
Definition at line 59 of file ossimGdBitmapFont.h.
|
virtual |
Will return an internal buffer for rasterizing and will
Implements ossimFont.
Definition at line 121 of file ossimGdBitmapFont.cpp.
References allocateBuffer(), rasterizeNormal(), theBufferSize, and theOutputBuffer.
|
protected |
Definition at line 135 of file ossimGdBitmapFont.cpp.
References ossimGdFont::data, getBoundingBox(), ossimGdFont::h, ossimIrect::height(), ossimString::length(), ossimString::size(), theGdFontPtr, theOutputBuffer, ossimFont::theStringToRasterize, ossimGdFont::w, and ossimIrect::width().
Referenced by rasterize().
|
protected |
Definition at line 69 of file ossimGdBitmapFont.h.
Referenced by allocateBuffer(), ossimGdBitmapFont(), and rasterize().
|
protected |
Definition at line 67 of file ossimGdBitmapFont.h.
Referenced by getBoundingBox(), and rasterizeNormal().
|
protected |
Definition at line 70 of file ossimGdBitmapFont.h.
Referenced by allocateBuffer(), getBuf(), ossimGdBitmapFont(), rasterize(), rasterizeNormal(), and ~ossimGdBitmapFont().
1.8.14