Agroeye  1.0
Public Member Functions | List of all members
agroeye::handlers::RasterBand Class Reference

#include <RasterBand.h>

Collaboration diagram for agroeye::handlers::RasterBand:

Public Member Functions

 RasterBand (GDALRasterBand *rawBand, CallbackFunction callbackFunc)
 Opens raster band. The opening of raster is only created by Raster. More...
 
 RasterBand (const RasterBand &other)
 Copy constructor. More...
 
 RasterBand (RasterBand &&other)
 Move constructor. More...
 
RasterBandoperator= (const RasterBand &other)
 Copy assignment operator. More...
 
RasterBandoperator= (RasterBand &&other)
 Move assignment operator. More...
 
virtual ~RasterBand ()
 Does NOT free any resources. More...
 
RasterData read (size_t x, size_t y, size_t width, size_t height)
 Reads the given extent of raster band. More...
 
int getWidth () const
 
int getHeight () const
 
double getNoDataValue () const
 

Constructor & Destructor Documentation

§ RasterBand() [1/3]

agroeye::handlers::RasterBand::RasterBand ( GDALRasterBand *  rawBand,
CallbackFunction  callbackFunc 
)

Opens raster band. The opening of raster is only created by Raster.

§ RasterBand() [2/3]

agroeye::handlers::RasterBand::RasterBand ( const RasterBand other)

Copy constructor.

Parameters
otherThe other Band to be copied

§ RasterBand() [3/3]

agroeye::handlers::RasterBand::RasterBand ( RasterBand &&  other)

Move constructor.

Parameters
otherThe other Band to be moved

§ ~RasterBand()

virtual agroeye::handlers::RasterBand::~RasterBand ( )
inlinevirtual

Does NOT free any resources.

Cleaning up after raster is preformed after deletion of Raster object

Here is the call graph for this function:

Member Function Documentation

§ getHeight()

int agroeye::handlers::RasterBand::getHeight ( ) const

Gets height of the band

Here is the caller graph for this function:

§ getNoDataValue()

double agroeye::handlers::RasterBand::getNoDataValue ( ) const

Gets value of no data pixels

Here is the caller graph for this function:

§ getWidth()

int agroeye::handlers::RasterBand::getWidth ( ) const

Gets width of the band

Here is the caller graph for this function:

§ operator=() [1/2]

RasterBand & agroeye::handlers::RasterBand::operator= ( const RasterBand other)

Copy assignment operator.

Parameters
otherThe other Band to be copied

§ operator=() [2/2]

RasterBand & agroeye::handlers::RasterBand::operator= ( RasterBand &&  other)

Move assignment operator.

Parameters
otherThe other Band to be moved

§ read()

RasterData agroeye::handlers::RasterBand::read ( size_t  x,
size_t  y,
size_t  width,
size_t  height 
)

Reads the given extent of raster band.

Parameters
xNumber of column (X) of top left corner
yNumber of row (Y) of top left corner
widthNumber of columns to be read
heightNumber of rows to be read
Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following files: