27 #include "../raster/BandProperty.h" 38 *(blocksManager.getRaster()->getBand( idx )->getProperty()) ), idx ),
39 m_blocksManager( blocksManager )
void * getBlockPointer(unsigned int band, unsigned int x, unsigned int y)
Returns a pointer to the required data block.
void write(int x, int y, void *buffer)
It writes a data block from the specified buffer.
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...
te::rst::Raster * getRaster() const
Returns the associated raster.
unsigned int m_blkWidth
The current band blocks width.
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...
te::rst::GetBufferValueFPtr m_getBuffI
A pointer to a function that helps to extract the imaginary part value from a specific buffer data ty...
RAM cached and tiled raster band.
BandProperty * getProperty()
Returns the band property.
int m_blkw
Block width (pixels).
virtual const Band * getBand(std::size_t i) const =0
Returns the raster i-th band.
bool isInitialized() const
Returns true if this instance is initialized.
unsigned int m_blkSizeBytes
The blocks size (bytes);.
te::rst::SetBufferValueFPtr m_setBuffI
A pointer to a function that helps to insert the imaginary part value into a specific buffer data typ...
void setValue(unsigned int c, unsigned int r, const double value)
Sets the cell attribute value.
Band implementation for the In-Memory Raster.
CachedBandBlocksManager & m_blocksManager
The external blocks manager reference.
void setIValue(unsigned int c, unsigned int r, const double value)
Sets the imaginary attribute value in a complex band of a cell.
std::size_t m_idx
The band index.
static CachedBandBlocksManager dummyBlocksManager
A global static dummy blocks manager.
unsigned int m_blkHeight
The current band blocks height.
void read(int x, int y, void *buffer) const
It reads a data block to the specified buffer.
void getValue(unsigned int c, unsigned int r, double &value) const
Returns the cell attribute value.
int getType() const
It returns the data type of the elements in the band.
unsigned int m_setGetBlkY
int m_blkh
Block height (pixels).
RAM cached and tiled raster band blocks manager.
void getIValue(unsigned int c, unsigned int r, double &value) const
Returns the imaginary attribute value in a complex band of a cell.
virtual int getBlockSize() const
It returns the number of bytes ocuppied by a data block.
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...
unsigned int m_setGetBlkX