OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimImageRenderer.h>
Classes | |
class | ossimRendererSubRectInfo |
Public Member Functions | |
ossimImageRenderer () | |
ossimImageRenderer (ossimImageSource *inputSource, ossimImageViewTransform *imageViewTrans=NULL) | |
virtual | ~ossimImageRenderer () |
virtual ossimString | getLongName () const |
virtual ossimString | getShortName () const |
virtual ossimRefPtr< ossimImageData > | getTile (const ossimIrect &origin, ossim_uint32 resLevel=0) |
the resampler will need the tile request to come from the view. More... | |
virtual void | initialize () |
virtual ossimIrect | getBoundingRect (ossim_uint32 resLevel=0) const |
m_Resampler will adjust the rect to whatever the view is. More... | |
virtual void | getBoundingRect (ossimIrect &rect, ossim_uint32 resLevel=0) const |
Gets the bounding rectangle of the source. More... | |
virtual bool | saveState (ossimKeywordlist &kwl, const char *prefix=0) const |
Method to save the state of an object to a keyword list. More... | |
virtual bool | loadState (const ossimKeywordlist &kwl, const char *prefix=0) |
Method to the load (recreate) the state of an object from a keyword list. More... | |
void | setImageViewTransform (ossimImageViewTransform *transform) |
ossimImageViewTransform * | getImageViewTransform () |
virtual ossimRefPtr< ossimImageGeometry > | getImageGeometry () |
Returns instance to the input image geometry. More... | |
virtual bool | setView (ossimObject *baseObject) |
ossimFilterResampler * | getResampler () |
virtual ossimObject * | getView () |
virtual const ossimObject * | getView () const |
virtual void | getDecimationFactor (ossim_uint32 resLevel, ossimDpt &result) const |
Will return the decimation factor for the given resolution level. More... | |
virtual void | getDecimationFactors (vector< ossimDpt > &decimations) const |
virtual ossim_uint32 | getNumberOfDecimationLevels () const |
Will return the number of resolution levels. More... | |
virtual void | setAutoUpdateInputTransformFlag (bool flag) |
virtual void | getValidImageVertices (vector< ossimIpt > &validVertices, ossimVertexOrdering ordering=OSSIM_CLOCKWISE_ORDER, ossim_uint32 resLevel=0) const |
ordering specifies how the vertices should be arranged. More... | |
void | setMaxLevelsToCompute (ossim_uint32 maxLevels) |
ossim_uint32 | getMaxLevelsToCompute () const |
void | connectInputEvent (ossimConnectionEvent &event) |
void | disconnectInputEvent (ossimConnectionEvent &event) |
void | propertyEvent (ossimPropertyEvent &event) |
virtual void | refreshEvent (ossimRefreshEvent &event) |
virtual void | setProperty (ossimRefPtr< ossimProperty > property) |
virtual ossimRefPtr< ossimProperty > | getProperty (const ossimString &name) const |
virtual void | getPropertyNames (std::vector< ossimString > &propertyNames) const |
virtual void | enableSource () |
Enables source. More... | |
virtual void | disableSource () |
Disables source. More... | |
virtual void | setEnableFlag (bool flag) |
Sets the enable flag. More... | |
![]() | |
ossimImageSourceFilter (ossimObject *owner=NULL) | |
ossimImageSourceFilter (ossimImageSource *inputSource) | |
ossimImageSourceFilter (ossimObject *owner, ossimImageSource *inputSource) | |
virtual void | getOutputBandList (std::vector< ossim_uint32 > &bandList) const |
virtual ossim_uint32 | getNumberOfInputBands () const |
bool | canConnectMyInputTo (ossim_int32 inputIndex, const ossimConnectableObject *object) const |
required to be overriden by derived classes More... | |
![]() | |
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 | getDecimationFactors (std::vector< ossimDpt > &decimations) const |
Will return an array of all decimations for each resolution level. More... | |
virtual ossim_uint32 | getNumberOfOutputBands () const |
Returns the number of bands in a tile returned from this TileSource. 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 double | getNullPixelValue (ossim_uint32 band=0) const |
Each band has a null pixel associated with it. More... | |
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 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 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 bool | isSourceEnabled () const |
virtual bool | getEnableFlag () const |
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 |
![]() | |
ossimViewInterface () | |
ossimViewInterface (ossimObject *base) | |
virtual | ~ossimViewInterface () |
virtual void | refreshView () |
ossimObject * | getBaseObject () |
Private Member Functions | |
void | recursiveResample (ossimRefPtr< ossimImageData > outputData, const ossimRendererSubRectInfo &rectInfo, ossim_uint32 level) |
void | fillTile (ossimRefPtr< ossimImageData > outputData, const ossimRendererSubRectInfo &rectInfo) |
ossimIrect | getBoundingImageRect () const |
void | checkIVT () |
this is called on a property event and on input connection changes. More... | |
void | initializeBoundingRects () |
Initializes m_inputR0Rect and m_viewBoundingRect and sets m_rectsDirty appropriately. More... | |
ossimRefPtr< ossimImageData > | getTileAtResLevel (const ossimIrect &boundingRect, ossim_uint32 resLevel) |
template<class T > | |
void | resampleTileToDecimation (T dummyVariable, ossimRefPtr< ossimImageData > result, ossimRefPtr< ossimImageData > tile, ossim_uint32 multiplier) |
long | computeClosestResLevel (const std::vector< ossimDpt > &decimationFactors, double scale) const |
void | stretchQuadOut (const ossimDpt &amount, ossimDpt &ul, ossimDpt &ur, ossimDpt &lr, ossimDpt &ll) |
void | allocate () |
Called on first getTile, will initialize all data needed. More... | |
void | deallocate () |
Deletes all allocated tiles. More... | |
Private Attributes | |
ossimFilterResampler * | m_Resampler |
ossimRefPtr< ossimImageData > | m_BlankTile |
ossimRefPtr< ossimImageData > | m_Tile |
ossimRefPtr< ossimImageData > | m_TemporaryBuffer |
ossim_uint32 | m_StartingResLevel |
This is going to allow us to chain multiple renderers together. More... | |
ossimRefPtr< ossimImageViewTransform > | m_ImageViewTransform |
ossimIrect | m_inputR0Rect |
ossimIrect | m_viewRect |
bool | m_rectsDirty |
ossim_uint32 | m_MaxRecursionLevel |
bool | m_AutoUpdateInputTransform |
ossim_uint32 | m_MaxLevelsToCompute |
ossimPolyArea2d | m_viewArea |
bool | m_crossesDateline |
Definition at line 26 of file ossimImageRenderer.h.
ossimImageRenderer::ossimImageRenderer | ( | ) |
Definition at line 1039 of file ossimImageRenderer.cpp.
References m_ImageViewTransform, m_Resampler, and ossimViewInterface::theObject.
ossimImageRenderer::ossimImageRenderer | ( | ossimImageSource * | inputSource, |
ossimImageViewTransform * | imageViewTrans = NULL |
||
) |
Definition at line 1061 of file ossimImageRenderer.cpp.
References m_ImageViewTransform, m_Resampler, ossimViewInterface::theObject, and ossimRefPtr< T >::valid().
|
virtual |
Definition at line 1086 of file ossimImageRenderer.cpp.
References m_ImageViewTransform, and m_Resampler.
|
private |
Called on first getTile, will initialize all data needed.
Definition at line 1764 of file ossimImageRenderer.cpp.
References ossimImageDataFactory::create(), deallocate(), ossimImageData::initialize(), ossimImageDataFactory::instance(), m_BlankTile, m_Tile, and ossimImageSourceFilter::theInputConnection.
|
private |
this is called on a property event and on input connection changes.
Definition at line 2037 of file ossimImageRenderer.cpp.
References ossimRefPtr< T >::get(), ossimImageViewProjectionTransform::getImageGeometry(), ossimImageSource::getImageGeometry(), ossimConnectableObject::getInput(), ossimSource::isSourceEnabled(), ossimImageViewTransform::isValid(), m_ImageViewTransform, and PTR_CAST.
Referenced by connectInputEvent(), getImageGeometry(), initialize(), propertyEvent(), setEnableFlag(), and setImageViewTransform().
|
private |
|
virtual |
Reimplemented from ossimImageSourceFilter.
Definition at line 1940 of file ossimImageRenderer.cpp.
References checkIVT(), ossimConnectableObject::getInput(), initialize(), m_ImageViewTransform, PTR_CAST, ossimImageSourceFilter::theInputConnection, and ossimRefPtr< T >::valid().
|
private |
Deletes all allocated tiles.
Definition at line 1757 of file ossimImageRenderer.cpp.
References m_BlankTile, m_TemporaryBuffer, and m_Tile.
Referenced by allocate(), and initialize().
|
virtual |
Disables source.
Overrides ossimSource::disableSource so bounding rects are recomputed on state change.
Reimplemented from ossimSource.
Definition at line 2555 of file ossimImageRenderer.cpp.
References ossimSource::isSourceEnabled(), and setEnableFlag().
|
virtual |
Reimplemented from ossimImageSourceFilter.
Definition at line 1950 of file ossimImageRenderer.cpp.
References ossimRefPtr< T >::get(), m_ImageViewTransform, ossimImageViewProjectionTransform::setImageGeometry(), and ossimImageSourceFilter::theInputConnection.
|
virtual |
Enables source.
Overrides ossimSource::enableSource so bounding rects are recomputed on state change.
Reimplemented from ossimSource.
Definition at line 2547 of file ossimImageRenderer.cpp.
References ossimSource::isSourceEnabled(), and setEnableFlag().
|
private |
Definition at line 1348 of file ossimImageRenderer.cpp.
References ossimImageRenderer::ossimRendererSubRectInfo::getAbsValueImageToViewScales(), ossimImageData::getBuf(), ossimDataObject::getDataObjectStatus(), ossimImageSource::getDecimationFactor(), ossimFilterResampler::getKernelSupport(), ossimImageSource::getNumberOfDecimationLevels(), getTileAtResLevel(), ossimImageRenderer::ossimRendererSubRectInfo::getViewRect(), ossimDpt::hasNans(), ossimDrect::height(), ossimImageRenderer::ossimRendererSubRectInfo::imageHasNans(), ossimDrect::lr(), ossimImageRenderer::ossimRendererSubRectInfo::m_Ill, ossimImageRenderer::ossimRendererSubRectInfo::m_Ilr, m_inputR0Rect, ossimImageRenderer::ossimRendererSubRectInfo::m_Iul, ossimImageRenderer::ossimRendererSubRectInfo::m_Iur, m_Resampler, m_StartingResLevel, ossimDpt::makeNan(), OSSIM_EMPTY, OSSIM_NULL, ossimFilterResampler::resample(), RSET_SEARCH_THRESHHOLD, ossimFilterResampler::setBoundingInputRect(), ossimFilterResampler::setScaleFactor(), status, ossimImageSourceFilter::theInputConnection, ossimDrect::ul(), ossimRefPtr< T >::valid(), ossimDrect::width(), ossimDpt::x, and ossimDpt::y.
Referenced by recursiveResample().
|
private |
|
virtual |
m_Resampler will adjust the rect to whatever the view is.
So it will project the full image rect onto the view and return the upright bounding rect.
Reimplemented from ossimImageSource.
Definition at line 1554 of file ossimImageRenderer.cpp.
|
virtual |
Gets the bounding rectangle of the source.
This is the output view bounds.
rect | Initialized with bounding rectangle by this. |
resLevel | Reduced resolution level if applicable. |
Reimplemented from ossimImageSource.
Definition at line 1576 of file ossimImageRenderer.cpp.
References ossimImageSource::getBoundingRect(), ossimSource::isSourceEnabled(), m_viewRect, ossimIrect::makeNan(), and ossimImageSourceFilter::theInputConnection.
|
virtual |
Will return the decimation factor for the given resolution level.
the decimation is the scale from Resolution 0 or full res. Usually this is a power of 2 decimation where the decimation result is 1.0/2^resoltion.
Reimplemented from ossimImageSource.
Definition at line 2136 of file ossimImageRenderer.cpp.
References ossimImageSource::getDecimationFactor(), and ossimSource::isSourceEnabled().
|
virtual |
Definition at line 2150 of file ossimImageRenderer.cpp.
References ossimImageSource::getDecimationFactors(), and ossimSource::isSourceEnabled().
|
virtual |
Returns instance to the input image geometry.
This may be a NULL pointer. This is only valid if the IVT is a projection type IVT (IVPT)
Reimplemented from ossimImageSource.
Definition at line 1916 of file ossimImageRenderer.cpp.
References checkIVT(), ossimRefPtr< T >::get(), ossimImageSource::getImageGeometry(), ossimImageViewProjectionTransform::getViewGeometry(), ossimSource::isSourceEnabled(), ossimImageViewTransform::isValid(), m_ImageViewTransform, ossimImageSourceFilter::theInputConnection, and ossimRefPtr< T >::valid().
|
inline |
Definition at line 84 of file ossimImageRenderer.h.
Referenced by ossimIvtGeomXformVisitor::visit().
|
virtual |
Reimplemented from ossimObject.
Definition at line 2515 of file ossimImageRenderer.cpp.
ossim_uint32 ossimImageRenderer::getMaxLevelsToCompute | ( | ) | const |
Definition at line 2368 of file ossimImageRenderer.cpp.
References m_MaxLevelsToCompute.
|
virtual |
Will return the number of resolution levels.
Note: resolution level 0 is included in the return count.
Reimplemented from ossimImageSource.
Definition at line 2162 of file ossimImageRenderer.cpp.
References ossimImageSource::getNumberOfDecimationLevels(), and ossimSource::isSourceEnabled().
|
virtual |
Reimplemented from ossimImageSourceFilter.
Definition at line 1991 of file ossimImageRenderer.cpp.
References ossimProperty::clearChangeType(), ossimFilterResampler::getFilterTypes(), ossimFilterResampler::getMinifyFilterTypeAsString(), ossimImageSourceFilter::getProperty(), m_Resampler, ossimProperty::setCacheRefreshBit(), and ossimProperty::setReadOnlyFlag().
|
virtual |
Reimplemented from ossimImageSourceFilter.
Definition at line 2026 of file ossimImageRenderer.cpp.
References ossimImageSourceFilter::getPropertyNames().
|
inline |
Definition at line 91 of file ossimImageRenderer.h.
Referenced by ossimKakaduJpipHandler::getTile().
|
virtual |
Reimplemented from ossimObject.
Definition at line 2520 of file ossimImageRenderer.cpp.
|
virtual |
the resampler will need the tile request to come from the view.
It will use the view to transoform this to world and then use the image's projection to get it into final line sample. This way the resampler can fill a tile width by height on the screen correctly.
Reimplemented from ossimImageSource.
Definition at line 1097 of file ossimImageRenderer.cpp.
Referenced by ossimKakaduJpipHandler::getTile().
|
private |
Definition at line 2203 of file ossimImageRenderer.cpp.
References ossimImageData::dup(), ossimImageSource::getBoundingRect(), ossimImageData::getBuf(), ossimDataObject::getDataObjectStatus(), ossimImageSource::getNumberOfDecimationLevels(), ossimRectilinearDataObject::getScalarType(), ossimImageSource::getTile(), ossimImageSource::getTileHeight(), ossimImageSource::getTileWidth(), ossimImageData::initialize(), ossimIrect::intersects(), ossimIrect::lr(), m_BlankTile, m_MaxLevelsToCompute, m_TemporaryBuffer, ossimImageData::makeBlank(), OSSIM_EMPTY, OSSIM_FLOAT32, OSSIM_FLOAT64, OSSIM_NORMALIZED_DOUBLE, OSSIM_NORMALIZED_FLOAT, OSSIM_SCALAR_UNKNOWN, OSSIM_SINT16, OSSIM_UINT16, OSSIM_UINT8, OSSIM_USHORT11, OSSIM_USHORT12, OSSIM_USHORT13, OSSIM_USHORT14, OSSIM_USHORT15, resampleTileToDecimation(), ossimImageData::setImageRectangle(), ossimIrect::stretchToTileBoundary(), ossimImageSourceFilter::theInputConnection, ossimIrect::ul(), ossimRefPtr< T >::valid(), ossimImageData::validate(), ossimIpt::x, and ossimIpt::y.
Referenced by fillTile().
|
virtual |
ordering specifies how the vertices should be arranged.
valid image vertices is basically the tightly fit convex hull of the image. Usually an image has NULL values and are internally not upright rectangular. This can cause problems some spatial filters.
We need to make sure that the resampler overrides this method. it needs to transform the vertices to the view's side.
Definition at line 1884 of file ossimImageRenderer.cpp.
References ossimImageSource::getValidImageVertices(), ossimImageViewTransform::imageToView(), ossimSource::isSourceEnabled(), ossimImageViewTransform::isValid(), m_ImageViewTransform, ossimImageSourceFilter::theInputConnection, and ossimRefPtr< T >::valid().
|
virtual |
Implements ossimViewInterface.
Definition at line 1866 of file ossimImageRenderer.cpp.
References ossimViewInterface::getView(), m_ImageViewTransform, and ossimRefPtr< T >::valid().
|
virtual |
Implements ossimViewInterface.
Definition at line 1875 of file ossimImageRenderer.cpp.
References ossimViewInterface::getView(), m_ImageViewTransform, and ossimRefPtr< T >::valid().
|
virtual |
Reimplemented from ossimImageSourceFilter.
Definition at line 1735 of file ossimImageRenderer.cpp.
References checkIVT(), deallocate(), ossimImageSourceFilter::initialize(), initializeBoundingRects(), ossimSource::isSourceEnabled(), ossimImageViewTransform::isValid(), m_ImageViewTransform, m_rectsDirty, and ossimRefPtr< T >::valid().
Referenced by connectInputEvent(), ossimEquationUtil::initInputSources(), propertyEvent(), refreshEvent(), and setEnableFlag().
|
private |
Initializes m_inputR0Rect and m_viewBoundingRect and sets m_rectsDirty appropriately.
Definition at line 1600 of file ossimImageRenderer.cpp.
References ossimPolyArea2d::add(), ossimIrect::combine(), ossimRefPtr< T >::get(), ossimImageSource::getBoundingRect(), ossimImageGeometry::getBoundingRect(), ossimImageGeometry::getCrossesDateline(), ossimImageViewProjectionTransform::getImageGeometry(), ossimImageViewTransform::getImageToViewBounds(), ossimImageGeometry::getMetersPerPixel(), ossimImageViewProjectionTransform::getViewGeometry(), ossimImageViewProjectionTransform::getViewSegments(), ossimDpt::hasNans(), ossimIrect::hasNans(), ossimDrect::height(), m_ImageViewTransform, m_inputR0Rect, m_rectsDirty, m_viewArea, m_viewRect, ossimIrect::makeNan(), ossim::max(), ossim::min(), ossimNotify(), ossimNotifyLevel_DEBUG, ossimImageSourceFilter::theInputConnection, ossimRefPtr< T >::valid(), ossimDrect::width(), and ossimDpt::y.
Referenced by initialize(), setImageViewTransform(), and setView().
|
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 1798 of file ossimImageRenderer.cpp.
|
virtual |
Reimplemented from ossimImageSourceFilter.
Definition at line 1960 of file ossimImageRenderer.cpp.
References checkIVT(), and initialize().
|
private |
Definition at line 1250 of file ossimImageRenderer.cpp.
References fillTile(), ossimImageRenderer::ossimRendererSubRectInfo::getViewRect(), ossimIrect::height(), ossimImageRenderer::ossimRendererSubRectInfo::imageHasNans(), ossimImageRenderer::ossimRendererSubRectInfo::imageIsNan(), ossimPolyArea2d::intersects(), m_viewArea, ossimImageRenderer::ossimRendererSubRectInfo::splitView(), and ossimIrect::width().
|
virtual |
Reimplemented from ossimImageSourceFilter.
Definition at line 2525 of file ossimImageRenderer.cpp.
References ossimRefPtr< T >::get(), ossimImageSource::getImageGeometry(), ossimEvent::getObject(), ossimRefreshEvent::getRefreshType(), ossimImageSourceFilter::initialize(), initialize(), m_ImageViewTransform, ossimRefreshEvent::REFRESH_GEOMETRY, ossimImageSourceFilter::refreshEvent(), ossimImageViewProjectionTransform::setImageGeometry(), and ossimImageSourceFilter::theInputConnection.
|
private |
Definition at line 2374 of file ossimImageRenderer.cpp.
References ossimImageData::getBuf(), ossimDataObject::getDataObjectStatus(), ossimImageData::getHeight(), ossimImageData::getNullPix(), ossimImageData::getNumberOfBands(), ossimImageData::getOrigin(), ossimImageData::getWidth(), min, OSSIM_EMPTY, OSSIM_FULL, ossimIpt::x, and ossimIpt::y.
Referenced by getTileAtResLevel().
|
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 1777 of file ossimImageRenderer.cpp.
References ossimKeywordlist::add(), ossimString::c_str(), m_ImageViewTransform, m_MaxLevelsToCompute, m_Resampler, ossimFilterResampler::saveState(), ossimImageViewTransform::saveState(), ossimImageSource::saveState(), and ossimRefPtr< T >::valid().
|
inlinevirtual |
Definition at line 99 of file ossimImageRenderer.h.
|
virtual |
Sets the enable flag.
flag | True to enable, false to disable. |
Overrides ossimSource::setEnableFlag so bounding rects are recomputed on state change.
Reimplemented from ossimSource.
Definition at line 2563 of file ossimImageRenderer.cpp.
References checkIVT(), ossimSource::getEnableFlag(), initialize(), and ossimSource::setEnableFlag().
Referenced by disableSource(), and enableSource().
void ossimImageRenderer::setImageViewTransform | ( | ossimImageViewTransform * | transform | ) |
Definition at line 1836 of file ossimImageRenderer.cpp.
References checkIVT(), initializeBoundingRects(), ossimSource::isSourceEnabled(), ossimImageViewTransform::isValid(), m_ImageViewTransform, m_rectsDirty, and ossimRefPtr< T >::valid().
Referenced by ATP::AtpGenerator::constructChain(), ossimKakaduJpipHandler::getTile(), and ossimEquationUtil::initInputSources().
void ossimImageRenderer::setMaxLevelsToCompute | ( | ossim_uint32 | maxLevels | ) |
Definition at line 2363 of file ossimImageRenderer.cpp.
References m_MaxLevelsToCompute.
|
virtual |
Reimplemented from ossimImageSourceFilter.
Definition at line 1966 of file ossimImageRenderer.cpp.
References m_Resampler, ossimFilterResampler::setFilterType(), ossimImageSourceFilter::setProperty(), and ossimProperty::valueToString().
Referenced by ATP::AtpGenerator::constructChain().
|
virtual |
The derived classes should overrid this method and return true or false whether it was able to cast the past in view to a view that it can interface to. So if you are a projective view you might cast to an ossimProjection. The ownsTheView specifies whether or not it owns the passed in view pointer. This will specifiy whether or not the derived classes need to re-allocate the pointer or just delete its old pointer and set it to the passed in pointer.
Implements ossimViewInterface.
Definition at line 1853 of file ossimImageRenderer.cpp.
References initializeBoundingRects(), m_ImageViewTransform, ossimViewInterface::setView(), and ossimRefPtr< T >::valid().
Referenced by main(), and ossimChipProcTool::propagateGeometryToChains().
|
private |
Definition at line 2172 of file ossimImageRenderer.cpp.
References ossimDpt::length(), ossimDpt::x, and ossimDpt::y.
|
private |
Definition at line 336 of file ossimImageRenderer.h.
|
private |
Definition at line 315 of file ossimImageRenderer.h.
Referenced by allocate(), deallocate(), and getTileAtResLevel().
|
private |
Definition at line 340 of file ossimImageRenderer.h.
|
private |
Definition at line 329 of file ossimImageRenderer.h.
Referenced by checkIVT(), connectInputEvent(), disconnectInputEvent(), getImageGeometry(), getValidImageVertices(), getView(), initialize(), initializeBoundingRects(), ossimImageRenderer(), refreshEvent(), saveState(), setImageViewTransform(), setView(), and ~ossimImageRenderer().
|
private |
Definition at line 331 of file ossimImageRenderer.h.
Referenced by fillTile(), and initializeBoundingRects().
|
private |
Definition at line 337 of file ossimImageRenderer.h.
Referenced by getMaxLevelsToCompute(), getTileAtResLevel(), saveState(), and setMaxLevelsToCompute().
|
private |
Definition at line 335 of file ossimImageRenderer.h.
|
private |
Definition at line 333 of file ossimImageRenderer.h.
Referenced by initialize(), initializeBoundingRects(), and setImageViewTransform().
|
private |
Definition at line 314 of file ossimImageRenderer.h.
Referenced by fillTile(), getProperty(), ossimImageRenderer(), saveState(), setProperty(), and ~ossimImageRenderer().
|
private |
This is going to allow us to chain multiple renderers together.
So if we have one renderer doing a scale and they pass an r-level down and we have another renderer within the chain he will be starting at a different r-level. The default will be r-level 0 request coming from the right.
Definition at line 328 of file ossimImageRenderer.h.
Referenced by fillTile().
|
private |
Definition at line 317 of file ossimImageRenderer.h.
Referenced by deallocate(), and getTileAtResLevel().
|
private |
Definition at line 316 of file ossimImageRenderer.h.
Referenced by allocate(), and deallocate().
|
private |
Definition at line 339 of file ossimImageRenderer.h.
Referenced by initializeBoundingRects(), and recursiveResample().
|
private |
Definition at line 332 of file ossimImageRenderer.h.
Referenced by getBoundingRect(), and initializeBoundingRects().