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

Encapsulation of read data from a couple of bands from one RasterDataGroup Also provides convinient basic operations and quarantees the same parameters of raster data. More...

#include <RasterDataGroup.h>

Collaboration diagram for agroeye::handlers::RasterDataGroup:

Public Member Functions

 RasterDataGroup ()
 
 RasterDataGroup (RasterDataGroup &&)=default
 
RasterDataGroupoperator= (RasterDataGroup &&)=default
 
void addData (const int bandNo, RasterData &&rasterData)
 Adds data to the container. More...
 
const RasterDatagetBandData (const int bandNo) const
 Provides access to raster data for given band. More...
 
std::vector< int > getBandsList () const
 Gets list of bands. More...
 
size_t getXPos () const
 
size_t getYPos () const
 
size_t getWidth () const
 
size_t getHeight () const
 

Static Public Member Functions

static RasterDataGroup createPiece (const RasterDataGroup &rasterData, const size_t x, const size_t y, const size_t width, const size_t height)
 Extracts piece from given data creating copy. More...
 

Detailed Description

Encapsulation of read data from a couple of bands from one RasterDataGroup Also provides convinient basic operations and quarantees the same parameters of raster data.

Constructor & Destructor Documentation

§ RasterDataGroup() [1/2]

agroeye::handlers::RasterDataGroup::RasterDataGroup ( )
inline
Here is the call graph for this function:

§ RasterDataGroup() [2/2]

agroeye::handlers::RasterDataGroup::RasterDataGroup ( RasterDataGroup &&  )
default

Dummy constructor Only move allowed by default

Member Function Documentation

§ addData()

void agroeye::handlers::RasterDataGroup::addData ( const int  bandNo,
RasterData &&  rasterData 
)

Adds data to the container.

Parameters
bandNoNumber of read band
rasterDataRaster data to data. Transfers ownership
Here is the caller graph for this function:

§ createPiece()

RasterDataGroup agroeye::handlers::RasterDataGroup::createPiece ( const RasterDataGroup rasterData,
const size_t  x,
const size_t  y,
const size_t  width,
const size_t  height 
)
static

Extracts piece from given data creating copy.

Parameters
rasterDataRaster data pixels to be extracted
xX of top left corner
yY of top left corner
widthWidth of extracted fragment
heightHeight of extracted fragment
returnA new raster data group
Here is the call graph for this function:
Here is the caller graph for this function:

§ getBandData()

const RasterData & agroeye::handlers::RasterDataGroup::getBandData ( const int  bandNo) const

Provides access to raster data for given band.

Parameters
bandNoBand number
Returns
Const refernce to raster data
Here is the call graph for this function:
Here is the caller graph for this function:

§ getBandsList()

std::vector< int > agroeye::handlers::RasterDataGroup::getBandsList ( ) const

Gets list of bands.

Returns
List of bands
Here is the caller graph for this function:

§ getHeight()

size_t agroeye::handlers::RasterDataGroup::getHeight ( ) const
inline
Here is the caller graph for this function:

§ getWidth()

size_t agroeye::handlers::RasterDataGroup::getWidth ( ) const
inline
Here is the caller graph for this function:

§ getXPos()

size_t agroeye::handlers::RasterDataGroup::getXPos ( ) const
inline
Here is the caller graph for this function:

§ getYPos()

size_t agroeye::handlers::RasterDataGroup::getYPos ( ) const
inline
Here is the caller graph for this function:

§ operator=()

RasterDataGroup& agroeye::handlers::RasterDataGroup::operator= ( RasterDataGroup &&  )
default

Only move allowed by default

Here is the caller graph for this function:

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