OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
Class used for rendering point cloud data into a raster tile. More...
#include <ossimPointCloudImageHandler.h>
Classes | |
class | PcrBucket |
Public Types | |
enum | Components { INTENSITY =0, HIGHEST, LOWEST, RETURNS, RGB, NUM_COMPONENTS } |
![]() | |
enum | ossimImageHandlerOverviewCompressionType { OSSIM_OVERVIEW_COMPRESSION_NONE = 0, OSSIM_OVERVIEW_COMPRESSION_JPEG, OSSIM_OVERVIEW_COMPRESSION_LZW, OSSIM_OVERVIEW_COMPRESSION_DEFLATE, OSSIM_OVERVIEW_COMPRESSION_PACKBITS } |
![]() | |
enum | ossimConnectableObjectDirectionType { CONNECTABLE_DIRECTION_NONE = 0, CONNECTABLE_DIRECTION_INPUT = 1, CONNECTABLE_DIRECTION_OUTPUT = 2 } |
typedef std::vector< ossimRefPtr< ossimConnectableObject > > | ConnectableObjectList |
Public Member Functions | |
ossimPointCloudImageHandler () | |
virtual | ~ossimPointCloudImageHandler () |
virtual bool | open () |
open method. More... | |
virtual bool | isOpen () const |
is open method. More... | |
virtual void | close () |
Close method. More... | |
ossimRefPtr< ossimImageData > | getTile (const ossimIrect &rect, ossim_uint32 resLevel=0) override |
Returns a pointer to a tile given an origin representing the upper left corner of the tile to grab from the image. More... | |
bool | getTile (ossimImageData *result, ossim_uint32 resLevel=0) override |
Method to get a tile. More... | |
ossim_uint32 | getNumberOfInputBands () const override |
Gets bands. More... | |
ossim_uint32 | getNumberOfLines (ossim_uint32 resLevel=0) const override |
Gets lines. More... | |
ossim_uint32 | getNumberOfSamples (ossim_uint32 resLevel=0) const override |
Gets samples. More... | |
ossim_uint32 | getImageTileWidth () const override |
Gets tile width. More... | |
ossim_uint32 | getImageTileHeight () const override |
Gets tile height. More... | |
ossim_uint32 | getTileWidth () const override |
ossim_uint32 | getTileHeight () const override |
ossimScalarType | getOutputScalarType () const override |
void | getEntryList (std::vector< ossim_uint32 > &entryList) const override |
Gets entry list. More... | |
void | getEntryNames (std::vector< ossimString > &entryNames) const override |
ossim_uint32 | getCurrentEntry () const override |
bool | setCurrentEntry (ossim_uint32 entryIdx) override |
ossimString | getShortName () const override |
ossimString | getLongName () const override |
ossimRefPtr< ossimImageGeometry > | getImageGeometry () override |
Returns the image geometry object associated with this tile source or NULL if non defined. More... | |
double | getMinPixelValue (ossim_uint32 band) const override |
double | getMaxPixelValue (ossim_uint32 band) const override |
double | getNullPixelValue (ossim_uint32 band) const override |
ossim_uint32 | getNumberOfDecimationLevels () const override |
bool | saveState (ossimKeywordlist &kwl, const char *prefix) const override |
Method to save the state of an object to a keyword list. More... | |
bool | loadState (const ossimKeywordlist &kwl, const char *prefix) override |
Method to the load (recreate) the state of an object from a keyword list. More... | |
void | getValidImageVertices (std::vector< ossimIpt > &validVertices, ossimVertexOrdering ordering, ossim_uint32 resLevel) const override |
ordering specifies how the vertices should be arranged. More... | |
void | setProperty (ossimRefPtr< ossimProperty > property) override |
The reader properties are: – the GSD ("meters_per_pixel") which overrides computed nominal GSD – the GSD factor ("gsd_factor") scales the computed nominal GSD, defaults to 1.0. More... | |
ossimRefPtr< ossimProperty > | getProperty (const ossimString &name) const override |
bool | setPointCloudHandler (ossimPointCloudHandler *pch) |
Permits backdoor for setting the input point cloud handler object. More... | |
void | getGSD (ossimDpt &gsd, ossim_uint32 resLevel) const |
Get the GSD for resLevel. More... | |
void | setGSD (const ossim_float64 &gsd) |
Sets m_gsd data member and projection if projection is set. More... | |
![]() | |
ossimImageHandler () | |
Constructor (default): More... | |
virtual | ~ossimImageHandler () |
Destructor: Derived classes should implement. More... | |
virtual void | initialize () |
initialize Does nothing in this class. More... | |
virtual bool | openOverview () |
Searches for an overview. More... | |
virtual bool | openOverview (const ossimFilename &overview_file) |
Calls closeOverview(), then attempts to open the overview_file. More... | |
virtual void | closeOverview () |
If theOverview is initialized it will be deleted and set to NULL. More... | |
virtual const ossimImageHandler * | getOverview () const |
virtual bool | hasOverviews () const |
virtual ossimFilename | createDefaultOverviewFilename () const |
virtual ossimFilename | createDefaultGeometryFilename () const |
virtual ossimFilename | createDefaultMetadataFilename () const |
virtual ossimFilename | createDefaultHistogramFilename () const |
virtual ossimFilename | createDefaultValidVerticesFilename () const |
virtual bool | writeValidImageVertices (const std::vector< ossimIpt > &vertices, const ossimFilename &file=ossimFilename("")) |
Outputs vertices to file and updates the internal vertex array variable "theValidImageVertices". More... | |
virtual bool | openValidVertices (const ossimFilename &vertices_file) |
Opens the valid image vertices file and sets theValidImageVerticesFile variable. More... | |
virtual bool | openValidVertices () |
Creates vertices file name based on image, then tries to open. More... | |
virtual bool | open (const ossimFilename &imageFile, ossim_uint32 entryIndex) |
Opens the image file. More... | |
virtual bool | open (const ossimFilename &imageFile) |
virtual bool | open (std::shared_ptr< ossim::ImageHandlerState > state) |
virtual bool | buildHistogram (int numberOfRLevels=0, ossimHistogramMode mode=OSSIM_HISTO_MODE_NORMAL) |
Build a histogram for image file. More... | |
virtual bool | buildAllHistograms (int numberOfRLevels=0, ossimHistogramMode mode=OSSIM_HISTO_MODE_NORMAL) |
Build a histograms for all image entries. More... | |
virtual bool | buildOverview (ossimImageHandlerOverviewCompressionType compressionType=OSSIM_OVERVIEW_COMPRESSION_NONE, ossim_uint32 quality=75, ossimFilterResampler::ossimFilterResamplerType resampleType=ossimFilterResampler::ossimFilterResampler_BOX, bool includeFullResFlag=false) |
Will build over file for theImageFile. More... | |
virtual bool | buildAllOverviews (ossimImageHandlerOverviewCompressionType compressionType=OSSIM_OVERVIEW_COMPRESSION_NONE, ossim_uint32 quality=75, ossimFilterResampler::ossimFilterResamplerType resampleType=ossimFilterResampler::ossimFilterResampler_BOX, bool includeFullResFlag=false) |
Will build over file for all image entries. More... | |
virtual bool | buildOverview (const ossimFilename &filename, ossimImageHandlerOverviewCompressionType compressionType=OSSIM_OVERVIEW_COMPRESSION_NONE, ossim_uint32 quality=75, ossimFilterResampler::ossimFilterResamplerType resampleType=ossimFilterResampler::ossimFilterResampler_BOX, bool includeFullResFlag=false) |
Will build an over file for filename. More... | |
ossimRefPtr< ossimMultiResLevelHistogram > | getImageHistogram () const |
Fetches the current entry image's histogram. More... | |
virtual void | setImageGeometry (ossimImageGeometry *geom) |
Sets the image geometry object. More... | |
virtual void | saveImageGeometry () const |
Saves the image geometry to a file that will be made based on the image file name. More... | |
virtual void | saveImageGeometry (const ossimFilename &geometry_file) const |
Saves the image geometry to a file that will be made based on the image file name. More... | |
virtual ossimIrect | getImageRectangle (ossim_uint32 resLevel=0) const |
Returns zero-based bounding rectangle of the image. More... | |
virtual ossimIrect | getBoundingRect (ossim_uint32 resLevel=0) const |
Returns zero-based bounding rectangle of the image. More... | |
virtual void | getDecimationFactor (ossim_uint32 resLevel, ossimDpt &result) const |
virtual void | getDecimationFactors (vector< ossimDpt > &decimations) const |
This returns all decimation for all levels. More... | |
virtual ossim_uint32 | getNumberOfReducedResSets () const |
This method is obsolete. More... | |
virtual void | setFilename (const ossimFilename &filename) |
Sets the filename. More... | |
virtual const ossimFilename & | getFilename () const |
Returns the filename. More... | |
virtual bool | isValidRLevel (ossim_uint32 resLevel) const |
Determines if the passed in reslution level is valid. More... | |
bool | canConnectMyInputTo (ossim_int32 inputIndex, const ossimConnectableObject *object) const |
Connection rule. More... | |
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... | |
virtual bool | isBandSelector () const |
Indicates whether or not the image handler can control output band selection via the setOutputBandList method. More... | |
virtual bool | setOutputBandList (const std::vector< ossim_uint32 > &band_list) |
If the image handler "isBandSeletor()" then the band selection of the output chip can be controlled. More... | |
virtual bool | setOutputToInputBandList () |
If the image handler "isBandSeletor()" then the band selection of the output are set to input or identity. More... | |
virtual bool | isIdentityBandList (const std::vector< ossim_uint32 > &bandList) const |
Convenience method to see if band list is identity. More... | |
virtual bool | isImageTiled () const |
Indicates whether or not the image is tiled internally. More... | |
virtual bool | hasMetaData () const |
virtual ossimRefPtr< ossimNBandLutDataObject > | getLut () const |
virtual bool | hasLut () const |
virtual void | loadMetaData () |
There is an external file with an omd extension. More... | |
virtual void | setMinPixelValue (ossim_uint32 band, const ossim_float64 &pix) |
convenience method to set min pixel value. More... | |
virtual void | setMaxPixelValue (ossim_uint32 band, const ossim_float64 &pix) |
convenience method to set max pixel value. More... | |
virtual void | setNullPixelValue (ossim_uint32 band, const ossim_float64 &pix) |
convenience method to set null pixel value. More... | |
virtual ossim_uint32 | getNumberOfEntries () const |
virtual void | getEntryName (ossim_uint32 entryIdx, std::string &name) const |
Get the name of entry as a string. More... | |
bool | useEntryIndex () const |
Convenience method to determine if entry index should be used for support files, e.g. More... | |
ossimFilename | getOverviewFile () const |
virtual void | getPropertyNames (std::vector< ossimString > &propertyNames) const |
ossimFilename | getFilenameWithThisExtension (const ossimString &ext, bool set_e0_prefix=false) const |
Returns the image file with extension set using supplentary directory for dirname if set. More... | |
void | getFilenameWithThisExt (const ossimString &ext, ossimFilename &f) const |
Returns the image file with extension set using supplentary directory for dirname if set. More... | |
ossim_uint32 | getStartingResLevel () const |
void | setStartingResLevel (ossim_uint32 level) |
bool | getOpenOverviewFlag () const |
void | setOpenOverviewFlag (bool flag) |
Sets theOpenOverviewFlag. More... | |
virtual void | setSupplementaryDirectory (const ossimFilename &dir) |
Sets the supplementary directory. More... | |
virtual const ossimFilename & | getSupplementaryDirectory () const |
Returns the supplementary directory. More... | |
const ossimString & | getImageID () const |
Fetches the image ID. More... | |
void | setImageID (const ossimString &id) |
Sets the image ID in case it is externally generated. More... | |
ossimPixelType | getPixelType () const |
Returns the raster pixel alignment type. More... | |
virtual bool | getRgbBandList (std::vector< ossim_uint32 > &bandList) const |
Convenience method to get the zero based rgb output band list. More... | |
template<class T > | |
std::shared_ptr< T > | getStateAs () |
template<class T > | |
std::shared_ptr< const T > | getStateAs () const |
std::shared_ptr< ossim::ImageHandlerState > | getState () |
std::shared_ptr< const ossim::ImageHandlerState > | getState () const |
void | setState (std::shared_ptr< ossim::ImageHandlerState > state) |
![]() | |
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 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 void | getOutputBandList (std::vector< ossim_uint32 > &bandList) const |
Initializes bandList. More... | |
virtual void | getBoundingRect (ossimIrect &rect, ossim_uint32 resLevel=0) const |
Gets the bounding rectangle of the source. More... | |
virtual void | setImageGeometry (const ossimImageGeometry *geom) |
Default implementation sets geometry of the first input to the geometry specified. 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 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 |
Protected Member Functions | |
void | initTile () |
void | addSample (std::map< ossim_int32, PcrBucket *> &accumulator, ossim_int32 index, const ossimPointRecord *sample) |
void | normalize (std::map< ossim_int32, PcrBucket *> &accumulator) |
ossim_uint32 | componentToFieldCode () const |
![]() | |
virtual ossimRefPtr< ossimImageGeometry > | getExternalImageGeometry () const |
Returns the image geometry object associated with this tile source or NULL if non defined. More... | |
virtual ossimRefPtr< ossimImageGeometry > | getInternalImageGeometry () const |
virtual bool | getOverviewTile (ossim_uint32 resLevel, ossimImageData *result) |
Method to get an overview tile. More... | |
bool | initVertices (const char *file) |
Opens file and attempts to initialize the valid image vertices. More... | |
virtual void | completeOpen () |
Will complete the opening process. More... | |
void | initImageParameters (ossimImageGeometry *geom) const |
Convenience method to set things needed in the image geometry from the image handler. More... | |
virtual void | establishDecimationFactors () |
Virtual method determines the decimation factors at each resolution level. More... | |
virtual bool | setOutputBandList (const std::vector< ossim_uint32 > &inBandList, std::vector< ossim_uint32 > &outBandList) |
Convenience method to set output band list. More... | |
void | getFilenameWithNoExtension (ossimFilename &f) const |
Get filename with no extension, using supplentary directory for dirname if set. More... | |
![]() | |
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) | |
Class used for rendering point cloud data into a raster tile.
It is derived from ossimImageHandler so that it can be included in the available file formats for reading as maintained by the ossimImageHandlerRegistry. This base class implementation exposes the data elements represented by the base-class ossimPointCloudSource and the individual point base-class ossimPointCloudRecord, namely, intensity, RGB color, elevation, and number of returns.
For sensor systems providing additional renderable data items, a derived class will be required to expose those components.
Definition at line 35 of file ossimPointCloudImageHandler.h.
Enumerator | |
---|---|
INTENSITY | |
HIGHEST | |
LOWEST | |
RETURNS | |
RGB | |
NUM_COMPONENTS |
Definition at line 38 of file ossimPointCloudImageHandler.h.
ossimPointCloudImageHandler::ossimPointCloudImageHandler | ( | ) |
Definition at line 81 of file ossimPointCloudImageHandler.cpp.
References m_componentNames, m_gsd, and ossimDpt::makeNan().
|
virtual |
Definition at line 104 of file ossimPointCloudImageHandler.cpp.
References close().
|
protected |
Definition at line 354 of file ossimPointCloudImageHandler.cpp.
References ossimPointRecord::Blue, ossimPointRecord::getField(), ossimPointRecord::getPosition(), ossimPointRecord::Green, ossimGpt::hgt, HIGHEST, ossimPointRecord::Intensity, INTENSITY, LOWEST, m_activeComponent, ossimPointCloudImageHandler::PcrBucket::m_bucket, ossimPointRecord::NumberOfReturns, ossimPointRecord::Red, RETURNS, and RGB.
Referenced by getTile().
|
virtual |
Close method.
Reimplemented from ossimImageHandler.
Definition at line 145 of file ossimPointCloudImageHandler.cpp.
References ossimPointCloudHandler::close(), ossimImageHandler::close(), isOpen(), m_pch, and m_tile.
Referenced by open(), setPointCloudHandler(), and ~ossimPointCloudImageHandler().
|
protected |
Definition at line 811 of file ossimPointCloudImageHandler.cpp.
References ossimPointRecord::Blue, ossimPointRecord::Green, ossimPointRecord::Intensity, INTENSITY, m_activeComponent, ossimPointRecord::NumberOfReturns, ossimPointRecord::Red, RETURNS, and RGB.
Referenced by getTile().
|
overridevirtual |
Reimplemented from ossimImageHandler.
Definition at line 522 of file ossimPointCloudImageHandler.cpp.
References m_activeComponent.
|
overridevirtual |
Gets entry list.
This list reflects the data component entry list provided by the derived point-cloud handler. This base class understands the basic (LIDAR-biased) entries: "Intensity", "RGB", "Elevation", and "Return". If a sensor provides other components, then a derived image handler will be needed to rasterize that data channel as well.
entryList | This is the list to initialize with entry indexes. |
Reimplemented from ossimImageHandler.
Definition at line 508 of file ossimPointCloudImageHandler.cpp.
References m_componentNames.
|
overridevirtual |
getEntryNames | List to initialize with strings associated with entries. |
Reimplemented from ossimImageHandler.
Definition at line 517 of file ossimPointCloudImageHandler.cpp.
References m_componentNames.
void ossimPointCloudImageHandler::getGSD | ( | ossimDpt & | gsd, |
ossim_uint32 | resLevel | ||
) | const |
Get the GSD for resLevel.
Definition at line 616 of file ossimPointCloudImageHandler.cpp.
References m_gsd, ossimDpt::x, and ossimDpt::y.
Referenced by getTile(), and writeRaster().
|
overridevirtual |
Returns the image geometry object associated with this tile source or NULL if non defined.
The geometry contains full-to-local image transform as well as projection (image-to-world).
Reimplemented from ossimImageHandler.
Definition at line 155 of file ossimPointCloudImageHandler.cpp.
References ossimEpsgProjectionFactory::createProjection(), ossimPointCloudHandler::getBounds(), ossimImageHandler::getExternalImageGeometry(), ossimPointCloudSource::getNumPoints(), ossimDpt::hasNans(), ossimGrect::heightMeters(), ossimEpsgProjectionFactory::instance(), isOpen(), m_gsd, m_gsdFactor, m_pch, ossimDpt::makeNan(), setGSD(), ossimMapProjection::setOrigin(), ossimImageGeometry::setProjection(), ossimMapProjection::setUlTiePoints(), ossimImageHandler::theGeometry, ossimGrect::ul(), ossimRefPtr< T >::valid(), and ossimGrect::widthMeters().
Referenced by ossimPointCloudTool::loadPC(), open(), and setPointCloudHandler().
|
overridevirtual |
Gets tile height.
Satisfies ossimImageHandler::getImageTileHeight pure virtual.
Implements ossimImageHandler.
Definition at line 484 of file ossimPointCloudImageHandler.cpp.
References getTileHeight().
|
overridevirtual |
Gets tile width.
Satisfies ossimImageHandler::getImageTileWidth pure virtual.
Implements ossimImageHandler.
Definition at line 479 of file ossimPointCloudImageHandler.cpp.
References getTileWidth().
|
overridevirtual |
Reimplemented from ossimObject.
Definition at line 565 of file ossimPointCloudImageHandler.cpp.
|
overridevirtual |
Reimplemented from ossimImageHandler.
Definition at line 575 of file ossimPointCloudImageHandler.cpp.
References m_maxPixel.
Referenced by initTile().
|
overridevirtual |
Reimplemented from ossimImageHandler.
Definition at line 570 of file ossimPointCloudImageHandler.cpp.
References m_minPixel.
Referenced by initTile().
|
overridevirtual |
Reimplemented from ossimImageHandler.
Definition at line 580 of file ossimPointCloudImageHandler.cpp.
References OSSIM_DEFAULT_NULL_PIX_FLOAT.
Referenced by initTile().
|
overridevirtual |
Reimplemented from ossimImageHandler.
Definition at line 585 of file ossimPointCloudImageHandler.cpp.
References getNumberOfLines(), and getNumberOfSamples().
|
overridevirtual |
Gets bands.
Satisfies ossimImageSource::getNumberOfInputBands pure virtual. Number of bands.
Implements ossimImageSource.
Definition at line 436 of file ossimPointCloudImageHandler.cpp.
References HIGHEST, INTENSITY, LOWEST, m_activeComponent, m_pch, RETURNS, RGB, and ossimRefPtr< T >::valid().
Referenced by getTile().
|
overridevirtual |
Gets lines.
Satisfies ossimImageHandler::getNumberOfLines pure virtual.
resLevel | Reduced resolution level to return lines of. Default = 0 |
Implements ossimImageHandler.
Definition at line 453 of file ossimPointCloudImageHandler.cpp.
References ossimImageGeometry::getImageSize(), isOpen(), ossimIpt::line, ossimImageHandler::theGeometry, and ossimRefPtr< T >::valid().
Referenced by getNumberOfDecimationLevels().
|
overridevirtual |
Gets samples.
Satisfies ossimImageHandler::getNumberOfSamples
resLevel | Reduced resolution level to return samples of. Default = 0 |
Implements ossimImageHandler.
Definition at line 466 of file ossimPointCloudImageHandler.cpp.
References ossimImageGeometry::getImageSize(), isOpen(), ossimIpt::samp, ossimImageHandler::theGeometry, and ossimRefPtr< T >::valid().
Referenced by getNumberOfDecimationLevels().
|
overridevirtual |
Reimplemented from ossimImageSource.
Definition at line 503 of file ossimPointCloudImageHandler.cpp.
References OSSIM_FLOAT32.
Referenced by initTile().
|
overridevirtual |
Reimplemented from ossimImageHandler.
Definition at line 784 of file ossimPointCloudImageHandler.cpp.
References m_gsd, ossimKeywordNames::METERS_PER_PIXEL_KW, ossimString::toString(), and ossimDpt::x.
|
overridevirtual |
Reimplemented from ossimObject.
Definition at line 560 of file ossimPointCloudImageHandler.cpp.
|
overridevirtual |
Returns a pointer to a tile given an origin representing the upper left corner of the tile to grab from the image.
Satisfies pure virtual from TileSource class.
Reimplemented from ossimImageSource.
Definition at line 203 of file ossimPointCloudImageHandler.cpp.
References ossimRefPtr< T >::get(), ossimDataObject::getDataObjectStatus(), initTile(), m_tile, ossimImageData::makeBlank(), OSSIM_NULL, ossimImageData::setImageRectangle(), and ossimRefPtr< T >::valid().
Referenced by ossimPointCloudUtilityFilter::getTile().
|
overridevirtual |
Method to get a tile.
result | The tile to stuff. Note The requested rectangle in full image space and bands should be set in the result tile prior to passing. It will be an error if: result.getNumberOfBands() != this->getNumberOfOutputBands() |
Reimplemented from ossimImageSource.
Definition at line 220 of file ossimPointCloudImageHandler.cpp.
References addSample(), ossimIrect::area(), ossimPointBlock::clear(), componentToFieldCode(), ossimPointCloudHandler::DEFAULT_BLOCK_SIZE, ossimPointCloudHandler::getBlock(), ossimDataObject::getDataObjectStatus(), ossimImageData::getFloatBuf(), getGSD(), ossimImageData::getImageRectangle(), ossimPointCloudHandler::getNextFileBlock(), ossimImageData::getNumberOfBands(), getNumberOfInputBands(), ossimPointCloudSource::getNumPoints(), ossimRectilinearDataObject::getScalarType(), ossimDpt::hasNans(), ossimIrect::height(), ossimIrect::lr(), m_gsd, m_pch, ossimImageData::makeBlank(), normalize(), OSSIM_DEFAULT_NULL_PIX_FLOAT, OSSIM_FLOAT32, OSSIM_NULL, ossimNotify(), ossimNotifyLevel_FATAL, ossimGrect::pointWithin(), ossimPointCloudHandler::rewind(), ossimImageGeometry::rnToWorld(), ossimPointBlock::setFieldCode(), ossimImageData::setNullPix(), ossimPointBlock::size(), ossimImageHandler::theGeometry, ossimIrect::ul(), ossimRefPtr< T >::valid(), ossimImageData::validate(), ossimIrect::width(), ossimImageGeometry::worldToRn(), ossimIpt::x, ossimDpt::x, x, ossimIpt::y, ossimDpt::y, and y.
|
overridevirtual |
Reimplemented from ossimImageSource.
Definition at line 496 of file ossimPointCloudImageHandler.cpp.
References ossim::defaultTileSize(), and ossimIpt::y.
Referenced by getImageTileHeight(), and initTile().
|
overridevirtual |
Reimplemented from ossimImageSource.
Definition at line 489 of file ossimPointCloudImageHandler.cpp.
References ossim::defaultTileSize(), and ossimIpt::x.
Referenced by getImageTileWidth(), and initTile().
|
overridevirtual |
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.
The default implementation is to return the bounding rect.
Reimplemented from ossimImageSource.
Definition at line 703 of file ossimPointCloudImageHandler.cpp.
References ossimPointCloudHandler::getBounds(), ossimGrect::ll(), ossimGrect::lr(), m_pch, OSSIM_COUNTERCLOCKWISE_ORDER, ossimImageHandler::theGeometry, ossimGrect::ul(), ossimGrect::ur(), ossimRefPtr< T >::valid(), and ossimImageGeometry::worldToLocal().
|
protected |
Definition at line 600 of file ossimPointCloudImageHandler.cpp.
References getMaxPixelValue(), getMinPixelValue(), getNullPixelValue(), ossimImageSource::getNumberOfOutputBands(), getOutputScalarType(), getTileHeight(), getTileWidth(), ossimImageData::initialize(), m_tile, ossimImageData::setMaxPix(), ossimImageData::setMinPix(), and ossimImageData::setNullPix().
Referenced by getTile().
|
inlinevirtual |
is open method.
Satisfies ossimImageHandler::isOpen pure virtual.
Implements ossimImageHandler.
Definition at line 59 of file ossimPointCloudImageHandler.h.
Referenced by close(), getImageGeometry(), getNumberOfLines(), and getNumberOfSamples().
|
overridevirtual |
Method to the load (recreate) the state of an object from a keyword list.
Return true if ok or false on error.
Reimplemented from ossimImageHandler.
Definition at line 669 of file ossimPointCloudImageHandler.cpp.
References ossimImageHandler::theDecimationFactors.
|
protected |
Definition at line 412 of file ossimPointCloudImageHandler.cpp.
References HIGHEST, LOWEST, m_activeComponent, RETURNS, and RGB.
Referenced by getTile().
|
virtual |
open method.
Satisfies ossimImageHandler::open pure virtual.
Implements ossimImageHandler.
Definition at line 109 of file ossimPointCloudImageHandler.cpp.
References close(), ossimImageHandler::completeOpen(), getImageGeometry(), ossimPointCloudHandlerRegistry::instance(), m_activeComponent, m_pch, ossimPointCloudHandlerRegistry::open(), setCurrentEntry(), ossimImageHandler::theImageFile, and ossimRefPtr< T >::valid().
|
overridevirtual |
Method to save the state of an object to a keyword list.
Return true if ok or false on error.
Reimplemented from ossimImageHandler.
Definition at line 651 of file ossimPointCloudImageHandler.cpp.
References ossimKeywordlist::add(), ossimKeywordNames::ENTRY_KW, ossimErrorStatusInterface::getErrorStatus(), m_activeComponent, m_gsd, ossimKeywordNames::METERS_PER_PIXEL_KW, ossimErrorCodes::OSSIM_ERROR, ossimNotify(), ossimNotifyLevel_WARN, ossimImageHandler::saveState(), and ossimDpt::x.
|
overridevirtual |
entryIdx | Entry number to select. |
Reimplemented from ossimImageHandler.
Definition at line 527 of file ossimPointCloudImageHandler.cpp.
References ossimPointRecord::getField(), ossimPointCloudHandler::getMaxPoint(), ossimPointCloudHandler::getMinPoint(), ossimPointRecord::getPosition(), ossimGpt::hgt, HIGHEST, ossimPointRecord::Intensity, INTENSITY, LOWEST, m_activeComponent, m_maxPixel, m_minPixel, m_pch, NUM_COMPONENTS, ossimPointRecord::NumberOfReturns, ossimPointRecord::Red, RETURNS, RGB, and ossimRefPtr< T >::valid().
Referenced by ossimPointCloudUtilityFilter::getTile(), open(), setPointCloudHandler(), and writeRaster().
void ossimPointCloudImageHandler::setGSD | ( | const ossim_float64 & | gsd | ) |
Sets m_gsd data member and projection if projection is set.
Definition at line 624 of file ossimPointCloudImageHandler.cpp.
References ossimPointCloudHandler::getBounds(), ossimImageGeometry::getProjection(), ossim::isnan(), ossimGrect::lr(), m_gsd, m_gsdFactor, m_pch, ossimImageGeometry::setImageSize(), ossimMapProjection::setMetersPerPixel(), ossimImageHandler::theGeometry, ossimGrect::ul(), ossimRefPtr< T >::valid(), ossimImageGeometry::worldToLocal(), ossimIpt::x, ossimDpt::x, ossimIpt::y, and ossimDpt::y.
Referenced by getImageGeometry(), and setProperty().
bool ossimPointCloudImageHandler::setPointCloudHandler | ( | ossimPointCloudHandler * | pch | ) |
Permits backdoor for setting the input point cloud handler object.
Useful for debug
Definition at line 127 of file ossimPointCloudImageHandler.cpp.
References close(), ossimImageHandler::completeOpen(), getImageGeometry(), m_activeComponent, m_pch, setCurrentEntry(), and ossimRefPtr< T >::valid().
Referenced by ossimDemTool::doOMG(), ossimPointCloudTool::loadPC(), and writeRaster().
|
overridevirtual |
The reader properties are: – the GSD ("meters_per_pixel") which overrides computed nominal GSD – the GSD factor ("gsd_factor") scales the computed nominal GSD, defaults to 1.0.
– the active component as entry number ("entry") with possible values [0 - 4] corresponding to "component" property (listed below) – the active component ("component") as string with possible values "intensity", "highest", "lowest", "returns", or "rgb", respectively (case insensitive)
Reimplemented from ossimImageHandler.
Definition at line 735 of file ossimPointCloudImageHandler.cpp.
References ossimString::empty(), ossimProperty::getName(), ossim::isnan(), ossimKeywordNames::METERS_PER_PIXEL_KW, setGSD(), ossimString::toFloat64(), and ossimRefPtr< T >::valid().
Referenced by writeRaster().
|
protected |
Definition at line 251 of file ossimPointCloudImageHandler.h.
Referenced by addSample(), componentToFieldCode(), getCurrentEntry(), getNumberOfInputBands(), normalize(), open(), saveState(), setCurrentEntry(), and setPointCloudHandler().
|
protected |
Definition at line 252 of file ossimPointCloudImageHandler.h.
Referenced by getEntryList(), getEntryNames(), and ossimPointCloudImageHandler().
|
protected |
Definition at line 247 of file ossimPointCloudImageHandler.h.
Referenced by getGSD(), getImageGeometry(), getProperty(), getTile(), ossimPointCloudImageHandler(), saveState(), and setGSD().
|
protected |
Definition at line 248 of file ossimPointCloudImageHandler.h.
Referenced by getImageGeometry(), and setGSD().
|
protected |
Definition at line 245 of file ossimPointCloudImageHandler.h.
Referenced by getMaxPixelValue(), and setCurrentEntry().
|
protected |
Definition at line 246 of file ossimPointCloudImageHandler.h.
Referenced by getMinPixelValue(), and setCurrentEntry().
|
protected |
Definition at line 250 of file ossimPointCloudImageHandler.h.
|
protected |
Definition at line 244 of file ossimPointCloudImageHandler.h.
Referenced by close(), getImageGeometry(), getNumberOfInputBands(), getTile(), getValidImageVertices(), open(), setCurrentEntry(), setGSD(), and setPointCloudHandler().
|
protected |
Definition at line 249 of file ossimPointCloudImageHandler.h.
Referenced by close(), getTile(), and initTile().