open_iA 2024.7
Loading...
Searching...
No Matches
Signals | Public Member Functions | Static Public Attributes | Protected Attributes | List of all members
iASPLOMData Class Reference

Stores data shown in a scatter plot matrix (SPLOM). More...

#include <iASPLOMData.h>

Inheritance diagram for iASPLOMData:
[legend]
Collaboration diagram for iASPLOMData:
[legend]

Signals

void dataChanged (size_t paramIndex)
 emitted when the range of a parameter has changed
 

Public Member Functions

 iASPLOMData ()
 
void addParameter (QString &name)
 Add an additional column.
 
std::vector< std::vector< double > > & data ()
 Set the parameter names (clears all columns) with an optional row "size" (i.e. how many rows are planned to be there, i.e. used in vector::reserve)
 
const std::vector< std::vector< double > > & data () const
 Get constant ref. to the lists containing raw data points.
 
size_t numParams () const
 Get number of data point parameters.
 
size_t numPoints () const
 Get number of data points.
 
const std::vector< double > & paramData (size_t paramIndex) const
 Get constant ref. to the list containing raw data points of a given parameter (index).
 
QString parameterName (size_t paramIndex) const
 Get parameter name by its index.
 
size_t paramIndex (QString const &paramName) const
 Get the index of a specified parameter name.
 
std::vector< QString > & paramNames ()
 Get the names of the columns/parameters.
 
double const * paramRange (size_t paramIndex) const
 Get the range of the parameter with given index.
 
void setParameterNames (std::vector< QString > const &paramNmes, size_t rowReserve=0)
 
void updateRange (size_t paramIndex)
 update range of a single parameter. Call if data of a parameter has changed
 
void updateRanges ()
 update range of all parameters
 
void updateRanges (std::vector< size_t > paramIndices)
 update range for multiple parameters. Call if data of multiple parameters has changed
 

Static Public Attributes

static const size_t NoDataIdx = std::numeric_limits<size_t>::max()
 

Protected Attributes

std::vector< std::vector< double > > m_dataPoints
 lists containing data points
 
std::vector< QString > m_paramNames
 list of parameter names
 
std::vector< std::vector< double > > m_ranges
 ranges of all parameters
 

Detailed Description

Stores data shown in a scatter plot matrix (SPLOM).

Data is represented as table with data values for one object per row, along with the names of the columns/parameters.

Constructor & Destructor Documentation

◆ iASPLOMData()

iASPLOMData::iASPLOMData ( )

Member Function Documentation

◆ addParameter()

void iASPLOMData::addParameter ( QString & name)

Add an additional column.

◆ data() [1/2]

std::vector< std::vector< double > > & iASPLOMData::data ( )

Set the parameter names (clears all columns) with an optional row "size" (i.e. how many rows are planned to be there, i.e. used in vector::reserve)

Get the table values

◆ data() [2/2]

const std::vector< std::vector< double > > & iASPLOMData::data ( ) const

Get constant ref. to the lists containing raw data points.

◆ dataChanged

void iASPLOMData::dataChanged ( size_t paramIndex)
signal

emitted when the range of a parameter has changed

◆ numParams()

size_t iASPLOMData::numParams ( ) const

Get number of data point parameters.

◆ numPoints()

size_t iASPLOMData::numPoints ( ) const

Get number of data points.

◆ paramData()

const std::vector< double > & iASPLOMData::paramData ( size_t paramIndex) const

Get constant ref. to the list containing raw data points of a given parameter (index).

◆ parameterName()

QString iASPLOMData::parameterName ( size_t paramIndex) const

Get parameter name by its index.

◆ paramIndex()

size_t iASPLOMData::paramIndex ( QString const & paramName) const

Get the index of a specified parameter name.

◆ paramNames()

std::vector< QString > & iASPLOMData::paramNames ( )

Get the names of the columns/parameters.

◆ paramRange()

double const * iASPLOMData::paramRange ( size_t paramIndex) const

Get the range of the parameter with given index.

◆ setParameterNames()

void iASPLOMData::setParameterNames ( std::vector< QString > const & paramNmes,
size_t rowReserve = 0 )

◆ updateRange()

void iASPLOMData::updateRange ( size_t paramIndex)

update range of a single parameter. Call if data of a parameter has changed

◆ updateRanges() [1/2]

void iASPLOMData::updateRanges ( )

update range of all parameters

◆ updateRanges() [2/2]

void iASPLOMData::updateRanges ( std::vector< size_t > paramIndices)

update range for multiple parameters. Call if data of multiple parameters has changed

Member Data Documentation

◆ m_dataPoints

std::vector<std::vector<double> > iASPLOMData::m_dataPoints
protected

lists containing data points

◆ m_paramNames

std::vector<QString> iASPLOMData::m_paramNames
protected

list of parameter names

◆ m_ranges

std::vector<std::vector<double> > iASPLOMData::m_ranges
protected

ranges of all parameters

◆ NoDataIdx

const size_t iASPLOMData::NoDataIdx = std::numeric_limits<size_t>::max()
static

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