OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimBandSelector.h>
Public Types | |
enum | ossimBandSelectorWithinRangeFlagState { ossimBandSelectorWithinRangeFlagState_NOT_SET = 0, ossimBandSelectorWithinRangeFlagState_IN_RANGE = 1, ossimBandSelectorWithinRangeFlagState_OUT_OF_RANGE = 2 } |
![]() | |
enum | ossimConnectableObjectDirectionType { CONNECTABLE_DIRECTION_NONE = 0, CONNECTABLE_DIRECTION_INPUT = 1, CONNECTABLE_DIRECTION_OUTPUT = 2 } |
typedef std::vector< ossimRefPtr< ossimConnectableObject > > | ConnectableObjectList |
Public Member Functions | |
ossimBandSelector () | |
virtual | ~ossimBandSelector () |
virtual ossimString | getLongName () const |
virtual ossimString | getShortName () const |
virtual ossimRefPtr< ossimImageData > | getTile (const ossimIrect &tileRect, ossim_uint32 resLevel=0) |
virtual void | getOutputBandList (std::vector< ossim_uint32 > &bandList) const |
Initializes bandList to the zero based order of output bands. More... | |
virtual void | setThreeBandRgb () |
Will set to three bands (rgb) out. More... | |
virtual void | setOutputBandList (const vector< ossim_uint32 > &outputBandList, bool disablePassThru=false) |
Sets the output band list. More... | |
virtual ossim_uint32 | getNumberOfOutputBands () const |
Returns the number of bands in a tile returned from this TileSource. More... | |
virtual ossim_uint32 | getNumberOfInputBands () const |
Returns the number of input bands. More... | |
virtual void | initialize () |
virtual double | getMinPixelValue (ossim_uint32 band=0) const |
Returns the min pixel of the band. More... | |
virtual double | getMaxPixelValue (ossim_uint32 band=0) const |
Returns the max pixel of the band. More... | |
virtual double | getNullPixelValue (ossim_uint32 band=0) const |
Each band has a null pixel associated with it. More... | |
virtual bool | saveState (ossimKeywordlist &kwl, const char *prefix=NULL) const |
Method to save the state of an object to a keyword list. More... | |
virtual bool | loadState (const ossimKeywordlist &kwl, const char *prefix=NULL) |
Method to the load (recreate) the state of an object from a keyword list. More... | |
virtual void | setProperty (ossimRefPtr< ossimProperty > property) |
Override base class so that a disableSource event does not reinitialize the object and enable itself. More... | |
virtual ossimRefPtr< ossimProperty > | getProperty (const ossimString &name) const |
virtual void | getPropertyNames (std::vector< ossimString > &propertyNames) const |
virtual bool | isSourceEnabled () const |
![]() | |
ossimImageSourceFilter (ossimObject *owner=NULL) | |
ossimImageSourceFilter (ossimImageSource *inputSource) | |
ossimImageSourceFilter (ossimObject *owner, ossimImageSource *inputSource) | |
bool | canConnectMyInputTo (ossim_int32 inputIndex, const ossimConnectableObject *object) const |
required to be overriden by derived classes More... | |
virtual void | connectInputEvent (ossimConnectionEvent &event) |
virtual void | disconnectInputEvent (ossimConnectionEvent &event) |
virtual void | propertyEvent (ossimPropertyEvent &event) |
virtual void | refreshEvent (ossimRefreshEvent &event) |
![]() | |
ossimImageSource (ossimObject *owner=0) | |
ossimImageSource (ossimObject *owner, ossim_uint32 inputListSize, ossim_uint32 outputListSize, bool inputListIsFixedFlag=true, bool outputListIsFixedFlag=true) | |
virtual | ~ossimImageSource () |
virtual ossimRefPtr< ossimImageData > | getTile (const ossimIpt &origin, ossim_uint32 resLevel=0) |
virtual bool | getTile (ossimImageData *result, ossim_uint32 resLevel=0) |
Method to get a tile. More... | |
virtual ossimObject * | getObject () |
For RTTI support. More... | |
virtual const ossimObject * | getObject () const |
For RTTI support. More... | |
virtual void | getDecimationFactor (ossim_uint32 resLevel, ossimDpt &result) const |
Will return the decimation factor for the given resolution level. More... | |
virtual void | getDecimationFactors (std::vector< ossimDpt > &decimations) const |
Will return an array of all decimations for each resolution level. More... | |
virtual ossim_uint32 | getNumberOfDecimationLevels () const |
Will return the number of resolution levels. More... | |
virtual ossimScalarType | getOutputScalarType () const |
This will be used to query the output pixel type of the tile source. More... | |
virtual ossim_uint32 | getTileWidth () const |
Returns the default processing tile width. More... | |
virtual ossim_uint32 | getTileHeight () const |
Returns the default processing tile height. More... | |
virtual ossimIrect | getBoundingRect (ossim_uint32 resLevel=0) const |
This will return the bounding rect of the source. More... | |
virtual void | getBoundingRect (ossimIrect &rect, ossim_uint32 resLevel=0) const |
Gets the bounding rectangle of the source. More... | |
virtual void | getValidImageVertices (std::vector< ossimIpt > &validVertices, ossimVertexOrdering ordering=OSSIM_CLOCKWISE_ORDER, ossim_uint32 resLevel=0) const |
ordering specifies how the vertices should be arranged. More... | |
virtual ossimRefPtr< ossimImageGeometry > | getImageGeometry () |
Returns the image geometry object associated with this tile source or NULL if not defined. More... | |
virtual void | setImageGeometry (const ossimImageGeometry *geom) |
Default implementation sets geometry of the first input to the geometry specified. More... | |
virtual void | saveImageGeometry () const |
Default method to call input's saveImageGeometry. More... | |
virtual void | saveImageGeometry (const ossimFilename &geometry_file) const |
Default method to call input's saveImageGeometry. More... | |
virtual bool | isIndexedData () const |
![]() | |
ossimSource (ossimObject *owner=0) | |
ossimSource (ossimObject *owner, ossim_uint32 inputListSize, ossim_uint32 outputListSize, bool inputListIsFixedFlag=true, bool outputListIsFixedFlag=true) | |
virtual | ~ossimSource () |
virtual void | enableSource () |
virtual void | disableSource () |
virtual bool | getEnableFlag () const |
virtual void | setEnableFlag (bool flag) |
virtual bool | isInitialized () const |
virtual void | setInitializedFlag (bool flag) |
virtual std::ostream & | print (std::ostream &out) const |
Outputs theErrorStatus as an ossimErrorCode and an ossimString. More... | |
![]() | |
ossimConnectableObject (ossimObject *owner=0) | |
Base constructor of this object. More... | |
ossimConnectableObject (ossimObject *owner, ossim_int32 inputListSize, ossim_int32 outputListSize, bool inputListIsFixedFlag=true, bool outputListIsFixedFlag=true) | |
virtual | ~ossimConnectableObject () |
void | setId (const ossimId &id) |
All connectable objects will have id's. More... | |
const ossimId & | getId () const |
Will allow us to get this object's id. More... | |
const ossimObject * | getOwner () const |
Fetches the current owner, most likely a container but not limited to one. More... | |
virtual void | changeOwner (ossimObject *owner) |
Permits changing the object's owner. More... | |
virtual void | setDescription (const ossimString &description) |
virtual ossimString | getDescription () const |
virtual bool | isConnected (ossimConnectableObjectDirectionType direction=CONNECTABLE_DIRECTION_INPUT) const |
will check the direction specified to see if all slots are full. More... | |
OSSIM_DEPRECATE_METHOD (virtual ossimConnectableObject *findConnectableObject(const ossimId &id)) | |
OSSIM_DEPRECATE_METHOD (virtual ossimConnectableObject *findObjectOfType(RTTItypeid typeId, ossimConnectableObjectDirectionType directionType, bool recurse=true)) | |
OSSIM_DEPRECATE_METHOD (virtual ossimConnectableObject *findObjectOfType(const ossimString &obj, ossimConnectableObjectDirectionType directionType, bool recurse=true)) | |
OSSIM_DEPRECATE_METHOD (virtual ossimConnectableObject *findInputObjectOfType(const ossimString &className)) | |
virtual ossim_int32 | findInputIndex (const ossimConnectableObject *object) |
Return a valid index of the input list if the passed in object is found else return -1. More... | |
virtual ossim_int32 | findInputIndex (const ossimId &id) |
Return a valid index of the input list if the passed id is found else return -1. More... | |
virtual ossim_int32 | findOutputIndex (const ossimConnectableObject *object) |
Return a valid index of the output list if the passed in object is found else return -1. More... | |
virtual ossim_int32 | findOutputIndex (const ossimId &id) |
Return a valid index of the output list if the passed in object is found else return -1. More... | |
virtual ossim_int32 | getMyInputIndexToConnectTo (ossimConnectableObject *object) const |
Should return the first available index to connect to. More... | |
virtual ossim_int32 | getMyOutputIndexToConnectTo (ossimConnectableObject *object) const |
Should return the first available index to connect to. More... | |
virtual bool | canConnectMyOutputTo (ossim_int32 myOutputIndex, const ossimConnectableObject *object) const |
default implementation is to allow anyone to connect to us. More... | |
virtual void | disconnect (ossimConnectableObject *object=0) |
Will disconnect the object passed in. More... | |
virtual void | disconnect (const ossimId &id) |
Will disconnect the object passed in. More... | |
virtual ossimRefPtr< ossimConnectableObject > | disconnectMyInput (ossim_int32 inputIndex, bool disconnectOutputFlag=true, bool createEventFlag=true) |
Will disconnect the object at the given input index and generate a connection event. More... | |
virtual void | disconnectMyInput (ossimConnectableObject *input, bool disconnectOutputFlag=true, bool createEventFlag=true) |
Finds the index of the passed in input and calls disconnectMyInput(inputIndex, disconnectOutputFlag, createEventFlag);. More... | |
virtual void | disconnectMyInputs (ConnectableObjectList &inputList, bool disconnectOutputFlag=true, bool createEventFlag=true) |
virtual ossimRefPtr< ossimConnectableObject > | disconnectMyOutput (ossim_int32 outputIndex, bool disconnectInputFlag=true, bool createEventFlag=true) |
Will disconnect the object at the given output index and generate a connection event. More... | |
virtual void | disconnectMyOutput (ossimConnectableObject *output, bool disconnectInputFlag=true, bool createEventFlag=true) |
Will disconnect the output object. More... | |
virtual void | disconnectMyOutputs (ConnectableObjectList &outputList, bool disconnectOutputFlag=true, bool createEventFlag=true) |
virtual void | disconnectAllInputs () |
Will disconnect all of the input objects. More... | |
virtual void | disconnectAllOutputs () |
Will disconnect all of the output objects. More... | |
virtual ossim_int32 | connectMyInputTo (ossimConnectableObject *inputObject, bool makeOutputConnection=true, bool createEventFlag=true) |
Will try to connect this objects input to the passed in object. More... | |
virtual ossim_int32 | connectMyInputTo (ossim_int32 inputIndex, ossimConnectableObject *inputObject, bool makeOutputConnection=true, bool createEventFlag=true) |
Will connect the specified input to the passed in object. More... | |
virtual bool | connectMyInputTo (ConnectableObjectList &inputList, bool makeOutputConnection=true, bool createEventFlag=true) |
virtual ossim_int32 | connectMyOutputTo (ossimConnectableObject *outputObject, bool makeInputConnection=true, bool createEventFlag=true) |
Will try to connect this objects output to the passed in object. More... | |
virtual bool | connectMyOutputTo (ConnectableObjectList &outputList, bool makeInputConnection=true, bool createEventFlag=true) |
virtual bool | connectInputList (ConnectableObjectList &inputList) |
Will disconnect itself from all inputs and reset to the passed in input list. More... | |
virtual bool | connectOutputList (ConnectableObjectList &outputList) |
Will disconnect itself from all outputs and reset to the passed in output list. More... | |
virtual ossim_uint32 | getNumberOfInputs () const |
Returns the number of input objects. More... | |
virtual ossim_uint32 | getNumberOfOutputs () const |
Return the number of output objects. More... | |
ossimConnectableObject * | getInput (ossim_uint32 index=0) |
returns the object at the specified index. More... | |
const ossimConnectableObject * | getInput (ossim_uint32 index=0) const |
returns the object at the specified index. More... | |
ossimConnectableObject * | getOutput (ossim_uint32 index=0) |
returns the object at the specified index. More... | |
const ossimConnectableObject * | getOutput (ossim_uint32 index=0) const |
returns the object at the specified index. More... | |
virtual void | setNumberOfInputs (ossim_int32 numberOfInputs) |
Will set the number of inputs. More... | |
virtual bool | getInputListIsFixedFlag () const |
virtual bool | getOutputListIsFixedFlag () const |
virtual void | setNumberOfOutputs (ossim_int32 numberOfInputs) |
Will set the number of outputs. More... | |
const ConnectableObjectList & | getInputList () const |
const ConnectableObjectList & | getOutputList () const |
ConnectableObjectList & | getInputList () |
ConnectableObjectList & | getOutputList () |
OSSIM_DEPRECATE_METHOD (virtual void findAllObjectsOfType(ConnectableObjectList &result, const RTTItypeid &typeInfo, bool recurse=true)) | |
OSSIM_DEPRECATE_METHOD (virtual void findAllObjectsOfType(ConnectableObjectList &result, const ossimString &className, bool recurse=true)) | |
virtual void | propagateEventToOutputs (ossimEvent &event) |
virtual void | propagateEventToInputs (ossimEvent &event) |
virtual void | setProperty (const ossimString &name, const ossimString &value) |
virtual ossim_uint32 | saveStateOfAllInputs (ossimKeywordlist &kwl, bool saveThisStateFlag=true, ossim_uint32 objectIndex=1, const char *prefix=0) const |
Save the state of all inputs to a keyword list. More... | |
virtual bool | fillContainer (ossimConnectableContainer &container) |
Inserts this object and all of its children and inputs into the container provided. More... | |
bool | moveInputUp (const ossimId &id) |
Moves the input connection matching id up one in the connection list. More... | |
bool | moveInputDown (const ossimId &id) |
Moves the input connection matching id down one in the connection list. More... | |
bool | moveInputToTop (const ossimId &id) |
Moves the input connection matching id to the top of the connection list. More... | |
bool | moveInputToBottom (const ossimId &id) |
Moves the input connection matching id to the bottom of the connection list. More... | |
virtual void | accept (ossimVisitor &visitor) |
We will add a visitor interface for all connectable objects. More... | |
![]() | |
ossimObject () | |
virtual | ~ossimObject () |
virtual ossimObject * | dup () 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 | 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 |
![]() | |
ossimListenerManager () | |
virtual | ~ossimListenerManager () |
virtual void | fireEvent (ossimEvent &event) |
virtual bool | addListener (ossimListener *listener) |
virtual bool | removeListener (ossimListener *listener) |
virtual bool | findListener (ossimListener *listener) |
![]() | |
ossimPropertyInterface () | |
virtual | ~ossimPropertyInterface () |
virtual ossimString | getPropertyValueAsString (const ossimString &name) const |
void | getPropertyList (std::vector< ossimRefPtr< ossimProperty > > &propertyList) const |
void | setProperties (std::vector< ossimRefPtr< ossimProperty > > &propertyList) |
![]() | |
ossimErrorStatusInterface () | |
virtual | ~ossimErrorStatusInterface () |
virtual ossimErrorCode | getErrorStatus () const |
virtual ossimString | getErrorStatusString () const |
virtual void | setErrorStatus (ossimErrorCode error_status) const |
virtual void | setErrorStatus () const |
virtual void | clearErrorStatus () const |
bool | hasError () const |
![]() | |
ossimConnectableObjectListener () | |
virtual | ~ossimConnectableObjectListener () |
virtual void | processEvent (ossimEvent &event) |
ProcessEvent. More... | |
virtual void | objectDestructingEvent (ossimObjectDestructingEvent &) |
virtual void | connectionEvent (ossimConnectionEvent &) |
virtual void | disconnectOutputEvent (ossimConnectionEvent &) |
virtual void | connectOutputEvent (ossimConnectionEvent &) |
virtual void | addObjectEvent (ossimContainerEvent &) |
virtual void | removeObjectEvent (ossimContainerEvent &) |
virtual void | containerEvent (ossimContainerEvent &) |
![]() | |
ossimListener () | |
virtual | ~ossimListener () |
void | enableListener () |
void | disableListener () |
void | setListenerEnableFlag (bool flag) |
bool | isListenerEnabled () const |
bool | getListenerEnableFlag () const |
Protected Member Functions | |
void | allocate () |
Called on first getTile, will initialize all data needed. More... | |
void | checkPassThrough () |
Will check all combinations of the band list to see if its. More... | |
bool | outputBandsWithinInputRange () const |
ossimRefPtr< ossimImageHandler > | getBandSelectableImageHandler () const |
Finds and returns band selectable image handler. More... | |
bool | getRgbBandList (std::vector< ossim_uint32 > &bandList) const |
Attempts to derive rgb bands from image handler to the left of the band selector. More... | |
![]() | |
virtual | ~ossimImageSourceFilter () |
![]() | |
ossimImageSource (const ossimImageSource &rhs) | |
const ossimImageSource & | operator= (const ossimImageSource &) |
![]() | |
ossimSource (const ossimSource &rhs) | |
const ossimSource & | operator= (const ossimSource &rhs) |
![]() | |
ossimConnectableObject * | findObjectOfType (ConnectableObjectList *connectableList, ossimVisitor &visitor) |
![]() | |
virtual | ~ossimReferenced () |
![]() | |
ossimListenerManager (const ossimListenerManager &rhs) | |
Definition at line 20 of file ossimBandSelector.h.
Enumerator | |
---|---|
ossimBandSelectorWithinRangeFlagState_NOT_SET | |
ossimBandSelectorWithinRangeFlagState_IN_RANGE | |
ossimBandSelectorWithinRangeFlagState_OUT_OF_RANGE |
Definition at line 24 of file ossimBandSelector.h.
ossimBandSelector::ossimBandSelector | ( | ) |
Definition at line 30 of file ossimBandSelector.cpp.
|
virtual |
|
protected |
Called on first getTile, will initialize all data needed.
Definition at line 276 of file ossimBandSelector.cpp.
References ossimImageDataFactory::create(), ossimImageData::initialize(), ossimImageDataFactory::instance(), and m_tile.
Referenced by getTile().
|
protected |
Will check all combinations of the band list to see if its.
Definition at line 459 of file ossimBandSelector.cpp.
References ossimImageSource::getOutputBandList(), m_outputBandList, m_passThroughFlag, outputBandsWithinInputRange(), and ossimImageSourceFilter::theInputConnection.
Referenced by setOutputBandList().
|
protected |
Finds and returns band selectable image handler.
To get a valid pointer there must be one and only one image handler on the input connection and it must be a band selector. In other words, must be a single image chain input and ossimImageHandler::isBandSelector() must return true.
GP: We will only allow the immediate input check for an image handler and if one is present then check if selectable
Definition at line 653 of file ossimBandSelector.cpp.
References ossimConnectableObject::accept(), ossimCollectionVisitor::getObjectAs(), ossimCollectionVisitor::getObjects(), ossimImageHandler::isBandSelector(), ossimImageSourceFilter::theInputConnection, ossimRefPtr< T >::valid(), ossimVisitor::VISIT_CHILDREN, and ossimVisitor::VISIT_INPUTS.
Referenced by getNumberOfInputBands(), and setOutputBandList().
|
virtual |
Reimplemented from ossimObject.
Definition at line 556 of file ossimBandSelector.cpp.
|
virtual |
Returns the max pixel of the band.
Reimplemented from ossimImageSource.
Definition at line 345 of file ossimBandSelector.cpp.
References DBL_EPSILON, ossimImageSource::getMaxPixelValue(), isSourceEnabled(), m_outputBandList, and ossimImageSourceFilter::theInputConnection.
|
virtual |
Returns the min pixel of the band.
Reimplemented from ossimImageSource.
Definition at line 296 of file ossimBandSelector.cpp.
References ossimImageSource::getMinPixelValue(), isSourceEnabled(), m_outputBandList, and ossimImageSourceFilter::theInputConnection.
|
virtual |
Each band has a null pixel associated with it.
The null pixel represents an invalid value.
Reimplemented from ossimImageSource.
Definition at line 320 of file ossimBandSelector.cpp.
References ossimImageSource::getNullPixelValue(), isSourceEnabled(), m_outputBandList, and ossimImageSourceFilter::theInputConnection.
|
virtual |
Returns the number of input bands.
Overrides ossimImageSourceFilter::getNumberOfInputBands to check for a single image chain band selectable image handler on the input. If one is present it returns it's number of input bands instead of the number of the input connection's output bands(our input). This is needed so callers, e.g. band selector dialog box can query the number of bands available.
Reimplemented from ossimImageSourceFilter.
Definition at line 183 of file ossimBandSelector.cpp.
References getBandSelectableImageHandler(), ossimImageSourceFilter::getNumberOfInputBands(), ossimImageSource::getNumberOfInputBands(), and ossimRefPtr< T >::valid().
Referenced by outputBandsWithinInputRange().
|
virtual |
Returns the number of bands in a tile returned from this TileSource.
Reimplemented from ossimImageSource.
Definition at line 161 of file ossimBandSelector.cpp.
References ossimImageSourceFilter::getNumberOfInputBands(), isSourceEnabled(), and m_outputBandList.
Referenced by ossimSingleImageChain::setToThreeBands().
|
virtual |
Initializes bandList to the zero based order of output bands.
Reimplemented from ossimImageSourceFilter.
Definition at line 540 of file ossimBandSelector.cpp.
References ossimImageSource::getOutputBandList(), isSourceEnabled(), m_outputBandList, and ossimImageSourceFilter::theInputConnection.
Referenced by getProperty().
|
virtual |
Reimplemented from ossimImageSourceFilter.
Definition at line 603 of file ossimBandSelector.cpp.
References ossimProperty::clearChangeType(), getOutputBandList(), ossimImageSourceFilter::getProperty(), ossimString::join(), m_outputBandList, ossimProperty::setCacheRefreshBit(), ossimProperty::setReadOnlyFlag(), ossim::toSimpleStringList(), and ossimString::toString().
|
virtual |
Reimplemented from ossimImageSourceFilter.
Definition at line 647 of file ossimBandSelector.cpp.
References ossimImageSourceFilter::getPropertyNames().
|
protected |
Attempts to derive rgb bands from image handler to the left of the band selector.
Must be one and only one image handler on the input connection. In other words, must be a single image chain input.
Definition at line 696 of file ossimBandSelector.cpp.
References ossimConnectableObject::accept(), ossimCollectionVisitor::getObjectAs(), ossimCollectionVisitor::getObjects(), ossimImageHandler::getRgbBandList(), ossimImageSourceFilter::theInputConnection, ossimRefPtr< T >::valid(), ossimVisitor::VISIT_CHILDREN, and ossimVisitor::VISIT_INPUTS.
|
virtual |
Reimplemented from ossimObject.
Definition at line 561 of file ossimBandSelector.cpp.
|
virtual |
Reimplemented from ossimImageSource.
Definition at line 49 of file ossimBandSelector.cpp.
References allocate(), ossimImageData::assignBand(), ossimRefPtr< T >::get(), ossimDataObject::getDataObjectStatus(), ossimImageSource::getTile(), isSourceEnabled(), m_outputBandList, m_passThroughFlag, m_tile, m_withinRangeFlag, ossimImageData::makeBlank(), OSSIM_EMPTY, OSSIM_NULL, ossimBandSelectorWithinRangeFlagState_IN_RANGE, ossimBandSelectorWithinRangeFlagState_NOT_SET, ossimBandSelectorWithinRangeFlagState_OUT_OF_RANGE, outputBandsWithinInputRange(), ossimImageData::setImageRectangle(), ossimImageSourceFilter::theInputConnection, ossimRefPtr< T >::valid(), and ossimImageData::validate().
|
virtual |
Reimplemented from ossimImageSourceFilter.
Definition at line 202 of file ossimBandSelector.cpp.
Referenced by loadState(), and setThreeBandRgb().
|
virtual |
Reimplemented from ossimSource.
Definition at line 284 of file ossimBandSelector.cpp.
References ossimSource::isSourceEnabled(), and m_passThroughFlag.
Referenced by getMaxPixelValue(), getMinPixelValue(), getNullPixelValue(), getNumberOfOutputBands(), getOutputBandList(), and getTile().
|
virtual |
Method to the load (recreate) the state of an object from a keyword list.
Return true if ok or false on error.
Reimplemented from ossimImageSourceFilter.
Definition at line 400 of file ossimBandSelector.cpp.
References ossimKeywordNames::BANDS_KW, ossimString::downcase(), ossimString::empty(), ossimKeywordlist::find(), ossimKeywordlist::getSubstringKeyList(), initialize(), ossimImageSourceFilter::loadState(), m_delayLoadRgbFlag, m_outputBandList, ossimString::toInt(), ossim::toSimpleVector(), and ossimString::toString().
|
protected |
Definition at line 502 of file ossimBandSelector.cpp.
References getNumberOfInputBands(), m_outputBandList, and ossimImageSourceFilter::theInputConnection.
Referenced by checkPassThrough(), and getTile().
|
virtual |
Method to save the state of an object to a keyword list.
Return true if ok or false on error.
Reimplemented from ossimImageSourceFilter.
Definition at line 369 of file ossimBandSelector.cpp.
References ossimKeywordlist::add(), ossimKeywordNames::BANDS_KW, m_outputBandList, ossimKeywordNames::NUMBER_OUTPUT_BANDS_KW, ossimImageSourceFilter::saveState(), and ossim::toSimpleStringList().
|
virtual |
Sets the output band list.
outputBandList | List of zero based bands. |
disablePassThru | If true, forces the band selection to be performed by this filter. Otherwise, the image handler to the left is directed to select bands if it has that capability (default behavior). |
Definition at line 120 of file ossimBandSelector.cpp.
References checkPassThrough(), getBandSelectableImageHandler(), ossimImageData::getNumberOfBands(), ossimImageSource::getOutputScalarType(), ossimRectilinearDataObject::getScalarType(), m_outputBandList, m_passThroughFlag, m_tile, m_withinRangeFlag, ossimBandSelectorWithinRangeFlagState_NOT_SET, ossimImageHandler::setOutputBandList(), ossimImageSourceFilter::theInputConnection, and ossimRefPtr< T >::valid().
Referenced by ossimSingleImageChain::addBandSelector(), ATP::AtpAnnotatedImage::AtpAnnotatedImage(), ATP::AtpGenerator::constructChain(), main(), ossimSingleImageChain::setBandSelection(), and setProperty().
|
virtual |
Override base class so that a disableSource event does not reinitialize the object and enable itself.
Reimplemented from ossimImageSourceFilter.
Definition at line 566 of file ossimBandSelector.cpp.
References ossimProperty::getName(), m_outputBandList, setOutputBandList(), ossimImageSourceFilter::setProperty(), ossimString::split(), ossim::toSimpleVector(), ossimRefPtr< T >::valid(), and ossimProperty::valueToString().
|
virtual |
Will set to three bands (rgb) out.
This will attempt to auto detect the zero based rgb band order from the input image handler. If the result is < 3 bands we will not increase the band output by adding more bands. For example,
if the input is grey or thermal then it will just output one band for a default allocation. Note, this can be overriden by explicitly setting the output band list.
If the image handler implemented getRgbBandList(...) it will use that: bands = 2,1,0 ( or whatever handler thinks rgb is ) else if 3 band or greater and can't determine rgb: bands = 0,1,2 else (less than three bands) bands = 0
Definition at line 113 of file ossimBandSelector.cpp.
References initialize(), m_delayLoadRgbFlag, and m_outputBandList.
Referenced by ossimSingleImageChain::setDefaultBandSelection(), and ossimSingleImageChain::setToThreeBands().
|
protected |
Definition at line 183 of file ossimBandSelector.h.
Referenced by loadState(), and setThreeBandRgb().
|
protected |
Definition at line 184 of file ossimBandSelector.h.
|
protected |
Definition at line 180 of file ossimBandSelector.h.
Referenced by checkPassThrough(), getMaxPixelValue(), getMinPixelValue(), getNullPixelValue(), getNumberOfOutputBands(), getOutputBandList(), getProperty(), getTile(), loadState(), outputBandsWithinInputRange(), saveState(), setOutputBandList(), setProperty(), and setThreeBandRgb().
|
protected |
Definition at line 182 of file ossimBandSelector.h.
Referenced by checkPassThrough(), getTile(), isSourceEnabled(), and setOutputBandList().
|
protected |
Definition at line 179 of file ossimBandSelector.h.
Referenced by allocate(), getTile(), setOutputBandList(), and ~ossimBandSelector().
|
protected |
Definition at line 181 of file ossimBandSelector.h.
Referenced by getTile(), and setOutputBandList().