27 #include "../raster/BandProperty.h" 28 #include "../raster/Utils.h" 40 m_blocksManager( blocksManager ),
41 m_parentRasterPtr( &parentRaster ),
42 m_blkWidth( (unsigned
int)bandProperty.m_blkw ),
43 m_blkHeight( (unsigned
int)bandProperty.m_blkh ),
44 m_blkSizeBytes( (unsigned
int)( bandProperty.m_blkw * bandProperty.m_blkh *
unsigned int m_blkHeight
Block width in pixels (for pixel access optimization purposes).
void setIValue(unsigned int c, unsigned int r, const double value)
Sets the imaginary attribute value in a complex band of a cell.
te::rst::SetBufferValueFPtr m_setBuff
A pointer to a function that helps to insert a double or complex value into a specific buffer data ty...
A raster band description.
void * getBlockPointer(unsigned int band, unsigned int x, unsigned int y)
Returns a pointer to the required data block.
int m_type
The data type of the elements in the band ( See te::dt namespace basic data types for reference )...
void write(int x, int y, void *buffer)
It writes a data block from the specified buffer.
void getValue(unsigned int c, unsigned int r, double &value) const
Returns the cell attribute value.
An abstract class for raster data strucutures.
te::rst::GetBufferValueFPtr m_getBuff
A pointer to a function that helps to extract a double or complex value from a specific buffer data t...
RAM cached and tiled raster band blocks manager.
ExpansibleBandBlocksManager & m_blocksManager
The external blocks manager reference.
void getIValue(unsigned int c, unsigned int r, double &value) const
Returns the imaginary attribute value in a complex band of a cell.
void read(int x, int y, void *buffer) const
It reads a data block to the specified buffer.
bool isInitialized() const
Returns true if this instance is initialized.
TERASTEREXPORT int GetPixelSize(int datatype)
Returns the byte size of a given datatype.
unsigned int m_blkWidth
Block width in pixels(for pixel access optimization purposes).
unsigned int m_setGetBlkY
Band implementation for the In-Memory Raster.
unsigned int m_blkSizeBytes
Blosk size bytes (for pixel access optimization purposes).
void setValue(unsigned int c, unsigned int r, const double value)
Sets the cell attribute value.
unsigned int m_setGetBlkX
te::rst::SetBufferValueFPtr m_setBuffI
A pointer to a function that helps to insert the imaginary part value into a specific buffer data typ...
std::size_t m_idx
The band index.
static ExpansibleBandBlocksManager dummyBlocksManager
A global static dummy blocks manager.
TERASTEREXPORT void SetBlockFunctions(GetBufferValueFPtr *gb, GetBufferValueFPtr *gbi, SetBufferValueFPtr *sb, SetBufferValueFPtr *sbi, int type)
Sets the pointers to functions that helps to extract a double or complex value from a specific buffer...
te::rst::GetBufferValueFPtr m_getBuffI
A pointer to a function that helps to extract the imaginary part value from a specific buffer data ty...
BandProperty * m_property
The band information.