OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimFontInformation.h>
Public Member Functions | |
ossimFontInformation () | |
ossimFontInformation (const ossimString &family, const ossimString &style, const ossimIpt &pointSize, bool fixedFlag, const ossimDpt &scale=ossimDpt(1.0, 1.0), double rotation=0.0, const ossimDpt &shear=ossimDpt(0.0, 0.0)) | |
ossimFontInformation (const ossimFontInformation &rhs) | |
bool | isFixed () const |
bool | saveState (ossimKeywordlist &kwl, const char *prefix=0) const |
Saves the current state of this object. More... | |
bool | loadState (const ossimKeywordlist &kwl, const char *prefix=0) |
Method to the load (recreate) the state of an object from a keyword list. More... | |
bool | operator== (const ossimFontInformation &rhs) const |
bool | operator!= (const ossimFontInformation &rhs) const |
const ossimFontInformation & | operator= (const ossimFontInformation &rhs) |
Public Attributes | |
ossimString | theFamilyName |
ossimString | theStyleName |
ossimIpt | thePointSize |
bool | theFixedFlag |
ossimDpt | theScale |
double | theRotation |
ossimDpt | theShear |
Static Public Attributes | |
static const char * | FAMILY_NAME_KW = "family_name" |
static const char * | STYLE_NAME_KW = "style_name" |
static const char * | POINT_SIZE_KW = "point_size" |
static const char * | POINT_SIZE_X_KW = "point_size_x" |
static const char * | POINT_SIZE_Y_KW = "point_size_y" |
static const char * | FIXED_FLAG_KW = "fixed_flag" |
static const char * | SHEAR_KW = "shear" |
static const char * | SHEAR_X_KW = "shear_x" |
static const char * | SHEAR_Y_KW = "shear_y" |
static const char * | SCALE_KW = "scale" |
static const char * | SCALE_X_KW = "scale_x" |
static const char * | SCALE_Y_KW = "scale_y" |
static const char * | ROTATION_KW = "rotation" |
Friends | |
OSSIMDLLEXPORT std::ostream & | operator<< (std::ostream &out, const ossimFontInformation &rhs) |
Definition at line 19 of file ossimFontInformation.h.
ossimFontInformation::ossimFontInformation | ( | ) |
Definition at line 42 of file ossimFontInformation.cpp.
ossimFontInformation::ossimFontInformation | ( | const ossimString & | family, |
const ossimString & | style, | ||
const ossimIpt & | pointSize, | ||
bool | fixedFlag, | ||
const ossimDpt & | scale = ossimDpt(1.0,1.0) , |
||
double | rotation = 0.0 , |
||
const ossimDpt & | shear = ossimDpt(0.0, 0.0) |
||
) |
Definition at line 53 of file ossimFontInformation.cpp.
ossimFontInformation::ossimFontInformation | ( | const ossimFontInformation & | rhs | ) |
Definition at line 69 of file ossimFontInformation.cpp.
bool ossimFontInformation::isFixed | ( | ) | const |
bool ossimFontInformation::loadState | ( | const ossimKeywordlist & | kwl, |
const char * | prefix = 0 |
||
) |
Method to the load (recreate) the state of an object from a keyword list.
Return true if ok or false on error.
Keywords:
family_name: style_name: fixed_flag: point_size: ( x, y ) scale: ( x, y ) shear: ( x, y ) rotation:
point_size_x: (deprecated) point_size_y: (deprecated) scale_x: (deprecated) scale_y: (deprecated) shear_x: (deprecated) shear_y: (deprecated)
Definition at line 152 of file ossimFontInformation.cpp.
References FAMILY_NAME_KW, ossimKeywordlist::find(), FIXED_FLAG_KW, POINT_SIZE_KW, POINT_SIZE_X_KW, POINT_SIZE_Y_KW, ROTATION_KW, SCALE_KW, SCALE_X_KW, SCALE_Y_KW, SHEAR_KW, SHEAR_X_KW, SHEAR_Y_KW, STYLE_NAME_KW, theFamilyName, theFixedFlag, thePointSize, theRotation, theScale, theShear, theStyleName, ossimString::toBool(), ossimString::toDouble(), ossimDpt::x, and ossimDpt::y.
Referenced by ossimGeoAnnotationFontObject::loadState(), ossimVpfAnnotationFeatureInfo::loadState(), and ossimFontProperty::setValue().
bool ossimFontInformation::operator!= | ( | const ossimFontInformation & | rhs | ) | const |
Definition at line 289 of file ossimFontInformation.cpp.
References theFamilyName, theFixedFlag, thePointSize, theRotation, theScale, theShear, and theStyleName.
const ossimFontInformation & ossimFontInformation::operator= | ( | const ossimFontInformation & | rhs | ) |
Definition at line 300 of file ossimFontInformation.cpp.
References theFamilyName, theFixedFlag, thePointSize, theRotation, theScale, theShear, and theStyleName.
bool ossimFontInformation::operator== | ( | const ossimFontInformation & | rhs | ) | const |
Definition at line 278 of file ossimFontInformation.cpp.
References theFamilyName, theFixedFlag, thePointSize, theRotation, theScale, theShear, and theStyleName.
bool ossimFontInformation::saveState | ( | ossimKeywordlist & | kwl, |
const char * | prefix = 0 |
||
) | const |
Saves the current state of this object.
For keywords see loadState:
Definition at line 85 of file ossimFontInformation.cpp.
References ossimKeywordlist::add(), ossimString::c_str(), FAMILY_NAME_KW, FIXED_FLAG_KW, POINT_SIZE_KW, POINT_SIZE_X_KW, POINT_SIZE_Y_KW, ROTATION_KW, SCALE_KW, SCALE_X_KW, SCALE_Y_KW, SHEAR_KW, SHEAR_Y_KW, STYLE_NAME_KW, theFamilyName, theFixedFlag, thePointSize, theRotation, theScale, theShear, theStyleName, ossimIpt::toString(), ossimDpt::toString(), ossimIpt::x, ossimDpt::x, ossimIpt::y, and ossimDpt::y.
Referenced by ossimGeoAnnotationFontObject::saveState(), ossimVpfAnnotationFeatureInfo::saveState(), and ossimFontProperty::valueToString().
|
friend |
Definition at line 30 of file ossimFontInformation.cpp.
|
static |
Definition at line 76 of file ossimFontInformation.h.
Referenced by loadState(), and saveState().
|
static |
Definition at line 81 of file ossimFontInformation.h.
Referenced by loadState(), and saveState().
|
static |
Definition at line 78 of file ossimFontInformation.h.
Referenced by loadState(), and saveState().
|
static |
Definition at line 79 of file ossimFontInformation.h.
Referenced by loadState(), and saveState().
|
static |
Definition at line 80 of file ossimFontInformation.h.
Referenced by loadState(), and saveState().
|
static |
Definition at line 88 of file ossimFontInformation.h.
Referenced by loadState(), and saveState().
|
static |
Definition at line 85 of file ossimFontInformation.h.
Referenced by loadState(), and saveState().
|
static |
Definition at line 86 of file ossimFontInformation.h.
Referenced by loadState(), and saveState().
|
static |
Definition at line 87 of file ossimFontInformation.h.
Referenced by loadState(), and saveState().
|
static |
Definition at line 82 of file ossimFontInformation.h.
Referenced by loadState(), and saveState().
|
static |
Definition at line 83 of file ossimFontInformation.h.
Referenced by loadState().
|
static |
Definition at line 84 of file ossimFontInformation.h.
Referenced by loadState(), and saveState().
|
static |
Definition at line 77 of file ossimFontInformation.h.
Referenced by loadState(), and saveState().
ossimString ossimFontInformation::theFamilyName |
Definition at line 91 of file ossimFontInformation.h.
Referenced by loadState(), operator!=(), operator<<(), operator=(), operator==(), and saveState().
bool ossimFontInformation::theFixedFlag |
Definition at line 94 of file ossimFontInformation.h.
Referenced by isFixed(), loadState(), operator!=(), operator<<(), operator=(), operator==(), and saveState().
ossimIpt ossimFontInformation::thePointSize |
Definition at line 93 of file ossimFontInformation.h.
Referenced by ossimVpfAnnotationFeatureInfo::buildTxtFeature(), loadState(), operator!=(), operator<<(), operator=(), operator==(), ossimMapCompositionSource::ossimMapCompositionSource(), saveState(), ossimVpfAnnotationFeatureInfo::setDrawingFeaturesToAnnotation(), and ossimAnnotationFontObject::setGeometryInformation().
double ossimFontInformation::theRotation |
Definition at line 96 of file ossimFontInformation.h.
Referenced by ossimVpfAnnotationFeatureInfo::buildTxtFeature(), loadState(), operator!=(), operator=(), operator==(), saveState(), ossimVpfAnnotationFeatureInfo::setDrawingFeaturesToAnnotation(), and ossimAnnotationFontObject::setGeometryInformation().
ossimDpt ossimFontInformation::theScale |
Definition at line 95 of file ossimFontInformation.h.
Referenced by ossimVpfAnnotationFeatureInfo::buildTxtFeature(), loadState(), operator!=(), operator=(), operator==(), saveState(), ossimVpfAnnotationFeatureInfo::setDrawingFeaturesToAnnotation(), and ossimAnnotationFontObject::setGeometryInformation().
ossimDpt ossimFontInformation::theShear |
Definition at line 97 of file ossimFontInformation.h.
Referenced by ossimVpfAnnotationFeatureInfo::buildTxtFeature(), loadState(), operator!=(), operator=(), operator==(), saveState(), ossimVpfAnnotationFeatureInfo::setDrawingFeaturesToAnnotation(), and ossimAnnotationFontObject::setGeometryInformation().
ossimString ossimFontInformation::theStyleName |
Definition at line 92 of file ossimFontInformation.h.
Referenced by loadState(), operator!=(), operator<<(), operator=(), operator==(), and saveState().