26 #ifndef __TERRALIB_GDAL_INTERNAL_BAND_H 27 #define __TERRALIB_GDAL_INTERNAL_BAND_H 30 #include "../raster/Band.h" 31 #include "../raster/BandProperty.h" 32 #include "../raster/BlockUtils.h" 33 #include "../raster/Raster.h" 77 Band(
Raster* rstPtr, std::size_t idx, GDALRasterBand* gdalRasterBandPtr );
87 void getValue(
unsigned int c,
unsigned int r,
double& value)
const;
89 void setValue(
unsigned int c,
unsigned int r,
const double value);
91 void getIValue(
unsigned int c,
unsigned int r,
double& value)
const;
93 void setIValue(
unsigned int c,
unsigned int r,
const double value);
99 void read(
int x,
int y,
void* buffer)
const;
101 void* read(
int ,
int );
103 void write(
int x,
int y,
void* buffer);
105 void getValueFromBlock(
void* block,
unsigned int pos, std::complex<double>& value)
const;
107 void getValueFromBlock(
void* block,
unsigned int pos,
double& value)
const;
119 int placeBuffer(
unsigned c,
unsigned r)
const;
148 #endif // __TERRALIB_GDAL_INTERNAL_BAND_H int m_x
Actual x buffer position.
int m_currC
Block column position.
te::rst::GetBufferValueFPtr m_getBuffI
A pointer to a function that helps to extract the imaginary part value from a specific buffer data ty...
virtual void getValue(unsigned int c, unsigned int r, double &value) const =0
Returns the cell attribute value.
void * m_buffer
An internal buffer.
This class represents Raster data.
#define TEGDALEXPORT
You can use this macro in order to export/import classes and functions from this module.
void setValue(unsigned int c, unsigned int r, const std::complex< 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.
int m_currR
Block row position.
int m_currY
Block y position.
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...
This class represents raster band description.
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 getValue(unsigned int c, unsigned int r, std::complex< 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.
An abstract class for raster data strucutures.
This file contains include headers for the TerraLib GDAL driver.
GDALRasterBand * m_rasterBand
GDAL Raster band.
A raster band description.
int m_y
Actual y buffer position.
te::rst::Raster * m_raster
The type of function used to insert/extract data from buffers.
virtual void setValue(unsigned int c, unsigned int r, const double value)=0
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...
GDALDataType m_gdaltype
The GDAL Data type.
int m_currX
Block x position.
bool m_update_buffer
Flag to update buffer.
Configuration flags for the GDAL Driver of TerraLib.