open_iA  2019.12
A tool for the visual analysis and processing of volumetric datasets, with a focus on industrial computed tomography.
Signals | Public Member Functions | Protected Attributes | List of all members
iASPLOMData Class Reference

Class for storing data shown in a scatter plot matrix (SPLOM) (a table with data values for one object per row, along with the names of the columns/parameters). More...

#include <iASPLOMData.h>

Inheritance diagram for iASPLOMData:
Collaboration diagram for iASPLOMData:

Signals

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

Public Member Functions

void addFilter (int paramIndex, double value)
 Adds a filter on the given column (index), it needs to match the given value; multiple filters are linked via OR. More...
 
void clear ()
 Free all the data. More...
 
void clearFilter ()
 Clear all filters. More...
 
std::vector< std::vector< double > > & data ()
 Get the table values. More...
 
const std::vector< std::vector< double > > & data () const
 Get constant ref. to the lists containing raw data points. More...
 
bool filterDefined () const
 Returns true if a filter is defined on the data. More...
 
 iASPLOMData ()
 
 iASPLOMData (const QTableWidget *tw)
 Create data from a QTableWidget. More...
 
void import (const QTableWidget *tw)
 Imports data from a QTableWidget and stores it in a list of double-lists. More...
 
bool isInverted (size_t paramIndex)
 Get whether the axis of a parameter should be inverted in the scatter plots. More...
 
bool matchesFilter (size_t ind) const
 Set the parameter names (clears all columns) More...
 
size_t numParams () const
 Get number of data point parameters. More...
 
size_t numPoints () const
 Get number of data points. More...
 
const std::vector< double > & paramData (size_t paramIndex) const
 Get constant ref. to the list containing raw data points of a given parameter (index). More...
 
QString parameterName (size_t paramIndex) const
 Get parameter name by its index. More...
 
size_t paramIndex (QString const &paramName) const
 Get the index of a specified parameter name. More...
 
std::vector< QString > & paramNames ()
 Get the names of the columns/parameters. More...
 
double const * paramRange (size_t paramIndex) const
 Get the range of the parameter with given index. More...
 
void removeFilter (int paramIndex, double value)
 Removes the filter on the given column and value. More...
 
void setInverted (size_t paramIndex, bool isInverted)
 Set whether the axis of a parameter should be inverted in the scatter plots. More...
 
void setParameterNames (std::vector< QString > const &names)
 
void updateRange (size_t paramIndex)
 update range of a single parameter. Call if data of a parameter has changed More...
 
void updateRanges ()
 update range of all parameters More...
 
void updateRanges (std::vector< size_t > paramIndices)
 update range for multiple parameters. Call if data of multiple parameters has changed More...
 

Protected Attributes

std::vector< std::vector< double > > m_dataPoints
 lists containing data points More...
 
std::vector< char > m_inverted
 whether to invert a feature More...
 
std::vector< QString > m_paramNames
 list of parameter names More...
 
std::vector< std::vector< double > > m_ranges
 ranges of all parameters More...
 

Detailed Description

Class for storing data shown in a scatter plot matrix (SPLOM) (a table with data values for one object per row, along with the names of the columns/parameters).

Constructor & Destructor Documentation

◆ iASPLOMData() [1/2]

iASPLOMData::iASPLOMData ( )

◆ iASPLOMData() [2/2]

iASPLOMData::iASPLOMData ( const QTableWidget *  tw)
explicit

Create data from a QTableWidget.

Deprecated:
should be removed, will be replaced by a utility function that does this (to remove direct dependency on QTableWidget here)

Member Function Documentation

◆ addFilter()

void iASPLOMData::addFilter ( int  paramIndex,
double  value 
)

Adds a filter on the given column (index), it needs to match the given value; multiple filters are linked via OR.

◆ clear()

void iASPLOMData::clear ( )

Free all the data.

◆ clearFilter()

void iASPLOMData::clearFilter ( )

Clear all filters.

◆ data() [1/2]

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

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

◆ filterDefined()

bool iASPLOMData::filterDefined ( ) const

Returns true if a filter is defined on the data.

◆ import()

void iASPLOMData::import ( const QTableWidget *  tw)

Imports data from a QTableWidget and stores it in a list of double-lists.

Deprecated:
should be removed (to remove direct dependency on QTableWidget here), see constructor.

◆ isInverted()

bool iASPLOMData::isInverted ( size_t  paramIndex)

Get whether the axis of a parameter should be inverted in the scatter plots.

◆ matchesFilter()

bool iASPLOMData::matchesFilter ( size_t  ind) const

Set the parameter names (clears all columns)

Returns true if point with given index matches current filter

◆ 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.

◆ removeFilter()

void iASPLOMData::removeFilter ( int  paramIndex,
double  value 
)

Removes the filter on the given column and value.

◆ setInverted()

void iASPLOMData::setInverted ( size_t  paramIndex,
bool  isInverted 
)

Set whether the axis of a parameter should be inverted in the scatter plots.

◆ setParameterNames()

void iASPLOMData::setParameterNames ( std::vector< QString > const &  names)

◆ 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_inverted

std::vector<char> iASPLOMData::m_inverted
protected

whether to invert a feature

◆ 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


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