26 #ifndef __TERRALIB_MEMORY_INTERNAL_CACHEDBAND_H
27 #define __TERRALIB_MEMORY_INTERNAL_CACHEDBAND_H
30 #include "../raster/Band.h"
31 #include "../raster/BlockUtils.h"
40 #include <boost/noncopyable.hpp>
69 return m_blocksManager.getRaster();
72 void getValue(
unsigned int c,
unsigned int r,
double& value)
const;
74 void setValue(
unsigned int c,
unsigned int r,
const double value);
76 void getIValue(
unsigned int c,
unsigned int r,
double& value)
const;
78 void setIValue(
unsigned int c,
unsigned int r,
const double value);
80 void read(
int x,
int y,
void* buffer)
const;
84 assert( m_blocksManager.isInitialized() );
85 return m_blocksManager.getBlockPointer( m_idx, x, y );
88 void write(
int x,
int y,
void* buffer);
119 #endif // __TERRALIB_MEMORY_INTERNAL_CACHEDBAND_H
#define TEMEMORYEXPORT
You can use this macro in order to export/import classes and functions from this module.
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...
static CachedBandBlocksManager dummyBlocksManager
A global static dummy blocks manager.
Configuration flags for the TerraLib In-memory Data Access driver.
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...
void(* SetBufferValueFPtr)(int index, void *buffer, const double *value)
The type of function used to extract data from a buffer.
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 blocks manager.
void(* GetBufferValueFPtr)(int index, void *buffer, double *value)
The type of function used to extract data from a buffer.
te::rst::Raster * getRaster() const
Returns the associated raster.
An abstract class for raster data strucutures.
RAM cached and tiled raster band.
A raster band description.
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...
CachedBandBlocksManager & m_blocksManager
The external blocks manager reference.
unsigned int m_blkHeight
The current band blocks height.
void * read(int x, int y)
It reads and returns a data block.
unsigned int m_setGetBlkY
RAM cached and tiled raster band blocks manager.
unsigned int m_setGetBlkX