Public Types | Public Member Functions | List of all members
Data< DT > Class Template Reference

Data structure consisting of plain data and an optional quality data. More...

#include <Data.h>

Inheritance diagram for Data< DT >:
Inheritance graph
[legend]
Collaboration diagram for Data< DT >:
Collaboration graph
[legend]

Public Types

typedef PlainData< DT > plaindata_t
 
- Public Types inherited from PlainData< DT >
typedef DT::tree_t tree_t
 
typedef DT::image_t image_t
 
typedef DT::odim_t odim_t
 
- Public Types inherited from TreeWrapper< DT >
typedef DT datatype_t
 
typedef DT::tree_t tree_t
 
typedef DT::tree_iter_t tree_iter_t
 
- Public Types inherited from QualityDataSupport< DT >
typedef PlainData< DT > plaindata_t
 
typedef DataGroup< plaindata_t, ODIMPathElem::QUALITYqualitygroup_t
 

Public Member Functions

 Data (typename DT::tree_t &tree)
 
 Data (typename DT::tree_t &tree, const std::string &quantity)
 
 Data (const Data< DT > &d)
 
void swap (Data< DT > &d)
 
- Public Member Functions inherited from PlainData< DT >
 PlainData (typename DT::tree_t &tree)
 
 PlainData (typename DT::tree_t &tree, const std::string &quantity)
 Constructor referring to HDF5 structure.
 
template<typename DT2 >
 PlainData (const PlainData< DT2 > &d)
 Copy constructor, also for referencing non-const as const. More...
 
template<class T >
void setEncoding (const T &type, const std::string &values="")
 Saves type and sets the type of the actual data array as well.
 
void copyEncoding (const EncodingODIM &odim)
 New, experimental.
 
template<class DT2 >
void copyEncoding (const PlainData< DT2 > &srcData)
 
void setPhysicalRange (double min, double max)
 
void setGeometry (size_t cols, size_t rows)
 Sets dimensions of data array and metadata.
 
void setGeometry (const drain::image::AreaGeometry &geometry)
 Sets dimensions of data array and metadata.
 
void setGeometry (const odim_t &odim)
 Copy dimensions of data array and resolution (rscale or xscale,yscale) More...
 
template<class DT2 >
void copyGeometry (const PlainData< DT2 > &srcData)
 Copy dimensions of data array and resolution (rscale or xscale,yscale) More...
 
template<class T >
void initialize (const T &type, size_t cols, size_t rows)
 Calls setEncoding() and setGeometry().
 
template<class T >
void initialize (const T &type, const drain::image::AreaGeometry &geometry)
 
void createSimpleQualityData (drain::image::Image &qualityImage, double dataQuality=1.0, double undetectQuality=0.5, double nodataQuality=0.0) const
 For this data, creates an on-off quality data. More...
 
void createSimpleQualityData (PlainData< DT > &qualityData, double dataQuality=1.0, double undetectQuality=0.5, double nodataQuality=0.0) const
 For this data, creates an on-off quality data.
 
void updateTree2 ()
 TODO: consider this to destructor.
 
- Public Member Functions inherited from TreeWrapper< DT >
const drain::VariableMapgetWhat () const
 
drain::VariableMapgetWhat ()
 
const drain::VariableMapgetWhere () const
 
drain::VariableMapgetWhere ()
 
const drain::VariableMapgetHow () const
 
drain::VariableMapgetHow ()
 
void setExcluded (bool exclude=true)
 
bool isExcluded () const
 
virtual const tree_t & getTree () const
 
virtual tree_t & getTree ()
 
- Public Member Functions inherited from QualityDataSupport< DT >
 QualityDataSupport (typename plaindata_t::tree_t &tree)
 
 QualityDataSupport (const QualityDataSupport< DT > &qds)
 
const plaindata_tgetQualityData (const std::string &quantity="QIND") const
 Finds associated quality data - maybe empty and unscaled.
 
plaindata_tgetQualityData (const std::string &quantity="QIND")
 Finds associated quality data - maybe empty and unscaled. More...
 
bool hasQuality () const
 
bool hasQuality (const std::string &quantity) const
 
const qualitygroup_tgetQuality () const
 
qualitygroup_tgetQuality ()
 

Additional Inherited Members

- Public Attributes inherited from PlainData< DT >
image_t & data
 
odim_t odim
 
- Protected Member Functions inherited from TreeWrapper< DT >
 TreeWrapper (tree_t &tree)
 
 TreeWrapper (const TreeWrapper &d)
 
template<ODIMPathElem::group_t G>
const drain::VariableMapgetAttr () const
 
template<ODIMPathElem::group_t G>
drain::VariableMapgetAttr ()
 
- Protected Attributes inherited from TreeWrapper< DT >
tree_t & tree
 General HDF5 data structure.
 
- Protected Attributes inherited from QualityDataSupport< DT >
qualitygroup_t quality
 

Detailed Description

template<typename DT>
class rack::Data< DT >

Data structure consisting of plain data and an optional quality data.

Template Parameters
DT- data type (PolarSrc, PolarDst, CartesianSrc, CartesianDst)

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