31 #include "../core/translator/Translator.h" 73 const unsigned int blockXIndex,
const unsigned int blockYIndex,
126 const unsigned int blockXIndex,
const unsigned int blockYIndex,
An exception class for the Raster module.
It gives access to values in one band (dimension) of a raster.
It describes one band (or dimension) of a raster.
Base exception class for plugin module.
bool acquireBlock(const unsigned int bandIdx, const unsigned int blockXIndex, const unsigned int blockYIndex, void *blkDataPtr)
Acquire a raster data block.
int m_nblocksx
The number of blocks in x.
int m_nblocksy
The number of blocks in y.
#define TE_TR(message)
It marks a string in order to get translated.
boost::mutex m_mutex
General sync mutex;.
boost::condition_variable_any m_condVar
Block use request sync variable.
te::common::AccessPolicy getAccessPolicy() const
Returns the raster access policy.
AccessPolicy
Supported data access policies (can be used as bitfield).
Raster & m_raster
The input raster.
RasterSynchronizer(Raster &raster, const te::common::AccessPolicy policy)
Constructor.
An abstract class for raster data strucutures.
virtual std::size_t getNumberOfBands() const =0
Returns the number of bands (dimension of cells attribute values) in the raster.
BandProperty * getProperty()
Returns the band property.
An access synchronizer to be used in SynchronizedRaster raster instances.
virtual void write(int x, int y, void *buffer)=0
It writes a data block from the specified buffer.
virtual const Band * getBand(std::size_t i) const =0
Returns the raster i-th band.
virtual void read(int x, int y, void *buffer) const =0
It reads a data block to the specified buffer.
te::common::AccessPolicy m_policy
The access policy used on the given input raster.
BlocksUseCounterT m_blocksUseCounters
blocks use counter.
bool releaseBlock(const unsigned int bandIdx, const unsigned int blockXIndex, const unsigned int blockYIndex, void *blkDataPtr)
Release a raster data block.