pktools 2.6.7
Processing Kernel for geospatial data
Public Member Functions | List of all members
DataModel Class Reference

Public Member Functions

 DataModel (const SensorModel::SensorModel &theModel)
 
void setModel (const SensorModel::SensorModel &theModel)
 
const SensorModel::SensorModel & getModel () const
 
int getSize () const
 
void setThreshold (double theThreshold)
 
double getThreshold ()
 
int erase (int index)
 
int pushAttPlatform (const arma::vec &atp)
 
int pushPosPlatform (const arma::vec &ppl)
 
int pushPosGCP (const arma::vec &pgcp)
 
int pushRow (int r)
 
int pushCol (int c)
 
arma::vec getPosPlatform (int index) const
 
arma::vec getAttPlatform (int index) const
 
arma::vec getPosGCP (int index) const
 
arma::vec getPos (int index) const
 
double getDistGeo (int index) const
 
int getRow (int index) const
 
int getCol (int index) const
 
double getHeight (int index) const
 
void setBoresightAtt (const arma::vec &bc_att)
 

Detailed Description

Definition at line 29 of file pksensormodel.h.

Constructor & Destructor Documentation

◆ DataModel() [1/2]

DataModel::DataModel ( )
inline

Definition at line 31 of file pksensormodel.h.

31: m_threshold(0){};

◆ DataModel() [2/2]

DataModel::DataModel ( const SensorModel::SensorModel &  theModel)
inline

Definition at line 32 of file pksensormodel.h.

32: m_model(theModel), m_threshold(0){};

◆ ~DataModel()

DataModel::~DataModel ( )
inline

Definition at line 33 of file pksensormodel.h.

33{};

Member Function Documentation

◆ erase()

int DataModel::erase ( int  index)
inline

Definition at line 39 of file pksensormodel.h.

39 {
40 m_attPlatform.erase(m_attPlatform.begin()+index);
41 m_posPlatform.erase(m_posPlatform.begin()+index);
42 m_posGCP.erase(m_posGCP.begin()+index);
43 m_row.erase(m_row.begin()+index);
44 m_col.erase(m_col.begin()+index);
45 };

◆ getAttPlatform()

arma::vec DataModel::getAttPlatform ( int  index) const
inline

Definition at line 52 of file pksensormodel.h.

52{assert(index>=0);assert(index<m_attPlatform.size());return(m_attPlatform[index]);};

◆ getCol()

int DataModel::getCol ( int  index) const
inline

Definition at line 65 of file pksensormodel.h.

65{assert(index>=0);assert(index<m_col.size());return(m_col[index]);};

◆ getDistGeo()

double DataModel::getDistGeo ( int  index) const
inline

Definition at line 63 of file pksensormodel.h.

63{assert(index>=0);assert(index<m_posGCP.size());return(m_model.getDistGeo(m_posGCP[index],getPos(index)));};

◆ getHeight()

double DataModel::getHeight ( int  index) const
inline

Definition at line 66 of file pksensormodel.h.

66{assert(index>=0);assert(index<m_posGCP.size());return(m_posGCP[index][2]);};

◆ getModel()

const SensorModel::SensorModel & DataModel::getModel ( ) const
inline

Definition at line 35 of file pksensormodel.h.

35{return m_model;};

◆ getPos()

arma::vec DataModel::getPos ( int  index) const
inline

Definition at line 54 of file pksensormodel.h.

54 {
55 assert(index>=0);
56 assert(index<m_posPlatform.size());
57 assert(index<m_attPlatform.size());
58 assert(index<m_row.size());
59 assert(index<m_col.size());
60 assert(index<m_posGCP.size());
61 return(m_model.getPos(m_posPlatform[index],m_attPlatform[index],m_row[index],m_col[index],m_posGCP[index][2]));
62 };

◆ getPosGCP()

arma::vec DataModel::getPosGCP ( int  index) const
inline

Definition at line 53 of file pksensormodel.h.

53{assert(index>=0);assert(index<m_posGCP.size());return(m_posGCP[index]);};

◆ getPosPlatform()

arma::vec DataModel::getPosPlatform ( int  index) const
inline

Definition at line 51 of file pksensormodel.h.

51{assert(index>=0);assert(index<m_posPlatform.size());return(m_posPlatform[index]);};

◆ getRow()

int DataModel::getRow ( int  index) const
inline

Definition at line 64 of file pksensormodel.h.

64{assert(index>=0);assert(index<m_row.size());return(m_row[index]);};

◆ getSize()

int DataModel::getSize ( ) const
inline

Definition at line 36 of file pksensormodel.h.

36{return m_posGCP.size();};

◆ getThreshold()

double DataModel::getThreshold ( )
inline

Definition at line 38 of file pksensormodel.h.

38{return m_threshold;};

◆ pushAttPlatform()

int DataModel::pushAttPlatform ( const arma::vec &  atp)
inline

Definition at line 46 of file pksensormodel.h.

46{m_attPlatform.push_back(atp); return m_attPlatform.size();};

◆ pushCol()

int DataModel::pushCol ( int  c)
inline

Definition at line 50 of file pksensormodel.h.

50{m_col.push_back(c); return m_col.size();};

◆ pushPosGCP()

int DataModel::pushPosGCP ( const arma::vec &  pgcp)
inline

Definition at line 48 of file pksensormodel.h.

48{m_posGCP.push_back(pgcp); return m_posGCP.size();};

◆ pushPosPlatform()

int DataModel::pushPosPlatform ( const arma::vec &  ppl)
inline

Definition at line 47 of file pksensormodel.h.

47{m_posPlatform.push_back(ppl); return m_posPlatform.size();};

◆ pushRow()

int DataModel::pushRow ( int  r)
inline

Definition at line 49 of file pksensormodel.h.

49{m_row.push_back(r); return m_row.size();};

◆ setBoresightAtt()

void DataModel::setBoresightAtt ( const arma::vec &  bc_att)
inline

Definition at line 67 of file pksensormodel.h.

67 {
68 m_model.setBoresightAtt(bc_att);
69 // for(int index=0;index<m_attPlatform.size();++index)
70 // m_attPlatform[index]+=bc_att;
71 };

◆ setModel()

void DataModel::setModel ( const SensorModel::SensorModel &  theModel)
inline

Definition at line 34 of file pksensormodel.h.

34{m_model=theModel;};

◆ setThreshold()

void DataModel::setThreshold ( double  theThreshold)
inline

Definition at line 37 of file pksensormodel.h.

37{m_threshold=theThreshold;};

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