26 #ifndef __TERRALIB_MEMORY_INTERNAL_BAND_H
27 #define __TERRALIB_MEMORY_INTERNAL_BAND_H
30 #include "../raster/Band.h"
31 #include "../raster/BlockUtils.h"
63 void getValue(
unsigned int c,
unsigned int r,
double& value)
const;
65 void setValue(
unsigned int c,
unsigned int r,
const double value);
67 void getIValue(
unsigned int c,
unsigned int r,
double& value)
const;
69 void setIValue(
unsigned int c,
unsigned int r,
const double value);
71 void read(
int x,
int y,
void* buffer)
const;
75 void write(
int x,
int y,
void* buffer);
Band implementation for the In-Memory Raster.
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 * read(int x, int y)
It reads and returns a data block.
int getBlockSize() const
It returns the number of bytes ocuppied by a data block.
te::rst::Raster * getRaster() const
Returns the associated raster.
void setIValue(unsigned int c, unsigned int r, const double value)
Sets the imaginary attribute value in a complex band of a cell.
void write(int x, int y, void *buffer)
It writes a data block from the specified buffer.
int m_ncols
Buffered number of cols.
void setValue(unsigned int c, unsigned int r, const double value)
Sets the cell attribute value.
void getIValue(unsigned int c, unsigned int r, double &value) const
Returns the imaginary attribute value in a complex band of a cell.
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_getBuffI
A pointer to a function that helps to extract the imaginary part value from a specific buffer data ty...
Band(Raster *r, te::rst::BandProperty *p, std::size_t idx, void *externalBuffer=0)
int m_blksize
The data block size.
bool m_releaseBuffer
A flag that indicates if the buffer must be released when the band goes out of scope.
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...
int m_nrows
Buffered number of rows.
void read(int x, int y, void *buffer) const
It reads a data block to the specified buffer.
void setRaster(Raster *r)
Band & operator=(const Band &rhs)
void getValue(unsigned int c, unsigned int r, double &value) const
Returns the cell attribute value.
unsigned char * m_buff
A pointer to a block buffer.
~Band()
Virtual destructor.
A raster class for memory.
A raster band description.
A raster band description.
An abstract class for raster data strucutures.
void(* SetBufferValueFPtr)(int index, void *buffer, const double *value)
The type of function used to extract data from a buffer.
void(* GetBufferValueFPtr)(int index, void *buffer, double *value)
The type of function used to extract data from a buffer.
#define TEMEMORYEXPORT
You can use this macro in order to export/import classes and functions from this module.
Proxy configuration file for TerraView (see terraview_config.h).