27 #include "../raster/BandProperty.h" 39 m_blocksManager( blocksManager )
unsigned int m_setGetBlkY
An adapter class to allow concurrent access to raster data by multiple threads.
A raster band description.
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_getBuff
A pointer to a function that helps to extract a double or complex value from a specific buffer data t...
te::rst::SetBufferValueFPtr m_setBuffI
A pointer to a function that helps to insert the imaginary part value into a specific buffer data typ...
te::rst::GetBufferValueFPtr m_getBuffI
A pointer to a function that helps to extract the imaginary part value from a specific buffer data ty...
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.
boost::mutex m_mutex
General sync mutex;.
void write(int x, int y, void *buffer)
It writes a data block from the specified buffer.
Syncrhonized raster band.
unsigned int m_blkWidth
The current band blocks width.
void getValue(unsigned int c, unsigned int r, double &value) const
Returns the cell attribute value.
static SynchronizedBandBlocksManager dummyBlocksManager
A global static dummy blocks manager.
void setValue(unsigned int c, unsigned int r, const double value)
Sets the cell attribute value.
BandProperty * getProperty()
Returns the band property.
int m_blkw
Block width (pixels).
te::rst::Raster * getRaster() const
Returns the associated raster.
A raster band description.
Synchronized raster raster band blocks manager.
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);.
SynchronizedRaster * m_syncRasterPtr
The synchronized raster instance (parent raster).
RasterSynchronizer * getSynchronizer() const
Return a pointer to the assotiated synchronizer instance or NULL if there is none.
void setIValue(unsigned int c, unsigned int r, const double value)
Sets the imaginary attribute value in a complex band of a cell.
unsigned int m_setGetBlkX
std::size_t m_idx
The band index.
int getType() const
It returns the data type of the elements in the band.
int m_blkh
Block height (pixels).
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.
void * getBlockPointer(unsigned int band, unsigned int x, unsigned int y)
Returns a pointer to the required 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...
SynchronizedBandBlocksManager & m_blocksManager
The external blocks manager.
BandProperty * m_property
The band information.