open_iA 2024.7
Loading...
Searching...
No Matches
Public Types | Signals | Public Member Functions | Properties | List of all members
iAScatterPlotViewData Class Reference

Class providing details on the current viewing configuration of a scatterplot. More...

#include <iAScatterPlotViewData.h>

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

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)
 
SelectionTypeselection ()
 
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.
 

Detailed Description

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.

Member Typedef Documentation

◆ LineListType

◆ LineType

◆ SelectionType

using iAScatterPlotViewData::SelectionType = std::vector<size_t>

Constructor & Destructor Documentation

◆ iAScatterPlotViewData()

iAScatterPlotViewData::iAScatterPlotViewData ( )

Member Function Documentation

◆ addFilter()

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.

◆ addHighlightedPoint()

void iAScatterPlotViewData::addHighlightedPoint ( size_t idx)

◆ addLine()

void iAScatterPlotViewData::addLine ( SelectionType const & linePoints,
QColor const & color,
int lineWidth )

◆ animIn()

double iAScatterPlotViewData::animIn ( ) const

Getter for animation in property.

◆ animOut()

double iAScatterPlotViewData::animOut ( ) const

Getter for animation out property.

◆ clearFilters()

void iAScatterPlotViewData::clearFilters ( )

Clear all filters on data; after calling this method, all data points will be shown again.

◆ clearHighlightedPoints()

void iAScatterPlotViewData::clearHighlightedPoints ( )

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

◆ clearLines()

void iAScatterPlotViewData::clearLines ( )

◆ clearSelection()

void iAScatterPlotViewData::clearSelection ( )

◆ filterChanged

void iAScatterPlotViewData::filterChanged ( )
signal

emitted whenever a filter is added, removed, or all filters cleared

◆ filterDefined()

bool iAScatterPlotViewData::filterDefined ( ) const

Returns true if a filter is defined on the data.

◆ filteredSelection()

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

◆ highlightedPoints()

iAScatterPlotViewData::SelectionType const & iAScatterPlotViewData::highlightedPoints ( ) const

◆ isInverted()

bool iAScatterPlotViewData::isInverted ( size_t paramIndex)

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

◆ isPointHighlighted()

bool iAScatterPlotViewData::isPointHighlighted ( size_t idx) const

◆ lines()

iAScatterPlotViewData::LineListType const & iAScatterPlotViewData::lines ( ) const

Connecting lines between data points

◆ matchesFilter()

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)

◆ removeFilter()

void iAScatterPlotViewData::removeFilter ( size_t paramIndex,
double value )

Removes the filter on the given column and value.

◆ removeHighlightedPoint()

void iAScatterPlotViewData::removeHighlightedPoint ( size_t idx)

◆ selection() [1/2]

iAScatterPlotViewData::SelectionType & iAScatterPlotViewData::selection ( )

◆ selection() [2/2]

iAScatterPlotViewData::SelectionType const & iAScatterPlotViewData::selection ( ) const

◆ setAnimIn()

void iAScatterPlotViewData::setAnimIn ( double anim)

Setter for animation in property.

◆ setAnimOut()

void iAScatterPlotViewData::setAnimOut ( double anim)

Setter for animation out property.

◆ setFilteredSelection()

void iAScatterPlotViewData::setFilteredSelection ( iAScatterPlotViewData::SelectionType const & filteredSelection,
std::shared_ptr< iASPLOMData > splomData )

◆ setInverted()

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

◆ setSelection()

void iAScatterPlotViewData::setSelection ( SelectionType const & selection)

◆ updateAnimation()

void iAScatterPlotViewData::updateAnimation ( size_t curPt,
size_t prePt )

◆ updateRequired

void iAScatterPlotViewData::updateRequired ( )
signal

Property Documentation

◆ m_animIn

double iAScatterPlotViewData::m_animIn
readwrite

In animation parameter.

◆ m_animOut

double iAScatterPlotViewData::m_animOut
readwrite

Out animation parameter.


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