OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimDoubleGridProperty.h>
Public Member Functions | |
ossimDoubleGridProperty (const ossimString &name=ossimString(""), int numberOfRows=0, int numberOfCols=0, const std::vector< double > &values=std::vector< double >()) | |
ossimDoubleGridProperty (const ossimDoubleGridProperty &rhs) | |
virtual | ~ossimDoubleGridProperty () |
ossimObject * | dup () const |
virtual const ossimProperty & | assign (const ossimProperty &rhs) |
virtual bool | setValue (const ossimString &value) |
virtual void | valueToString (ossimString &valueResult) const |
void | clearConstraints () |
void | setColConstraints (int minNumberOfCols, int maxNumberOfCols) |
void | setRowConstraints (int minNumberOfRows, int maxNumberOfRows) |
void | setContraints (int minNumberOfRows, int maxNumberOfRows, int minNumberOfCols, int maxNumberOfCols) |
ossim_uint32 | getNumberOfRows () const |
ossim_uint32 | getNumberOfCols () const |
double | getValue (ossim_uint32 row, ossim_uint32 col) 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 | |
int | theMinNumberOfCols |
int | theMaxNumberOfCols |
int | theMinNumberOfRows |
int | theMaxNumberOfRows |
std::vector< std::vector< double > > | theValues |
![]() | |
ossimString | theName |
ossimString | theDescription |
bool | theReadOnlyFlag |
ossimPropertyChangeType | theChangeType |
bool | theModifiedFlag |
Additional Inherited Members | |
![]() | |
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) } |
![]() | |
virtual | ~ossimProperty () |
![]() | |
virtual | ~ossimReferenced () |
Definition at line 13 of file ossimDoubleGridProperty.h.
ossimDoubleGridProperty::ossimDoubleGridProperty | ( | const ossimString & | name = ossimString("") , |
int | numberOfRows = 0 , |
||
int | numberOfCols = 0 , |
||
const std::vector< double > & | values = std::vector<double>() |
||
) |
Definition at line 6 of file ossimDoubleGridProperty.cpp.
Referenced by dup().
ossimDoubleGridProperty::ossimDoubleGridProperty | ( | const ossimDoubleGridProperty & | rhs | ) |
Definition at line 19 of file ossimDoubleGridProperty.cpp.
|
virtual |
Definition at line 29 of file ossimDoubleGridProperty.cpp.
|
virtual |
Reimplemented from ossimProperty.
Definition at line 38 of file ossimDoubleGridProperty.cpp.
References ossimProperty::assign(), setValue(), theMaxNumberOfCols, theMaxNumberOfRows, theMinNumberOfCols, theMinNumberOfRows, theValues, and ossimProperty::valueToString().
void ossimDoubleGridProperty::clearConstraints | ( | ) |
Definition at line 102 of file ossimDoubleGridProperty.cpp.
References theMaxNumberOfCols, theMaxNumberOfRows, theMinNumberOfCols, and theMinNumberOfRows.
|
virtual |
Reimplemented from ossimObject.
Definition at line 33 of file ossimDoubleGridProperty.cpp.
References ossimDoubleGridProperty().
ossim_uint32 ossimDoubleGridProperty::getNumberOfCols | ( | ) | const |
Definition at line 140 of file ossimDoubleGridProperty.cpp.
References getNumberOfRows(), and theValues.
Referenced by getValue(), and valueToString().
ossim_uint32 ossimDoubleGridProperty::getNumberOfRows | ( | ) | const |
Definition at line 135 of file ossimDoubleGridProperty.cpp.
References theValues.
Referenced by getNumberOfCols(), getValue(), and valueToString().
double ossimDoubleGridProperty::getValue | ( | ossim_uint32 | row, |
ossim_uint32 | col | ||
) | const |
Definition at line 149 of file ossimDoubleGridProperty.cpp.
References getNumberOfCols(), getNumberOfRows(), and theValues.
Referenced by valueToString().
void ossimDoubleGridProperty::setColConstraints | ( | int | minNumberOfCols, |
int | maxNumberOfCols | ||
) |
Setting both values to -1 will say no constraints. if min is constrained and max not then it will not allow the cols to grow any larger than the passed in max.
If the min is -1 and max not then it will not exceed the max number of cols
Definition at line 110 of file ossimDoubleGridProperty.cpp.
References theMaxNumberOfCols, and theMinNumberOfCols.
void ossimDoubleGridProperty::setContraints | ( | int | minNumberOfRows, |
int | maxNumberOfRows, | ||
int | minNumberOfCols, | ||
int | maxNumberOfCols | ||
) |
Definition at line 124 of file ossimDoubleGridProperty.cpp.
References theMaxNumberOfCols, theMaxNumberOfRows, theMinNumberOfCols, and theMinNumberOfRows.
void ossimDoubleGridProperty::setRowConstraints | ( | int | minNumberOfRows, |
int | maxNumberOfRows | ||
) |
Definition at line 117 of file ossimDoubleGridProperty.cpp.
References theMaxNumberOfRows, and theMinNumberOfRows.
|
virtual |
Implements ossimProperty.
Definition at line 59 of file ossimDoubleGridProperty.cpp.
References ossimString::c_str(), theValues, and ossimString::toInt32().
Referenced by assign().
|
virtual |
Implements ossimProperty.
Definition at line 85 of file ossimDoubleGridProperty.cpp.
References getNumberOfCols(), getNumberOfRows(), getValue(), and ossimString::toString().
|
protected |
Definition at line 57 of file ossimDoubleGridProperty.h.
Referenced by assign(), clearConstraints(), setColConstraints(), and setContraints().
|
protected |
Definition at line 59 of file ossimDoubleGridProperty.h.
Referenced by assign(), clearConstraints(), setContraints(), and setRowConstraints().
|
protected |
Definition at line 56 of file ossimDoubleGridProperty.h.
Referenced by assign(), clearConstraints(), setColConstraints(), and setContraints().
|
protected |
Definition at line 58 of file ossimDoubleGridProperty.h.
Referenced by assign(), clearConstraints(), setContraints(), and setRowConstraints().
|
protected |
Definition at line 60 of file ossimDoubleGridProperty.h.
Referenced by assign(), getNumberOfCols(), getNumberOfRows(), getValue(), and setValue().