26 #ifndef __TERRALIB_IDL_INTERNAL_CACHEDRASTER_H 27 #define __TERRALIB_IDL_INTERNAL_CACHEDRASTER_H 32 #include "../raster/Raster.h" 34 #include <idl_export.h> 61 IdlRaster(
const IDL_VPTR& idlValuePointer,
const bool takeBufferOwnership );
67 std::map<std::string, std::string> getInfo()
const;
71 return m_bands.size();
81 assert( i < m_bands.size() );
87 assert( i < m_bands.size() );
93 assert( i < m_bands.size() );
94 return *(m_bands[ i ]);
99 assert( i < m_bands.size() );
100 return *(m_bands[ i ]);
146 #endif //__TERRALIB_IDL_INTERNAL_CACHEDRASTER_H
const te::rst::Band & operator[](std::size_t i) const
Access band in i position.
const te::rst::Band * getBand(std::size_t i) const
Returns the raster i-th band.
std::size_t getNumberOfBands() const
Returns the number of bands (dimension of cells attribute values) in the raster.
int m_dataType
Data type used by all bands.
bool createMultiResolution(const unsigned int levels, const te::rst::InterpolationMethod interpMethod)
Create a sub-sampled multi-resolution pyramid.
bool m_takeBufferOwnership
If true, the data buffer will be deleted when necessary.
InterpolationMethod
Allowed interpolation methods.
unsigned int getMultiResLevelsCount() const
Returns the current number of multi-resolution pyramid levels.
std::vector< te::idl::IdlBand * > m_bands
Internal raster bands.
AccessPolicy
Supported data access policies (can be used as bitfield).
An abstract class for raster data strucutures.
#define TEIDLEXPORT
You can use this macro in order to export/import classes and functions from this module.
unsigned char * m_allBandsDataPtr
Data buffer pointer.
A base class for values that can be retrieved from the data access module.
A raster band description.
te::rst::Band & operator[](std::size_t i)
Access band in i position.
te::rst::Raster * getMultiResLevel(const unsigned int level) const
Returns the required level of a multi-resolution pyramid or NULL if that level does not exists...
A adaptor to an external existent raster in a idl array form.
bool removeMultiResolution()
Remove/Destroy a sub-sampled multi-resolution pyramid, if there is one.
A rectified grid is the spatial support for raster data.
int getBandDataType(std::size_t i) const
Returns the data type in a particular band (or dimension).
te::rst::Band * getBand(std::size_t i)
Returns the raster i-th band.