open_iA 2021.08
A tool for the visual analysis and processing of volumetric datasets, with a focus on industrial computed tomography.
Public Types | Signals | Public Member Functions | Properties | List of all members
iAScatterPlotViewData Class Reference

Class providing details on the current viewing configuration to a scatterplot or a scatterplot matrix (iAScatterPlotWidget or iAQSplom). 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 More...
 
void updateRequired ()
 

Public Member Functions

 iAScatterPlotViewData ()
 
void addHighlightedPoint (size_t idx)
 
double animIn () const
 Getter for animation in property. More...
 
double animOut () const
 Getter for animation out property. More...
 
void clearHighlightedPoints ()
 Get whether the axis of a parameter should be inverted in the scatter plots. More...
 
void clearSelection ()
 
SelectionType const & filteredSelection (QSharedPointer< iASPLOMData > splomData) const
 returns the index of the selected points in the filtered list of points i.e. More...
 
SelectionType const & highlightedPoints () const
 
bool isInverted (size_t paramIndex)
 Set whether the axis of a parameter should be inverted in the scatter plots. More...
 
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. More...
 
void setAnimOut (double anim)
 Setter for animation out property. More...
 
void setFilteredSelection (SelectionType const &filteredSelection, QSharedPointer< 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 (QSharedPointer< iASPLOMData > splomData, size_t ind) const
 Returns true if point with given index matches current filter. More...
 
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. More...
 
void removeFilter (size_t paramIndex, double value)
 Removes the filter on the given column and value. More...
 
void clearFilters ()
 Clear all filters on data; after calling this method, all data points will be shown again. More...
 
bool filterDefined () const
 Returns true if a filter is defined on the data. More...
 

Properties

double m_animIn
 In animation parameter. More...
 
double m_animOut
 Out animation parameter. More...
 

Detailed Description

Class providing details on the current viewing configuration to a 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 ( QSharedPointer< 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 ( QSharedPointer< 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,
QSharedPointer< 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: