#include <RasterDataDescriptor.h>

Public Member Functions | |
| virtual void | setDataType (EncodingType dataType)=0 |
| virtual EncodingType | getDataType () const =0 |
| virtual void | setValidDataTypes (const std::vector< EncodingType > &validDataTypes)=0 |
| virtual const std::vector < EncodingType > & | getValidDataTypes () const =0 |
| virtual unsigned int | getBytesPerElement () const =0 |
| virtual void | setBadValues (const std::vector< int > &badValues)=0 |
| virtual const std::vector< int > & | getBadValues () const =0 |
| virtual void | setInterleaveFormat (InterleaveFormatType format)=0 |
| virtual InterleaveFormatType | getInterleaveFormat () const =0 |
| virtual void | setRows (const std::vector< DimensionDescriptor > &rows)=0 |
| virtual const std::vector < DimensionDescriptor > & | getRows () const =0 |
| virtual unsigned int | getRowSkipFactor () const =0 |
| virtual DimensionDescriptor | getOriginalRow (unsigned int originalNumber) const =0 |
| virtual DimensionDescriptor | getOnDiskRow (unsigned int onDiskNumber) const =0 |
| virtual DimensionDescriptor | getActiveRow (unsigned int activeNumber) const =0 |
| virtual unsigned int | getRowCount () const =0 |
| virtual void | setColumns (const std::vector< DimensionDescriptor > &columns)=0 |
| virtual const std::vector < DimensionDescriptor > & | getColumns () const =0 |
| virtual unsigned int | getColumnSkipFactor () const =0 |
| virtual DimensionDescriptor | getOriginalColumn (unsigned int originalNumber) const =0 |
| virtual DimensionDescriptor | getOnDiskColumn (unsigned int onDiskNumber) const =0 |
| virtual DimensionDescriptor | getActiveColumn (unsigned int activeNumber) const =0 |
| virtual unsigned int | getColumnCount () const =0 |
| virtual void | setBands (const std::vector< DimensionDescriptor > &bands)=0 |
| virtual const std::vector < DimensionDescriptor > & | getBands () const =0 |
| virtual DimensionDescriptor | getOriginalBand (unsigned int originalNumber) const =0 |
| virtual DimensionDescriptor | getOnDiskBand (unsigned int onDiskNumber) const =0 |
| virtual DimensionDescriptor | getActiveBand (unsigned int activeNumber) const =0 |
| virtual unsigned int | getBandCount () const =0 |
| virtual void | setXPixelSize (double pixelSize)=0 |
| virtual double | getXPixelSize () const =0 |
| virtual void | setYPixelSize (double pixelSize)=0 |
| virtual double | getYPixelSize () const =0 |
| virtual void | setUnits (const Units *pUnits)=0 |
| virtual Units * | getUnits ()=0 |
| virtual const Units * | getUnits () const =0 |
| virtual void | setDisplayBand (RasterChannelType eColor, DimensionDescriptor band)=0 |
| virtual DimensionDescriptor | getDisplayBand (RasterChannelType eColor) const =0 |
| virtual void | setDisplayMode (DisplayMode displayMode)=0 |
| virtual DisplayMode | getDisplayMode () const =0 |
Static Public Member Functions | |
| static const std::string & | signalDataTypeChanged () |
| static const std::string & | signalValidDataTypesChanged () |
| static const std::string & | signalBadValuesChanged () |
| static const std::string & | signalInterleaveFormatChanged () |
| static const std::string & | signalRowsChanged () |
| static const std::string & | signalColumnsChanged () |
| static const std::string & | signalBandsChanged () |
| static const std::string & | signalPixelSizeChanged () |
| static const std::string & | signalDisplayBandChanged () |
| static const std::string & | signalDisplayModeChanged () |
Protected Member Functions | |
| virtual | ~RasterDataDescriptor () |
In addition to the anscillary information stored in the DataDescriptor base class, this class contains information pertinent to raster data elements.
This subclass of Subject will notify upon the following conditions:
SampleRasterElementImporter.cpp, Tutorial/Tutorial3.cpp, Tutorial/Tutorial4.cpp, and Tutorial/Tutorial5.cpp.
Definition at line 36 of file RasterDataDescriptor.h.
| virtual RasterDataDescriptor::~RasterDataDescriptor | ( | ) | [protected, virtual] |
This should be destroyed by calling ModelServices::destroyDataDescriptor.
Definition at line 670 of file RasterDataDescriptor.h.
| static const std::string& RasterDataDescriptor::signalDataTypeChanged | ( | ) | [static] |
Emitted when the data type changes with boost::any<EncodingType> containing the new data type.
Definition at line 46 of file RasterDataDescriptor.h.
| static const std::string& RasterDataDescriptor::signalValidDataTypesChanged | ( | ) | [static] |
Emitted when the vector of valid data types changes with boost::any<std::vector<EncodingType> > containing the new valid data types.
Definition at line 55 of file RasterDataDescriptor.h.
| static const std::string& RasterDataDescriptor::signalBadValuesChanged | ( | ) | [static] |
Emitted when the vector of bad values changes with boost::any<std::vector<int> > containing the new bad values.
Definition at line 63 of file RasterDataDescriptor.h.
| static const std::string& RasterDataDescriptor::signalInterleaveFormatChanged | ( | ) | [static] |
Emitted when the interleave format changes with boost::any<InterleaveFormatType> containing the new interleave format.
Definition at line 72 of file RasterDataDescriptor.h.
| static const std::string& RasterDataDescriptor::signalRowsChanged | ( | ) | [static] |
Emitted when the rows change with boost::any<std::vector<DimensionDescriptor> > containing the new rows.
Definition at line 81 of file RasterDataDescriptor.h.
| static const std::string& RasterDataDescriptor::signalColumnsChanged | ( | ) | [static] |
Emitted when the columns change with boost::any<std::vector<DimensionDescriptor> > containing the new columns.
Definition at line 90 of file RasterDataDescriptor.h.
| static const std::string& RasterDataDescriptor::signalBandsChanged | ( | ) | [static] |
Emitted when the bands change with boost::any<std::vector<DimensionDescriptor> > containing the new bands.
Definition at line 99 of file RasterDataDescriptor.h.
| static const std::string& RasterDataDescriptor::signalPixelSizeChanged | ( | ) | [static] |
Emitted when the X or Y pixel size changes.
No value is associated with this signal.
Definition at line 108 of file RasterDataDescriptor.h.
| static const std::string& RasterDataDescriptor::signalDisplayBandChanged | ( | ) | [static] |
Emitted when the band to display changes for any raster channel.
No value is associated with this signal.
Definition at line 117 of file RasterDataDescriptor.h.
| static const std::string& RasterDataDescriptor::signalDisplayModeChanged | ( | ) | [static] |
Emitted when the initial display mode changes with boost::any<DisplayMode> containing the new display mode.
Definition at line 126 of file RasterDataDescriptor.h.
| virtual void RasterDataDescriptor::setDataType | ( | EncodingType | dataType | ) | [pure virtual] |
Sets the data type of the values in the data set.
| dataType | The data type of the values in the data set. |
| virtual EncodingType RasterDataDescriptor::getDataType | ( | ) | const [pure virtual] |
Returns the data type of the values in the data set.
| virtual void RasterDataDescriptor::setValidDataTypes | ( | const std::vector< EncodingType > & | validDataTypes | ) | [pure virtual] |
Sets the valid data types for the data set.
The current data type may or may not be valid. By default, all Encoding Types are valid.
| validDataTypes | The valid data types for the data set. |
| virtual const std::vector<EncodingType>& RasterDataDescriptor::getValidDataTypes | ( | ) | const [pure virtual] |
Returns the valid data types for the data set.
The current data type may or may not be valid. By default, all Encoding Types are valid.
| virtual unsigned int RasterDataDescriptor::getBytesPerElement | ( | ) | const [pure virtual] |
Returns the number of bytes used for each pixel element value.
This is a convenience method that returns the number of bytes used for each pixel element as determined by the data type.
| virtual void RasterDataDescriptor::setBadValues | ( | const std::vector< int > & | badValues | ) | [pure virtual] |
Sets bad values that should be ignored in the data statistics.
This method is intended to be used when creating a data descriptor that will be used to create a RasterElement. When the RasterElement is created, the bad values that were set in the data descriptor by calling this method will be set into the Statistics objects in the raster element. After the raster element is created, the bad values should be changed by calling Statistics::setBadValues() instead of this method.
| badValues | The bad values that should be ignored. |
| virtual const std::vector<int>& RasterDataDescriptor::getBadValues | ( | ) | const [pure virtual] |
Returns the bad values that should be ignored in the data statistics.
| virtual void RasterDataDescriptor::setInterleaveFormat | ( | InterleaveFormatType | format | ) | [pure virtual] |
Sets the interleave format of the data values.
| format | The interleave format in which the values in the data set are stored. |
| virtual InterleaveFormatType RasterDataDescriptor::getInterleaveFormat | ( | ) | const [pure virtual] |
Returns the interleave format of the data values.
| virtual void RasterDataDescriptor::setRows | ( | const std::vector< DimensionDescriptor > & | rows | ) | [pure virtual] |
Sets the rows for the data element that are available for processing.
This method sets the rows of the data element that are available for processing. It is typically called in the following scenarios:
These rows differ from the rows in a corresponding RasterFileDescriptor in that they contain only those row objects that have been imported.
| rows | A vector of DimensionDescriptors containing one instance for each row of the data set that is available for processing. |
| virtual const std::vector<DimensionDescriptor>& RasterDataDescriptor::getRows | ( | ) | const [pure virtual] |
Returns the rows for the data element that are available for processing.
| virtual unsigned int RasterDataDescriptor::getRowSkipFactor | ( | ) | const [pure virtual] |
Returns the uniform skip factor between the on-disk numbers of DimensionDescriptors returned by getRows().
This is a convenience method.
| virtual DimensionDescriptor RasterDataDescriptor::getOriginalRow | ( | unsigned int | originalNumber | ) | const [pure virtual] |
Returns the row object containing a given original number.
| originalNumber | The zero-based original number for which to get the row object. |
| virtual DimensionDescriptor RasterDataDescriptor::getOnDiskRow | ( | unsigned int | onDiskNumber | ) | const [pure virtual] |
Returns the row object containing a given on-disk number.
| onDiskNumber | The zero-based on-disk number for which to get the row object. |
| virtual DimensionDescriptor RasterDataDescriptor::getActiveRow | ( | unsigned int | activeNumber | ) | const [pure virtual] |
Returns the row object containing a given active number.
| activeNumber | The zero-based active number for which to get the row object. |
| virtual unsigned int RasterDataDescriptor::getRowCount | ( | ) | const [pure virtual] |
Returns the number of rows available for processing.
This is a convenience method that returns getRows().size().
| virtual void RasterDataDescriptor::setColumns | ( | const std::vector< DimensionDescriptor > & | columns | ) | [pure virtual] |
Sets the columns for the data element that are available for processing.
This method sets the columns of the data element that are available for processing. It is typically called in the following scenarios:
These columns differ from the columns in a corresponding RasterFileDescriptor in that they contain only those column objects that have been imported.
| columns | A vector of DimensionDescriptors containing one instance for each column of the data set that is available for processing. |
| virtual const std::vector<DimensionDescriptor>& RasterDataDescriptor::getColumns | ( | ) | const [pure virtual] |
Returns the columns for the data element that are available for processing.
| virtual unsigned int RasterDataDescriptor::getColumnSkipFactor | ( | ) | const [pure virtual] |
Returns the uniform skip factor between the on-disk numbers of DimensionDescriptors returned by getColumns().
This is a convenience method.
| virtual DimensionDescriptor RasterDataDescriptor::getOriginalColumn | ( | unsigned int | originalNumber | ) | const [pure virtual] |
Returns the column object containing a given original number.
| originalNumber | The zero-based original number for which to get the column object. |
| virtual DimensionDescriptor RasterDataDescriptor::getOnDiskColumn | ( | unsigned int | onDiskNumber | ) | const [pure virtual] |
Returns the column object containing a given on-disk number.
| onDiskNumber | The zero-based on-disk number for which to get the column object. |
| virtual DimensionDescriptor RasterDataDescriptor::getActiveColumn | ( | unsigned int | activeNumber | ) | const [pure virtual] |
Returns the column object containing a given active number.
| activeNumber | The zero-based active number for which to get the column object. |
| virtual unsigned int RasterDataDescriptor::getColumnCount | ( | ) | const [pure virtual] |
Returns the number of columns available for processing.
This is a convenience method that returns getColumns().size().
| virtual void RasterDataDescriptor::setBands | ( | const std::vector< DimensionDescriptor > & | bands | ) | [pure virtual] |
Sets the bands for the data element that are available for processing.
This method sets the bands of the data element that are available for processing. It is typically called in the following scenarios:
These bands differ from the bands in a corresponding RasterFileDescriptor in that they contain only those band objects that have been imported.
| bands | A vector of DimensionDescriptors containing one instance for each band of the data set that is available for processing. |
| virtual const std::vector<DimensionDescriptor>& RasterDataDescriptor::getBands | ( | ) | const [pure virtual] |
Returns the bands for the data element that are available for processing.
| virtual DimensionDescriptor RasterDataDescriptor::getOriginalBand | ( | unsigned int | originalNumber | ) | const [pure virtual] |
Returns the band object containing a given original number.
| originalNumber | The zero-based original number for which to get the band object. |
| virtual DimensionDescriptor RasterDataDescriptor::getOnDiskBand | ( | unsigned int | onDiskNumber | ) | const [pure virtual] |
Returns the band object containing a given on-disk number.
| onDiskNumber | The zero-based on-disk number for which to get the band object. |
| virtual DimensionDescriptor RasterDataDescriptor::getActiveBand | ( | unsigned int | activeNumber | ) | const [pure virtual] |
Returns the band object containing a given active number.
| activeNumber | The zero-based active number for which to get the band object. |
| virtual unsigned int RasterDataDescriptor::getBandCount | ( | ) | const [pure virtual] |
Returns the number of bands available for processing.
This is a convenience method that returns getBands().size().
| virtual void RasterDataDescriptor::setXPixelSize | ( | double | pixelSize | ) | [pure virtual] |
Sets the pixel size of each column in the data set.
By default, each row and column has a pixel size of 1.0, thereby producing a size ratio of 1.0, which indicates that the pixel appears as a square in the view. Calling this method with a value other than 1.0 allows for non-square pixels, which may represent the true nature of the data.
This method serves as a default for the view that can be associated with a model element. Once a view is created, call the Layer::setXScaleFactor() and Layer::setXOffset() method to change the display pixel size.
| pixelSize | The pixel size for each column in the data set. If this value is negative or zero, this method does nothing. |
| virtual double RasterDataDescriptor::getXPixelSize | ( | ) | const [pure virtual] |
Returns the pixel size of each column in the data set.
| virtual void RasterDataDescriptor::setYPixelSize | ( | double | pixelSize | ) | [pure virtual] |
Sets the pixel size of each row in the data set.
By default, each row and column has a pixel size of 1.0, thereby producing a size ratio of 1.0, which indicates that the pixel appears as a square in the view. Calling this method with a value other than 1.0 allows for non-square pixels, which may represent the true nature of the data.
This method serves as a default for the view that can be associated with a model element. Once a view is created, call the Layer::setYScaleFactor() and Layer::setYOffset() method to change the display pixel size.
| pixelSize | The pixel size for each row in the data set. If this value is negative or zero, this method does nothing. |
| virtual double RasterDataDescriptor::getYPixelSize | ( | ) | const [pure virtual] |
Returns the pixel size of each row in the data set.
| virtual void RasterDataDescriptor::setUnits | ( | const Units * | pUnits | ) | [pure virtual] |
Sets the units the values in the data set.
| pUnits | The units of the values in the data set. |
| virtual Units* RasterDataDescriptor::getUnits | ( | ) | [pure virtual] |
Returns a pointer to the element's units object.
| virtual const Units* RasterDataDescriptor::getUnits | ( | ) | const [pure virtual] |
Returns read-only access to the element's units object.
| virtual void RasterDataDescriptor::setDisplayBand | ( | RasterChannelType | eColor, | |
| DimensionDescriptor | band | |||
| ) | [pure virtual] |
Sets the band that is initially displayed in a RasterLayer.
This method sets a band to be initially displayed when a raster layer is created.
| eColor | The color in which to display the given band. | |
| band | The band object to display in the given color. |
| virtual DimensionDescriptor RasterDataDescriptor::getDisplayBand | ( | RasterChannelType | eColor | ) | const [pure virtual] |
Returns the band object that is initially displayed in a RasterLayer.
| eColor | The color in which to get the initially displayed band. |
| virtual void RasterDataDescriptor::setDisplayMode | ( | DisplayMode | displayMode | ) | [pure virtual] |
Sets the initial display mode for the data in a RasterLayer.
| displayMode | The initial display mode. |
| virtual DisplayMode RasterDataDescriptor::getDisplayMode | ( | ) | const [pure virtual] |