General Purpose Geodetic Library
SgPlotCarrier Class Reference

#include <SgGuiPlotter.h>

Public Types

enum  AxisType { AxisType_DATA = 0 , AxisType_MJD = 1 }
 
enum  DataAttr { DA_NONUSABLE = 1<<0 , DA_REJECTED = 1<<1 , DA_BAR = 1<<2 , DA_SELECTED = 1<<3 }
 

Public Member Functions

 SgPlotCarrier (unsigned int, unsigned int, const QString &)
 
 ~SgPlotCarrier ()
 
QList< SgPlotBranch * > * listOfBranches ()
 
QVector< QString * > * columnNames ()
 
unsigned int numOfValuesColumns () const
 
unsigned int numOfSigmasColumns () const
 
bool isOK () const
 
AxisType getAxisType (int columnIdx) const
 
int getStdVarIdx (int columnIdx) const
 
QString & getName (int idx=-1)
 
const QString & getFile2SaveBaseName () const
 
void setAxisType (int columnIdx, AxisType axisType)
 
void setStdVarIdx (int columnIdx, int sigmaColumnIdx)
 
void setName (const QString &name, int idx=-1)
 
void setFile2SaveBaseName (const QString &name)
 
QString className () const
 
int numOfColumns () const
 
void createBranch (unsigned int numberOfRows, const QString &branchName, bool hasExtKeys=false)
 
bool selfCheck ()
 
void setNameOfColumn (unsigned int, const QString &)
 

Private Attributes

QMap< int, QString > name_
 
QList< SgPlotBranch * > listOfBranches_
 
bool isOK_
 
QString file2SaveBaseName_
 
unsigned int numOfValuesColumns_
 
unsigned int numOfSigmasColumns_
 
QVector< QString * > columnNames_
 
int * dataTypes_
 
int * dataStdVarIdx_
 

Detailed Description

An object that pass information about data to plot and its format ====================================================================================================

Definition at line 130 of file SgGuiPlotter.h.

Member Enumeration Documentation

◆ AxisType

Enumerator
AxisType_DATA 
AxisType_MJD 

Definition at line 133 of file SgGuiPlotter.h.

◆ DataAttr

Enumerator
DA_NONUSABLE 
DA_REJECTED 
DA_BAR 
DA_SELECTED 

Definition at line 139 of file SgGuiPlotter.h.

Constructor & Destructor Documentation

◆ SgPlotCarrier()

SgPlotCarrier::SgPlotCarrier ( unsigned int  numOfValuesColumns,
unsigned int  numOfSigmasColumns,
const QString &  name 
)

◆ ~SgPlotCarrier()

SgPlotCarrier::~SgPlotCarrier ( )

A destructor. Frees allocated memory.

Definition at line 241 of file SgGuiPlotter.cpp.

References columnNames_, dataStdVarIdx_, dataTypes_, listOfBranches_, numOfSigmasColumns_, and numOfValuesColumns_.

Member Function Documentation

◆ className()

QString SgPlotCarrier::className ( ) const
inline

Definition at line 182 of file SgGuiPlotter.h.

Referenced by selfCheck().

◆ columnNames()

QVector<QString*>* SgPlotCarrier::columnNames ( )
inline

◆ createBranch()

void SgPlotCarrier::createBranch ( unsigned int  numberOfRows,
const QString &  branchName,
bool  hasExtKeys = false 
)

◆ getAxisType()

SgPlotCarrier::AxisType SgPlotCarrier::getAxisType ( int  columnIdx) const
inline

Definition at line 225 of file SgGuiPlotter.h.

References AxisType_DATA, dataTypes_, and numOfColumns().

Referenced by SgPlotArea::calcLimits(), and SgPlotArea::setXColumn().

◆ getFile2SaveBaseName()

const QString& SgPlotCarrier::getFile2SaveBaseName ( ) const
inline

Definition at line 173 of file SgGuiPlotter.h.

References file2SaveBaseName_.

Referenced by SgPlotArea::output4Files(), and SgPlot::save2Image().

◆ getName()

QString& SgPlotCarrier::getName ( int  idx = -1)
inline

◆ getStdVarIdx()

int SgPlotCarrier::getStdVarIdx ( int  columnIdx) const
inline

◆ isOK()

bool SgPlotCarrier::isOK ( ) const
inline

◆ listOfBranches()

◆ numOfColumns()

◆ numOfSigmasColumns()

unsigned int SgPlotCarrier::numOfSigmasColumns ( ) const
inline

Definition at line 166 of file SgGuiPlotter.h.

References numOfSigmasColumns_.

Referenced by SgPlotCarrier().

◆ numOfValuesColumns()

unsigned int SgPlotCarrier::numOfValuesColumns ( ) const
inline

Definition at line 165 of file SgGuiPlotter.h.

References numOfValuesColumns_.

Referenced by SgPlotCarrier().

◆ selfCheck()

bool SgPlotCarrier::selfCheck ( )

◆ setAxisType()

void SgPlotCarrier::setAxisType ( int  columnIdx,
AxisType  axisType 
)
inline

◆ setFile2SaveBaseName()

void SgPlotCarrier::setFile2SaveBaseName ( const QString &  name)
inline

◆ setName()

void SgPlotCarrier::setName ( const QString &  name,
int  idx = -1 
)
inline

Definition at line 177 of file SgGuiPlotter.h.

References name_.

Referenced by NsSessionEditDialog::tab4BandPlots().

◆ setNameOfColumn()

void SgPlotCarrier::setNameOfColumn ( unsigned int  idx,
const QString &  name 
)

◆ setStdVarIdx()

void SgPlotCarrier::setStdVarIdx ( int  columnIdx,
int  sigmaColumnIdx 
)
inline

Member Data Documentation

◆ columnNames_

QVector<QString*> SgPlotCarrier::columnNames_
private

Definition at line 198 of file SgGuiPlotter.h.

Referenced by ~SgPlotCarrier(), columnNames(), selfCheck(), and setNameOfColumn().

◆ dataStdVarIdx_

int* SgPlotCarrier::dataStdVarIdx_
private

Definition at line 200 of file SgGuiPlotter.h.

Referenced by SgPlotCarrier(), ~SgPlotCarrier(), getStdVarIdx(), and setStdVarIdx().

◆ dataTypes_

int* SgPlotCarrier::dataTypes_
private

Definition at line 199 of file SgGuiPlotter.h.

Referenced by SgPlotCarrier(), ~SgPlotCarrier(), getAxisType(), and setAxisType().

◆ file2SaveBaseName_

QString SgPlotCarrier::file2SaveBaseName_
private

Definition at line 193 of file SgGuiPlotter.h.

Referenced by SgPlotCarrier(), getFile2SaveBaseName(), and setFile2SaveBaseName().

◆ isOK_

bool SgPlotCarrier::isOK_
private

Definition at line 192 of file SgGuiPlotter.h.

Referenced by SgPlotCarrier(), isOK(), and selfCheck().

◆ listOfBranches_

QList<SgPlotBranch*> SgPlotCarrier::listOfBranches_
private

Definition at line 191 of file SgGuiPlotter.h.

Referenced by ~SgPlotCarrier(), createBranch(), listOfBranches(), and selfCheck().

◆ name_

QMap<int, QString> SgPlotCarrier::name_
private

Definition at line 190 of file SgGuiPlotter.h.

Referenced by SgPlotCarrier(), getName(), and setName().

◆ numOfSigmasColumns_

unsigned int SgPlotCarrier::numOfSigmasColumns_
private

◆ numOfValuesColumns_

unsigned int SgPlotCarrier::numOfValuesColumns_
private

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