General Purpose Geodetic Library
SgPlotBranch Class Reference

#include <SgGuiPlotter.h>

Public Member Functions

 SgPlotBranch (unsigned int, unsigned int, unsigned int, const QString &, bool hasExtKeys=false)
 
 ~SgPlotBranch ()
 
unsigned int numOfRows () const
 
SgMatrixdata ()
 
void setIsBrowsable (bool is)
 
void setDataAttr (unsigned int, unsigned int)
 
void addDataAttr (unsigned int, unsigned int)
 
void delDataAttr (unsigned int, unsigned int)
 
void xorDataAttr (unsigned int, unsigned int)
 
void setName (const QString &name)
 
bool getIsBrowsable () const
 
unsigned int getDataAttr (unsigned int) const
 
const QString & getName () const
 
QString & getAlternativeTitleName (int idx=-1)
 
void setAlternativeTitleName (const QString &aName, int idx=-1)
 
bool isPointVisible (int idx, unsigned int limits) const
 
bool isPointInRanges (int idx, unsigned int limits) const
 
bool hasExtKeys () const
 
void setExtKey (int idx, const QString &key)
 
const QString & getExtKey (int idx)
 
void flagExtKey (const QString &eKey, bool on)
 

Private Attributes

QString name_
 
QMap< int, QString > alternativeTitleName_
 
SgMatrixdata_
 
unsigned int numOfRows_
 
bool isBrowsable_
 
bool hasExtKeys_
 
QVector< QString > extKeys_
 
QVector< bool > extKeysVisible_
 

Detailed Description

One branch on a plot. ====================================================================================================

Definition at line 71 of file SgGuiPlotter.h.

Constructor & Destructor Documentation

◆ SgPlotBranch()

SgPlotBranch::SgPlotBranch ( unsigned int  numOfRows,
unsigned int  numOfValuesColumns,
unsigned int  numOfSigmasColumns,
const QString &  name,
bool  hasExtKeys = false 
)

◆ ~SgPlotBranch()

SgPlotBranch::~SgPlotBranch ( )

A destructor. Frees allocated memory.

Definition at line 103 of file SgGuiPlotter.cpp.

References data_.

Member Function Documentation

◆ addDataAttr()

◆ data()

◆ delDataAttr()

◆ flagExtKey()

void SgPlotBranch::flagExtKey ( const QString &  eKey,
bool  on 
)

Definition at line 199 of file SgGuiPlotter.cpp.

References extKeys_, extKeysVisible_, and numOfRows_.

◆ getAlternativeTitleName()

QString& SgPlotBranch::getAlternativeTitleName ( int  idx = -1)
inline

Definition at line 93 of file SgGuiPlotter.h.

References alternativeTitleName_.

Referenced by SgPlotArea::drawFrames().

◆ getDataAttr()

◆ getExtKey()

const QString& SgPlotBranch::getExtKey ( int  idx)
inline

Definition at line 104 of file SgGuiPlotter.h.

References extKeys_.

Referenced by SgPlot::SgPlot(), SgPlot::processFilterExtMinus(), and SgPlot::processFilterExtPlus().

◆ getIsBrowsable()

bool SgPlotBranch::getIsBrowsable ( ) const
inline

◆ getName()

const QString& SgPlotBranch::getName ( ) const
inline

◆ hasExtKeys()

bool SgPlotBranch::hasExtKeys ( ) const
inline

◆ isPointInRanges()

bool SgPlotBranch::isPointInRanges ( int  idx,
unsigned int  limits 
) const

◆ isPointVisible()

◆ numOfRows()

unsigned int SgPlotBranch::numOfRows ( ) const
inline

◆ setAlternativeTitleName()

void SgPlotBranch::setAlternativeTitleName ( const QString &  aName,
int  idx = -1 
)
inline

Definition at line 95 of file SgGuiPlotter.h.

References alternativeTitleName_.

Referenced by NsSessionEditDialog::tab4BandPlots().

◆ setDataAttr()

void SgPlotBranch::setDataAttr ( unsigned int  i,
unsigned int  attr 
)

Definition at line 115 of file SgGuiPlotter.cpp.

References data_, SgMatrix::nCol(), and SgMatrix::setElement().

◆ setExtKey()

void SgPlotBranch::setExtKey ( int  idx,
const QString &  key 
)
inline

Definition at line 101 of file SgGuiPlotter.h.

References extKeys_, and hasExtKeys_.

Referenced by NsSessionEditDialog::tab4BandPlots().

◆ setIsBrowsable()

void SgPlotBranch::setIsBrowsable ( bool  is)
inline

Definition at line 84 of file SgGuiPlotter.h.

References isBrowsable_.

◆ setName()

void SgPlotBranch::setName ( const QString &  name)
inline

Definition at line 89 of file SgGuiPlotter.h.

References name_.

◆ xorDataAttr()

void SgPlotBranch::xorDataAttr ( unsigned int  i,
unsigned int  attr 
)

Definition at line 141 of file SgGuiPlotter.cpp.

References data_, getDataAttr(), SgMatrix::nCol(), and SgMatrix::setElement().

Referenced by SgPlotArea::drawData().

Member Data Documentation

◆ alternativeTitleName_

QMap<int, QString> SgPlotBranch::alternativeTitleName_
private

Definition at line 109 of file SgGuiPlotter.h.

Referenced by SgPlotBranch(), getAlternativeTitleName(), and setAlternativeTitleName().

◆ data_

SgMatrix* SgPlotBranch::data_
private

◆ extKeys_

QVector<QString> SgPlotBranch::extKeys_
private

Definition at line 114 of file SgGuiPlotter.h.

Referenced by SgPlotBranch(), flagExtKey(), getExtKey(), and setExtKey().

◆ extKeysVisible_

QVector<bool> SgPlotBranch::extKeysVisible_
private

Definition at line 115 of file SgGuiPlotter.h.

Referenced by SgPlotBranch(), flagExtKey(), and isPointVisible().

◆ hasExtKeys_

bool SgPlotBranch::hasExtKeys_
private

Definition at line 113 of file SgGuiPlotter.h.

Referenced by SgPlotBranch(), hasExtKeys(), isPointVisible(), and setExtKey().

◆ isBrowsable_

bool SgPlotBranch::isBrowsable_
private

Definition at line 112 of file SgGuiPlotter.h.

Referenced by SgPlotBranch(), getIsBrowsable(), and setIsBrowsable().

◆ name_

QString SgPlotBranch::name_
private

Definition at line 108 of file SgGuiPlotter.h.

Referenced by getName(), and setName().

◆ numOfRows_

unsigned int SgPlotBranch::numOfRows_
private

Definition at line 111 of file SgGuiPlotter.h.

Referenced by SgPlotBranch(), flagExtKey(), and numOfRows().


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