OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimNumericProperty.h>
Public Types | |
enum | ossimNumericPropertyType { ossimNumericPropertyType_INT = 0, ossimNumericPropertyType_UINT, ossimNumericPropertyType_FLOAT32, ossimNumericPropertyType_FLOAT64 } |
![]() | |
enum | ossimPropertyChangeType { ossimPropertyChangeType_NOTSPECIFIED = 0, ossimPropertyChangeType_CACHE_REFRESH = 1, ossimPropertyChangeType_FULL_REFRESH = 2, ossimPropertyChangeType_AFFECTS_OTHERS = 4, ossimPropertyChangeType_ALL = (ossimPropertyChangeType_CACHE_REFRESH|ossimPropertyChangeType_FULL_REFRESH|ossimPropertyChangeType_AFFECTS_OTHERS) } |
Public Member Functions | |
ossimNumericProperty (const ossimString &name=ossimString(""), const ossimString &value=ossimString("0")) | |
ossimNumericProperty (const ossimString &name, const ossimString &value, double minValue, double maxValue) | |
ossimNumericProperty (const ossimNumericProperty &rhs) | |
virtual ossimObject * | dup () const |
virtual const ossimProperty & | assign (const ossimProperty &rhs) |
virtual bool | hasConstraints () const |
double | getMinValue () const |
double | getMaxValue () const |
virtual void | clearConstraints () |
virtual void | setConstraints (double minValue, double maxValue) |
virtual bool | setValue (const ossimString &value) |
virtual void | valueToString (ossimString &valueResult) const |
virtual ossimNumericPropertyType | getNumericType () const |
virtual void | setNumericType (ossimNumericPropertyType type) |
virtual ossim_float64 | asFloat64 () const |
virtual ossim_float32 | asFloat32 () const |
virtual ossim_uint32 | asUInt32 () const |
virtual ossim_uint16 | asUInt16 () const |
virtual ossim_uint8 | asUInt8 () const |
virtual ossim_sint32 | asInt32 () const |
virtual ossim_sint16 | asInt16 () const |
virtual ossim_sint8 | asInt8 () const |
![]() | |
ossimProperty (const ossimString &name=ossimString("")) | |
ossimProperty (const ossimProperty &rhs) | |
const ossimProperty & | operator= (const ossimProperty &rhs) |
const ossimString & | getName () const |
void | setName (const ossimString &name) |
virtual ossimString | valueToString () const |
virtual const ossimContainerProperty * | asContainer () const |
virtual ossimContainerProperty * | asContainer () |
bool | isChangeTypeSet (int type) const |
void | clearChangeType () |
void | setChangeType (int type, bool on=true) |
void | setFullRefreshBit () |
void | setCacheRefreshBit () |
ossimPropertyChangeType | getChangeType () const |
bool | isFullRefresh () const |
bool | isCacheRefresh () const |
bool | isChangeTypeSpecified () const |
bool | affectsOthers () const |
virtual void | setReadOnlyFlag (bool flag) |
bool | getReadOnlyFlag () const |
bool | isReadOnly () const |
void | setModifiedFlag (bool flag) |
bool | getModifiedFlag () const |
bool | isModified () const |
void | clearModifiedFlag () |
void | setDescription (const ossimString &description) |
virtual ossimString | getDescription () const |
virtual ossimRefPtr< ossimXmlNode > | toXml () const |
virtual void | saveState (ossimKeywordlist &kwl, const ossimString &prefix="") const |
virtual void | accept (ossimVisitor &visitor) |
![]() | |
ossimObject () | |
virtual | ~ossimObject () |
virtual ossimString | getShortName () const |
virtual ossimString | getLongName () 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 |
![]() | |
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 |
Protected Attributes | |
ossimString | theValue |
ossimNumericPropertyType | theType |
std::vector< double > | theRangeConstraint |
![]() | |
ossimString | theName |
ossimString | theDescription |
bool | theReadOnlyFlag |
ossimPropertyChangeType | theChangeType |
bool | theModifiedFlag |
Additional Inherited Members | |
![]() | |
virtual | ~ossimProperty () |
![]() | |
virtual | ~ossimReferenced () |
Definition at line 13 of file ossimNumericProperty.h.
Enumerator | |
---|---|
ossimNumericPropertyType_INT | |
ossimNumericPropertyType_UINT | |
ossimNumericPropertyType_FLOAT32 | |
ossimNumericPropertyType_FLOAT64 |
Definition at line 16 of file ossimNumericProperty.h.
ossimNumericProperty::ossimNumericProperty | ( | const ossimString & | name = ossimString("") , |
const ossimString & | value = ossimString("0") |
||
) |
Definition at line 15 of file ossimNumericProperty.cpp.
Referenced by dup().
ossimNumericProperty::ossimNumericProperty | ( | const ossimString & | name, |
const ossimString & | value, | ||
double | minValue, | ||
double | maxValue | ||
) |
Definition at line 23 of file ossimNumericProperty.cpp.
References setConstraints().
ossimNumericProperty::ossimNumericProperty | ( | const ossimNumericProperty & | rhs | ) |
Definition at line 35 of file ossimNumericProperty.cpp.
|
virtual |
Definition at line 176 of file ossimNumericProperty.cpp.
References theValue, and ossimString::toDouble().
Referenced by valueToString().
|
virtual |
Definition at line 171 of file ossimNumericProperty.cpp.
References theValue, and ossimString::toDouble().
Referenced by valueToString().
|
virtual |
Definition at line 201 of file ossimNumericProperty.cpp.
References theValue, and ossimString::toInt32().
|
virtual |
Definition at line 196 of file ossimNumericProperty.cpp.
References theValue, and ossimString::toInt32().
Referenced by ossimConvolutionFilter1D::setProperty(), and valueToString().
|
virtual |
Definition at line 206 of file ossimNumericProperty.cpp.
References theValue, and ossimString::toInt32().
|
virtual |
Reimplemented from ossimProperty.
Definition at line 48 of file ossimNumericProperty.cpp.
References ossimProperty::assign(), setValue(), theRangeConstraint, theType, theValue, and ossimProperty::valueToString().
|
virtual |
Definition at line 186 of file ossimNumericProperty.cpp.
References theValue, and ossimString::toUInt32().
|
virtual |
Definition at line 181 of file ossimNumericProperty.cpp.
References theValue, and ossimString::toUInt32().
Referenced by ossimConvolutionFilter1D::setProperty(), and valueToString().
|
virtual |
Definition at line 191 of file ossimNumericProperty.cpp.
References theValue, and ossimString::toUInt32().
|
virtual |
Definition at line 93 of file ossimNumericProperty.cpp.
References theRangeConstraint.
|
virtual |
Reimplemented from ossimObject.
Definition at line 43 of file ossimNumericProperty.cpp.
References ossimNumericProperty().
double ossimNumericProperty::getMaxValue | ( | ) | const |
Definition at line 83 of file ossimNumericProperty.cpp.
References hasConstraints(), and theRangeConstraint.
double ossimNumericProperty::getMinValue | ( | ) | const |
Definition at line 73 of file ossimNumericProperty.cpp.
References hasConstraints(), and theRangeConstraint.
|
virtual |
|
virtual |
Definition at line 68 of file ossimNumericProperty.cpp.
References theRangeConstraint.
Referenced by getMaxValue(), getMinValue(), and setValue().
|
virtual |
Definition at line 98 of file ossimNumericProperty.cpp.
References theRangeConstraint.
Referenced by ossimNumericProperty().
|
virtual |
Definition at line 166 of file ossimNumericProperty.cpp.
References theType.
Referenced by ossimBrightnessMatch::getProperty(), ossimGdalOgrVectorAnnotation::getProperty(), ossimBrightnessContrastSource::getProperty(), ossimJpegWriter::getProperty(), ossimNitfFileHeaderV2_X::getProperty(), and ossimTiffWriter::getProperty().
|
virtual |
Implements ossimProperty.
Definition at line 112 of file ossimNumericProperty.cpp.
References hasConstraints(), theRangeConstraint, theValue, and ossimString::toDouble().
Referenced by assign().
|
virtual |
Implements ossimProperty.
Definition at line 132 of file ossimNumericProperty.cpp.
References asFloat32(), asFloat64(), asInt32(), asUInt32(), ossimNumericPropertyType_FLOAT32, ossimNumericPropertyType_FLOAT64, ossimNumericPropertyType_INT, ossimNumericPropertyType_UINT, theType, and ossimString::toString().
|
protected |
Definition at line 59 of file ossimNumericProperty.h.
Referenced by assign(), clearConstraints(), getMaxValue(), getMinValue(), hasConstraints(), setConstraints(), and setValue().
|
protected |
Definition at line 58 of file ossimNumericProperty.h.
Referenced by assign(), getNumericType(), setNumericType(), and valueToString().
|
protected |
Definition at line 57 of file ossimNumericProperty.h.
Referenced by asFloat32(), asFloat64(), asInt16(), asInt32(), asInt8(), assign(), asUInt16(), asUInt32(), asUInt8(), and setValue().