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 ]);
105 unsigned char* m_allBandsDataPtr;
129 #endif //__TERRALIB_IDL_INTERNAL_CACHEDRASTER_H
A adaptor to an external existent raster in a idl array form.
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 m_takeBufferOwnership
If true, the data buffer will be deleted when necessary.
std::vector< te::idl::IdlBand * > m_bands
Internal raster bands.
#define TEIDLEXPORT
You can use this macro in order to export/import classes and functions from this module.
Configuration flags for the IDL module of TerraLib.
AccessPolicy
Supported data access policies (can be used as bitfield).
An abstract class for raster data strucutures.
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.
A adaptor to an external existent raster in a idl array form.
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.