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