|
open_iA 2024.9
|
Class providing details on the current viewing configuration of a scatterplot. More...
#include <iAScatterPlotViewData.h>
Public Types | |
| using | LineListType = std::vector<LineType> |
| using | LineType = std::tuple<iAScatterPlotViewData::SelectionType, QColor, int> |
| using | SelectionType = std::vector<size_t> |
Signals | |
| void | filterChanged () |
| emitted whenever a filter is added, removed, or all filters cleared | |
| void | updateRequired () |
Public Member Functions | |
| iAScatterPlotViewData () | |
| void | addHighlightedPoint (size_t idx) |
| double | animIn () const |
| Getter for animation in property. | |
| double | animOut () const |
| Getter for animation out property. | |
| void | clearHighlightedPoints () |
| Get whether the axis of a parameter should be inverted in the scatter plots. | |
| void | clearSelection () |
| SelectionType const & | filteredSelection (std::shared_ptr< iASPLOMData > splomData) const |
| returns the index of the selected points in the filtered list of points i.e. | |
| SelectionType const & | highlightedPoints () const |
| bool | isInverted (size_t paramIndex) |
| Set whether the axis of a parameter should be inverted in the scatter plots. | |
| bool | isPointHighlighted (size_t idx) const |
| void | removeHighlightedPoint (size_t idx) |
| SelectionType & | selection () |
| SelectionType const & | selection () const |
| void | setAnimIn (double anim) |
| Setter for animation in property. | |
| void | setAnimOut (double anim) |
| Setter for animation out property. | |
| void | setFilteredSelection (SelectionType const &filteredSelection, std::shared_ptr< iASPLOMData > splomData) |
| void | setInverted (size_t paramIndex, bool isInverted) |
| void | setSelection (SelectionType const &selection) |
| void | updateAnimation (size_t curPt, size_t prePt) |
| LineListType const & | lines () const |
| void | addLine (SelectionType const &linePoints, QColor const &color, int lineWidth) |
| void | clearLines () |
| bool | matchesFilter (std::shared_ptr< iASPLOMData > splomData, size_t ind) const |
| Returns true if point with given index matches current filter. | |
| void | addFilter (size_t paramIndex, double value) |
| Adds a filter on the data to be shown, on the given column (index). The value in this column needs to match the given value; multiple filters added via this function are linked via OR. | |
| void | removeFilter (size_t paramIndex, double value) |
| Removes the filter on the given column and value. | |
| void | clearFilters () |
| Clear all filters on data; after calling this method, all data points will be shown again. | |
| bool | filterDefined () const |
| Returns true if a filter is defined on the data. | |
Properties | |
| double | m_animIn |
| In animation parameter. | |
| double | m_animOut |
| Out animation parameter. | |
Class providing details on the current viewing configuration of a scatterplot.
Works with both a single scatterplot or a scatterplot matrix (iAScatterPlotWidget or iAQSplom). This includes details on the current selection, highlight, mouse hover animation, and lines connecting points.
| using iAScatterPlotViewData::LineListType = std::vector<LineType> |
| using iAScatterPlotViewData::LineType = std::tuple<iAScatterPlotViewData::SelectionType, QColor, int> |
| using iAScatterPlotViewData::SelectionType = std::vector<size_t> |
| iAScatterPlotViewData::iAScatterPlotViewData | ( | ) |
| void iAScatterPlotViewData::addFilter | ( | size_t | paramIndex, |
| double | value ) |
Adds a filter on the data to be shown, on the given column (index). The value in this column needs to match the given value; multiple filters added via this function are linked via OR.
| void iAScatterPlotViewData::addHighlightedPoint | ( | size_t | idx | ) |
| void iAScatterPlotViewData::addLine | ( | SelectionType const & | linePoints, |
| QColor const & | color, | ||
| int | lineWidth ) |
| double iAScatterPlotViewData::animIn | ( | ) | const |
Getter for animation in property.
| double iAScatterPlotViewData::animOut | ( | ) | const |
Getter for animation out property.
| void iAScatterPlotViewData::clearFilters | ( | ) |
Clear all filters on data; after calling this method, all data points will be shown again.
| void iAScatterPlotViewData::clearHighlightedPoints | ( | ) |
Get whether the axis of a parameter should be inverted in the scatter plots.
| void iAScatterPlotViewData::clearLines | ( | ) |
| void iAScatterPlotViewData::clearSelection | ( | ) |
|
signal |
emitted whenever a filter is added, removed, or all filters cleared
| bool iAScatterPlotViewData::filterDefined | ( | ) | const |
Returns true if a filter is defined on the data.
| iAScatterPlotViewData::SelectionType const & iAScatterPlotViewData::filteredSelection | ( | std::shared_ptr< iASPLOMData > | splomData | ) | const |
returns the index of the selected points in the filtered list of points i.e.
the index of those points that are selected in a list which only contains those points which match the current filter NOTE: Only useful if you actually have such a filtered list! As is e.g. currently created in iAScatterPlot::drawPoints when SP_OLDOPENGL is defined...
| iAScatterPlotViewData::SelectionType const & iAScatterPlotViewData::highlightedPoints | ( | ) | const |
| bool iAScatterPlotViewData::isInverted | ( | size_t | paramIndex | ) |
Set whether the axis of a parameter should be inverted in the scatter plots.
| bool iAScatterPlotViewData::isPointHighlighted | ( | size_t | idx | ) | const |
| iAScatterPlotViewData::LineListType const & iAScatterPlotViewData::lines | ( | ) | const |
Connecting lines between data points
| bool iAScatterPlotViewData::matchesFilter | ( | std::shared_ptr< iASPLOMData > | splomData, |
| size_t | ind ) const |
Returns true if point with given index matches current filter.
Filtering for data items (matching values)
| void iAScatterPlotViewData::removeFilter | ( | size_t | paramIndex, |
| double | value ) |
Removes the filter on the given column and value.
| void iAScatterPlotViewData::removeHighlightedPoint | ( | size_t | idx | ) |
| iAScatterPlotViewData::SelectionType & iAScatterPlotViewData::selection | ( | ) |
| iAScatterPlotViewData::SelectionType const & iAScatterPlotViewData::selection | ( | ) | const |
| void iAScatterPlotViewData::setAnimIn | ( | double | anim | ) |
Setter for animation in property.
| void iAScatterPlotViewData::setAnimOut | ( | double | anim | ) |
Setter for animation out property.
| void iAScatterPlotViewData::setFilteredSelection | ( | iAScatterPlotViewData::SelectionType const & | filteredSelection, |
| std::shared_ptr< iASPLOMData > | splomData ) |
| void iAScatterPlotViewData::setInverted | ( | size_t | paramIndex, |
| bool | isInverted ) |
| void iAScatterPlotViewData::setSelection | ( | SelectionType const & | selection | ) |
| void iAScatterPlotViewData::updateAnimation | ( | size_t | curPt, |
| size_t | prePt ) |
|
signal |
|
readwrite |
In animation parameter.
|
readwrite |
Out animation parameter.