Go to the documentation of this file.
   26 #ifndef __TERRALIB_RASTER_INTERNAL_SYNCHRONIZEDBANDBLOCKSMANAGER_H 
   27 #define __TERRALIB_RASTER_INTERNAL_SYNCHRONIZEDBANDBLOCKSMANAGER_H 
   32 #include "../raster/Raster.h" 
   67                          const unsigned char maxMemPercentUsed );
 
   80         bool initialize( 
const unsigned int maxNumberOfCacheBlocks, 
 
   90           return m_syncPtr ? true : 
false;
 
  116           return m_maxNumberOfCacheBlocks;
 
  141               : m_b( 0 ), m_y( 0 ), m_x( 0 )
 
  182 #endif  // __TERRALIB_RASTER_INTERNAL_SYNCHRONIZEDBANDBLOCKSMANAGER_H 
  
 
RasterSynchronizer * getSynchronizer() const
Return a pointer to the assotiated synchronizer instance or NULL if there is none.
 
SynchronizedBandBlocksManager(const SynchronizedBandBlocksManager &other)
 
std::vector< BlockIndex > m_blocksFifo
blocks swap FIFO.
 
unsigned int getMaxNumberOfCacheBlocks() const
The maximum number of cache blocks.
 
unsigned int m_globalBlocksNumberY
The maximum number of blocks (Y axis) for all bands.
 
An abstract class for raster data strucutures.
 
An access synchronizer to be used in SynchronizedRaster raster instances.
 
void * getBlockPointer(unsigned int band, unsigned int x, unsigned int y)
Returns a pointer to the required data block.
 
std::vector< std::vector< std::vector< unsigned char * > > > m_blocksPointers
3D Matrix of block pointers indexed as [band][blockYIndex][blockXIndex].
 
unsigned int m_y
Block index over the Y axis.
 
#define TERASTEREXPORT
You can use this macro in order to export/import classes and functions from this module.
 
RasterSynchronizer * m_syncPtr
A pointer to the synchronizer used by this instance, of null if not initialized.
 
unsigned int m_blocksFifoNextSwapBlockIndex
The next block swapp index over m_blocksFifo.
 
unsigned int m_b
Block band index.
 
bool initialize(const unsigned int maxNumberOfCacheBlocks, RasterSynchronizer &sync)
Initialize this instance to an initial state.
 
te::rst::Raster * getRaster() const
Returns the associated raster.
 
unsigned int m_globalBlocksNumberX
The maximum number of blocks (X axis) for all bands.
 
unsigned char * m_getBlockPointer_BlkPtr
 
SynchronizedBandBlocksManager()
 
bool isInitialized() const
Returns true if this instance is initialized.
 
unsigned int m_globalBlockSizeBytes
The maximum block size for all bands.
 
unsigned int m_maxNumberOfCacheBlocks
The maximum number of cache blocks.
 
bool initialize(RasterSynchronizer &sync, const unsigned char maxMemPercentUsed)
Initialize this instance to an initial state.
 
Synchronized raster raster band blocks manager.
 
std::vector< unsigned char * > m_blocksHandler
Cache blocks handler.
 
unsigned int m_x
Block index over the X axis.
 
~SynchronizedBandBlocksManager()
 
Proxy configuration file for TerraView (see terraview_config.h).
 
An access synchronizer to be used in SynchronizedRaster raster instances.
 
void initState()
Initialize this instance to an initial state.