![]() |
open_iA
2019.12
A tool for the visual analysis and processing of volumetric datasets, with a focus on industrial computed tomography.
|
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>
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 ¶mName) 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... | |
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).
| iASPLOMData::iASPLOMData | ( | ) |
|
explicit |
Create data from a QTableWidget.
| 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.
| void iASPLOMData::clear | ( | ) |
Free all the data.
| void iASPLOMData::clearFilter | ( | ) |
Clear all filters.
| std::vector< std::vector< double > > & iASPLOMData::data | ( | ) |
Get the table values.
| const std::vector< std::vector< double > > & iASPLOMData::data | ( | ) | const |
Get constant ref. to the lists containing raw data points.
|
signal |
emitted when the range of a parameter has changed
| bool iASPLOMData::filterDefined | ( | ) | const |
Returns true if a filter is defined on the data.
| void iASPLOMData::import | ( | const QTableWidget * | tw | ) |
Imports data from a QTableWidget and stores it in a list of double-lists.
| bool iASPLOMData::isInverted | ( | size_t | paramIndex | ) |
Get whether the axis of a parameter should be inverted in the scatter plots.
| bool iASPLOMData::matchesFilter | ( | size_t | ind | ) | const |
Set the parameter names (clears all columns)
Returns true if point with given index matches current filter
| size_t iASPLOMData::numParams | ( | ) | const |
Get number of data point parameters.
| size_t iASPLOMData::numPoints | ( | ) | const |
Get number of data points.
| 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).
| QString iASPLOMData::parameterName | ( | size_t | paramIndex | ) | const |
Get parameter name by its index.
| size_t iASPLOMData::paramIndex | ( | QString const & | paramName | ) | const |
Get the index of a specified parameter name.
| std::vector< QString > & iASPLOMData::paramNames | ( | ) |
Get the names of the columns/parameters.
| double const * iASPLOMData::paramRange | ( | size_t | paramIndex | ) | const |
Get the range of the parameter with given index.
| void iASPLOMData::removeFilter | ( | int | paramIndex, |
| double | value | ||
| ) |
Removes the filter on the given column and value.
| void iASPLOMData::setInverted | ( | size_t | paramIndex, |
| bool | isInverted | ||
| ) |
Set whether the axis of a parameter should be inverted in the scatter plots.
| void iASPLOMData::setParameterNames | ( | std::vector< QString > const & | names | ) |
| void iASPLOMData::updateRange | ( | size_t | paramIndex | ) |
update range of a single parameter. Call if data of a parameter has changed
| void iASPLOMData::updateRanges | ( | ) |
update range of all parameters
| void iASPLOMData::updateRanges | ( | std::vector< size_t > | paramIndices | ) |
update range for multiple parameters. Call if data of multiple parameters has changed
|
protected |
lists containing data points
|
protected |
whether to invert a feature
|
protected |
list of parameter names
|
protected |
ranges of all parameters
1.8.16