OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimMatrixProperty.h>
Public Member Functions | |
ossimMatrixProperty (const ossimString &name=ossimString(""), const std::vector< double > &values=std::vector< double >(), int numberOfRows=0, int numberOfColumns=0) | |
ossimMatrixProperty (const ossimMatrixProperty &rhs) | |
virtual | ~ossimMatrixProperty () |
virtual ossimObject * | dup () const |
virtual const ossimProperty & | assign (const ossimProperty &rhs) |
virtual bool | setValue (const ossimString &value) |
virtual void | valueToString (ossimString &valueResult) const |
void | resize (int numberOfRows, int numberOfColumns) |
double & | operator() (int rowIdx, int colIdx) |
const double & | operator() (int rowIdx, int colIdx) const |
int | getNumberOfRows () const |
int | getNumberOfCols () const |
void | clearConstraints () |
void | setColConstraints (int minNumberOfColumns, int maxNumberOfColumns) |
void | setRowConstraints (int minNumberOfRows, int maxNumberOfRows) |
void | getColConstraints (int &minNumberOfColumns, int &maxNumberOfColumns) const |
void | getRowConstraints (int &minNumberOfRows, int &maxNumberOfRows) const |
void | normalize () |
void | zero () |
![]() | |
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 Member Functions | |
double | density () const |
![]() | |
virtual | ~ossimProperty () |
![]() | |
virtual | ~ossimReferenced () |
Protected Attributes | |
std::vector< std::vector< double > > | theValueArray |
int | theMinNumberOfCols |
int | theMaxNumberOfCols |
int | theMinNumberOfRows |
int | theMaxNumberOfRows |
![]() | |
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) } |
Definition at line 15 of file ossimMatrixProperty.h.
ossimMatrixProperty::ossimMatrixProperty | ( | const ossimString & | name = ossimString("") , |
const std::vector< double > & | values = std::vector<double>() , |
||
int | numberOfRows = 0 , |
||
int | numberOfColumns = 0 |
||
) |
Definition at line 15 of file ossimMatrixProperty.cpp.
References getNumberOfCols(), getNumberOfRows(), resize(), and theValueArray.
Referenced by dup().
ossimMatrixProperty::ossimMatrixProperty | ( | const ossimMatrixProperty & | rhs | ) |
Definition at line 44 of file ossimMatrixProperty.cpp.
|
virtual |
Definition at line 54 of file ossimMatrixProperty.cpp.
|
virtual |
Reimplemented from ossimProperty.
Definition at line 65 of file ossimMatrixProperty.cpp.
References ossimProperty::assign(), theMaxNumberOfCols, theMaxNumberOfRows, theMinNumberOfCols, theMinNumberOfRows, and theValueArray.
void ossimMatrixProperty::clearConstraints | ( | ) |
Definition at line 227 of file ossimMatrixProperty.cpp.
References theMaxNumberOfCols, theMaxNumberOfRows, theMinNumberOfCols, and theMinNumberOfRows.
|
protected |
Definition at line 296 of file ossimMatrixProperty.cpp.
References getNumberOfCols(), getNumberOfRows(), size, and theValueArray.
Referenced by normalize().
|
virtual |
Reimplemented from ossimObject.
Definition at line 59 of file ossimMatrixProperty.cpp.
References ossimMatrixProperty().
void ossimMatrixProperty::getColConstraints | ( | int & | minNumberOfColumns, |
int & | maxNumberOfColumns | ||
) | const |
Definition at line 249 of file ossimMatrixProperty.cpp.
References theMaxNumberOfCols, and theMinNumberOfCols.
int ossimMatrixProperty::getNumberOfCols | ( | ) | const |
Definition at line 217 of file ossimMatrixProperty.cpp.
References getNumberOfRows(), and theValueArray.
Referenced by density(), ossimMatrixProperty(), resize(), ossimConvolutionFilter1D::setProperty(), setValue(), and valueToString().
int ossimMatrixProperty::getNumberOfRows | ( | ) | const |
Definition at line 212 of file ossimMatrixProperty.cpp.
References theValueArray.
Referenced by density(), getNumberOfCols(), ossimMatrixProperty(), resize(), setValue(), and valueToString().
void ossimMatrixProperty::getRowConstraints | ( | int & | minNumberOfRows, |
int & | maxNumberOfRows | ||
) | const |
Definition at line 256 of file ossimMatrixProperty.cpp.
References theMaxNumberOfRows, and theMinNumberOfRows.
void ossimMatrixProperty::normalize | ( | ) |
Definition at line 263 of file ossimMatrixProperty.cpp.
References DBL_EPSILON, density(), size, and theValueArray.
double & ossimMatrixProperty::operator() | ( | int | rowIdx, |
int | colIdx | ||
) |
Definition at line 200 of file ossimMatrixProperty.cpp.
References theValueArray.
const double & ossimMatrixProperty::operator() | ( | int | rowIdx, |
int | colIdx | ||
) | const |
Definition at line 206 of file ossimMatrixProperty.cpp.
References theValueArray.
void ossimMatrixProperty::resize | ( | int | numberOfRows, |
int | numberOfColumns | ||
) |
Definition at line 134 of file ossimMatrixProperty.cpp.
References getNumberOfCols(), getNumberOfRows(), ossim::min(), theMaxNumberOfCols, theMaxNumberOfRows, theMinNumberOfCols, theMinNumberOfRows, and theValueArray.
Referenced by ossimMatrixProperty(), and setValue().
void ossimMatrixProperty::setColConstraints | ( | int | minNumberOfColumns, |
int | maxNumberOfColumns | ||
) |
If any of the constraints are set to something < 0 then it means there isn't a constraint for that value. So if you give a min value of -1 and a max value of 10 then the column can grow from 10 downto 0.
Definition at line 235 of file ossimMatrixProperty.cpp.
References theMaxNumberOfCols, and theMinNumberOfCols.
void ossimMatrixProperty::setRowConstraints | ( | int | minNumberOfRows, |
int | maxNumberOfRows | ||
) |
If any of the contraints are set to something < 0 then it means there isn't a constraint for that value. So if you give a min value of -1 and a max value of 10 then the row can grow from 10 downto 0.
Definition at line 242 of file ossimMatrixProperty.cpp.
References theMaxNumberOfRows, and theMinNumberOfRows.
|
virtual |
Implements ossimProperty.
Definition at line 80 of file ossimMatrixProperty.cpp.
References getNumberOfCols(), getNumberOfRows(), resize(), theValueArray, and ossimString::toInt32().
|
virtual |
Implements ossimProperty.
Definition at line 110 of file ossimMatrixProperty.cpp.
References getNumberOfCols(), getNumberOfRows(), size, theValueArray, and ossimString::toString().
void ossimMatrixProperty::zero | ( | ) |
Definition at line 283 of file ossimMatrixProperty.cpp.
References size, and theValueArray.
|
protected |
Definition at line 73 of file ossimMatrixProperty.h.
Referenced by assign(), clearConstraints(), getColConstraints(), resize(), and setColConstraints().
|
protected |
Definition at line 75 of file ossimMatrixProperty.h.
Referenced by assign(), clearConstraints(), getRowConstraints(), resize(), and setRowConstraints().
|
protected |
Definition at line 72 of file ossimMatrixProperty.h.
Referenced by assign(), clearConstraints(), getColConstraints(), resize(), and setColConstraints().
|
protected |
Definition at line 74 of file ossimMatrixProperty.h.
Referenced by assign(), clearConstraints(), getRowConstraints(), resize(), and setRowConstraints().
|
protected |
Definition at line 71 of file ossimMatrixProperty.h.
Referenced by assign(), density(), getNumberOfCols(), getNumberOfRows(), normalize(), operator()(), ossimMatrixProperty(), resize(), setValue(), valueToString(), and zero().