27 #include "../core/translator/Translator.h" 28 #include "../raster/BandProperty.h" 140 throw Exception(
TE_TR(
"You can not assign a band to another one with different block size or tile dimesinsions"));
A raster class for memory.
A raster band description.
Base exception class for plugin module.
A tiled band implementation for the In-Memory Raster.
unsigned int getNumberOfColumns() const
Returns the raster number of columns.
int m_nblocksx
The number of blocks in x.
virtual Band & operator=(const Band &rhs)
Assignment operator.
void setRaster(Raster *r)
int m_nblocksy
The number of blocks in y.
An exception class for the TerraLib In-Memory Data Access driver.
te::rst::Raster * getRaster() const
Returns the associated raster.
TiledBand(Raster *r, te::rst::BandProperty *p, std::size_t idx)
te::rst::GetBufferValueFPtr m_getBuffI
A pointer to a function that helps to extract the imaginary part value from a specific buffer data ty...
void setIValue(unsigned int c, unsigned int r, const double value)
Sets the imaginary attribute value in a complex band of a cell.
#define TE_TR(message)
It marks a string in order to get translated.
unsigned char *** m_buff
A internal block buffer.
int m_ncols
Buffered number of cols.
void write(int x, int y, void *buffer)
It writes a data block from the specified buffer.
A raster class for memory.
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...
An abstract class for raster data strucutures.
unsigned int getNumberOfRows() const
Returns the raster number of rows.
int m_blkw
Block width (pixels).
int m_nrows
Buffered number of rows.
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 getValue(unsigned int c, unsigned int r, double &value) const
Returns the cell attribute value.
Band implementation for the In-Memory Raster.
void setValue(unsigned int c, unsigned int r, const double value)
Sets the cell attribute value.
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...
int getType() const
It returns the data type of the elements in the band.
void read(int x, int y, void *buffer) const
It reads a data block to the specified buffer.
int m_blkh
Block height (pixels).
TiledBand & operator=(const TiledBand &rhs)
int m_blksize
The data block size.
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...
BandProperty * m_property
The band information.
void getIValue(unsigned int c, unsigned int r, double &value) const
Returns the imaginary attribute value in a complex band of a cell.