OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimProperty.h>
Public Types | |
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 | |
ossimProperty (const ossimString &name=ossimString("")) | |
ossimProperty (const ossimProperty &rhs) | |
const ossimProperty & | operator= (const ossimProperty &rhs) |
virtual const ossimProperty & | assign (const ossimProperty &rhs) |
const ossimString & | getName () const |
void | setName (const ossimString &name) |
virtual bool | setValue (const ossimString &value)=0 |
virtual void | valueToString (ossimString &valueResult) const =0 |
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 ossimObject * | dup () const |
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 | |
virtual | ~ossimProperty () |
![]() | |
virtual | ~ossimReferenced () |
Protected Attributes | |
ossimString | theName |
ossimString | theDescription |
bool | theReadOnlyFlag |
ossimPropertyChangeType | theChangeType |
bool | theModifiedFlag |
Definition at line 16 of file ossimProperty.h.
This are bitwise and can be ored together The change type is very important and it determines how things are refreshed.
Enumerator | |
---|---|
ossimPropertyChangeType_NOTSPECIFIED | |
ossimPropertyChangeType_CACHE_REFRESH | |
ossimPropertyChangeType_FULL_REFRESH | |
ossimPropertyChangeType_AFFECTS_OTHERS | |
ossimPropertyChangeType_ALL |
Definition at line 24 of file ossimProperty.h.
ossimProperty::ossimProperty | ( | const ossimString & | name = ossimString("") | ) |
Definition at line 22 of file ossimProperty.cpp.
ossimProperty::ossimProperty | ( | const ossimProperty & | rhs | ) |
Definition at line 30 of file ossimProperty.cpp.
|
protectedvirtual |
Definition at line 38 of file ossimProperty.cpp.
|
virtual |
Reimplemented from ossimObject.
Reimplemented in ossimContainerProperty.
Definition at line 184 of file ossimProperty.cpp.
References ossimObject::accept().
Referenced by ossimContainerProperty::accept().
bool ossimProperty::affectsOthers | ( | ) | const |
Definition at line 134 of file ossimProperty.cpp.
References isChangeTypeSet(), and ossimPropertyChangeType_AFFECTS_OTHERS.
|
virtual |
Reimplemented in ossimContainerProperty.
Definition at line 72 of file ossimProperty.cpp.
Referenced by saveState().
|
virtual |
Reimplemented in ossimContainerProperty.
Definition at line 77 of file ossimProperty.cpp.
|
virtual |
Reimplemented in ossimFilenameProperty, ossimNumericProperty, ossimStringProperty, ossimDateProperty, ossimMatrixProperty, ossimTextProperty, ossimDoubleGridProperty, ossimContainerProperty, ossimColorProperty, ossimFontProperty, ossimStringListProperty, and ossimBooleanProperty.
Definition at line 52 of file ossimProperty.cpp.
References theChangeType, theModifiedFlag, theName, and theReadOnlyFlag.
Referenced by ossimBooleanProperty::assign(), ossimColorProperty::assign(), ossimStringListProperty::assign(), ossimFontProperty::assign(), ossimContainerProperty::assign(), ossimDoubleGridProperty::assign(), ossimMatrixProperty::assign(), ossimDateProperty::assign(), ossimStringProperty::assign(), ossimNumericProperty::assign(), ossimFilenameProperty::assign(), and operator=().
void ossimProperty::clearChangeType | ( | ) |
Definition at line 87 of file ossimProperty.cpp.
References ossimPropertyChangeType_NOTSPECIFIED, and theChangeType.
Referenced by ossimEdgeFilter::getProperty(), ossimImageRenderer::getProperty(), ossimBandSelector::getProperty(), ossimEquationCombiner::getProperty(), and ossimImageSource::getProperty().
void ossimProperty::clearModifiedFlag | ( | ) |
ossimProperty::ossimPropertyChangeType ossimProperty::getChangeType | ( | ) | const |
|
virtual |
Reimplemented from ossimObject.
Definition at line 179 of file ossimProperty.cpp.
References theDescription.
bool ossimProperty::getModifiedFlag | ( | ) | const |
const ossimString & ossimProperty::getName | ( | ) | const |
Definition at line 42 of file ossimProperty.cpp.
References theName.
Referenced by ossimContainerProperty::getProperty(), saveState(), ossimImageSharpenFilter::setProperty(), ossim3x3ConvolutionFilter::setProperty(), ossimEdgeFilter::setProperty(), ossimImageGaussianFilter::setProperty(), ossimFftFilter::setProperty(), ossimPngCodec::setProperty(), ossimJpegCodec::setProperty(), ossimCastTileSourceFilter::setProperty(), ossimConvolutionFilter1D::setProperty(), ossimSlopeFilter::setProperty(), ossimJpegWriter::setProperty(), ossimGdalWriter::setProperty(), ossimKmlSuperOverlayWriter::setProperty(), ossimPngWriter::setProperty(), ossimNBandToIndexFilter::setProperty(), ossimRangeDomeTileSource::setProperty(), ossimTiffWriter::setProperty(), ossimPngReader::setProperty(), ossimBandSelector::setProperty(), ossimMaskFilter::setProperty(), ossimHdf5ImageHandler::setProperty(), ossimMapCompositionSource::setProperty(), ossimEquationCombiner::setProperty(), ossimH5ImageHandler::setProperty(), ossimPointCloudImageHandler::setProperty(), ossimGdalTileSource::setProperty(), ossimTiffTileSource::setProperty(), ossimLasReader::setProperty(), ossimImageFileWriter::setProperty(), ossimConnectableObject::setProperty(), ossimImageHandler::setProperty(), ossimContainerProperty::toXml(), and toXml().
bool ossimProperty::getReadOnlyFlag | ( | ) | const |
Definition at line 144 of file ossimProperty.cpp.
References theReadOnlyFlag.
Referenced by isReadOnly().
bool ossimProperty::isCacheRefresh | ( | ) | const |
Definition at line 124 of file ossimProperty.cpp.
References isChangeTypeSet(), and ossimPropertyChangeType_CACHE_REFRESH.
bool ossimProperty::isChangeTypeSet | ( | int | type | ) | const |
Definition at line 82 of file ossimProperty.cpp.
References theChangeType.
Referenced by affectsOthers(), isCacheRefresh(), and isFullRefresh().
bool ossimProperty::isChangeTypeSpecified | ( | ) | const |
Definition at line 129 of file ossimProperty.cpp.
References ossimPropertyChangeType_NOTSPECIFIED, and theChangeType.
bool ossimProperty::isFullRefresh | ( | ) | const |
Definition at line 119 of file ossimProperty.cpp.
References isChangeTypeSet(), and ossimPropertyChangeType_FULL_REFRESH.
bool ossimProperty::isModified | ( | ) | const |
bool ossimProperty::isReadOnly | ( | ) | const |
const ossimProperty & ossimProperty::operator= | ( | const ossimProperty & | rhs | ) |
Definition at line 15 of file ossimProperty.cpp.
References assign().
|
virtual |
Definition at line 199 of file ossimProperty.cpp.
References ossimKeywordlist::add(), asContainer(), getName(), ossimContainerProperty::getNumberOfProperties(), saveState(), ossimContainerProperty::theChildPropertyList, ossimRefPtr< T >::valid(), and valueToString().
Referenced by saveState().
void ossimProperty::setCacheRefreshBit | ( | ) |
Definition at line 109 of file ossimProperty.cpp.
References ossimPropertyChangeType_CACHE_REFRESH, and setChangeType().
Referenced by ossimDespeckleFilter::getProperty(), ossimBrightnessMatch::getProperty(), ossimEdgeFilter::getProperty(), ossimFftFilter::getProperty(), ossimImageToPlaneNormalFilter::getProperty(), ossimKakaduJpipHandler::getProperty(), ossimCastTileSourceFilter::getProperty(), ossimGdalOgrVectorAnnotation::getProperty(), ossimBrightnessContrastSource::getProperty(), ossimHistogramMatchFilter::getProperty(), ossimImageRenderer::getProperty(), ossimWatermarkFilter::getProperty(), ossimBandSelector::getProperty(), ossimMapCompositionSource::getProperty(), ossimEquationCombiner::getProperty(), ossimPixelFlipper::getProperty(), ossimBumpShadeTileSource::getProperty(), and ossimImageHandler::getProperty().
void ossimProperty::setChangeType | ( | int | type, |
bool | on = true |
||
) |
Definition at line 92 of file ossimProperty.cpp.
References theChangeType.
Referenced by ossimImageFileWriter::getProperty(), setCacheRefreshBit(), and setFullRefreshBit().
void ossimProperty::setDescription | ( | const ossimString & | description | ) |
void ossimProperty::setFullRefreshBit | ( | ) |
Definition at line 104 of file ossimProperty.cpp.
References ossimPropertyChangeType_FULL_REFRESH, and setChangeType().
Referenced by ossimTrimFilter::getProperty(), ossimKakaduJpipHandler::getProperty(), ossimGdalOgrVectorAnnotation::getProperty(), ossimImageSource::getProperty(), and ossimImageHandler::getProperty().
void ossimProperty::setModifiedFlag | ( | bool | flag | ) |
void ossimProperty::setName | ( | const ossimString & | name | ) |
Definition at line 47 of file ossimProperty.cpp.
References theName.
Referenced by ossimDtedInfo::getProperty().
|
virtual |
Reimplemented in ossimContainerProperty.
Definition at line 139 of file ossimProperty.cpp.
References theReadOnlyFlag.
Referenced by ossimContainerProperty::addStringProperty(), ossimEdgeFilter::getProperty(), ossimImageRenderer::getProperty(), ossimBandSelector::getProperty(), ossimNitfTileSource::getProperty(), ossimEquationCombiner::getProperty(), ossimImageFileWriter::getProperty(), ossimConnectableObject::getProperty(), ossimImageHandler::getProperty(), and ossimContainerProperty::setReadOnlyFlag().
|
pure virtual |
Implemented in ossimStringProperty, ossimContainerProperty, ossimNumericProperty, ossimFilenameProperty, ossimDoubleGridProperty, ossimMatrixProperty, ossimDateProperty, ossimTextProperty, ossimBinaryDataProperty, ossimColorProperty, ossimFontProperty, ossimStringListProperty, and ossimBooleanProperty.
|
virtual |
Reimplemented in ossimContainerProperty.
Definition at line 189 of file ossimProperty.cpp.
References getName(), ossimXmlNode::setTag(), ossimXmlNode::setText(), and valueToString().
|
pure virtual |
Implemented in ossimStringProperty, ossimContainerProperty, ossimNumericProperty, ossimFilenameProperty, ossimDoubleGridProperty, ossimMatrixProperty, ossimDateProperty, ossimBinaryDataProperty, ossimTextProperty, ossimBooleanProperty, ossimColorProperty, ossimFontProperty, and ossimStringListProperty.
Referenced by ossimNitfWriter::addDataExtensionSegment(), ossimColorProperty::assign(), ossimDoubleGridProperty::assign(), ossimTextProperty::assign(), ossimDateProperty::assign(), ossimStringProperty::assign(), ossimNumericProperty::assign(), ossimFilenameProperty::assign(), ossimHistogramMatchFilter::autoLoadInputHistogram(), ossimPropertyInterface::getPropertyValueAsString(), ossimInfo::isImageEntryOverview(), ossimFftFilter::setProperty(), ossimKakaduJpipHandler::setProperty(), ossimNitfDataExtensionSegmentV2_1::setProperty(), ossimCastTileSourceFilter::setProperty(), ossimSlopeFilter::setProperty(), ossimGdalWriter::setProperty(), ossimNitfImageHeaderV2_X::setProperty(), ossimHistogramMatchFilter::setProperty(), ossimNBandToIndexFilter::setProperty(), ossimNitfFileHeaderV2_X::setProperty(), ossimTiffWriter::setProperty(), ossimPdfWriter::setProperty(), ossimImageRenderer::setProperty(), ossimNitfImageHeaderV2_1::setProperty(), ossimBandSelector::setProperty(), ossimMetadataFileWriter::setProperty(), ossimMapCompositionSource::setProperty(), ossimEquationCombiner::setProperty(), ossimTiffTileSource::setProperty(), ossimNitfFileHeaderV2_1::setProperty(), ossimNitfFileHeaderV2_0::setProperty(), and ossimImageHandler::setProperty().
|
virtual |
Definition at line 62 of file ossimProperty.cpp.
Referenced by saveState(), and toXml().
|
protected |
Definition at line 82 of file ossimProperty.h.
Referenced by assign(), clearChangeType(), getChangeType(), isChangeTypeSet(), isChangeTypeSpecified(), and setChangeType().
|
protected |
Definition at line 80 of file ossimProperty.h.
Referenced by getDescription(), and setDescription().
|
protected |
Definition at line 83 of file ossimProperty.h.
Referenced by assign(), clearModifiedFlag(), getModifiedFlag(), isModified(), and setModifiedFlag().
|
protected |
Definition at line 79 of file ossimProperty.h.
|
protected |
Definition at line 81 of file ossimProperty.h.
Referenced by assign(), getReadOnlyFlag(), and setReadOnlyFlag().