open_iA 2023.02
A tool for the visual analysis and processing of volumetric datasets, with a focus on industrial computed tomography.
Loading...
Searching...
No Matches
Public Member Functions | List of all members
iAPlotCollection Class Reference

Collects multiple plots and makes them act as a single plot. More...

#include <iAPlotTypes.h>

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

Public Member Functions

 iAPlotCollection ()
 
void add (QSharedPointer< iAPlot > plot)
 
void clear ()
 
QSharedPointer< iAPlotDatadata () override
 Retrieves the data used for drawing.
 
void draw (QPainter &painter, size_t startIdx, size_t endIdx, iAMapper const &xMapper, iAMapper const &yMapper) const override
 Draws the plot.
 
void setColor (QColor const &color) override
 Set plot color.
 
- Public Member Functions inherited from iAPlot
 iAPlot (QSharedPointer< iAPlotData > data, QColor const &color)
 
virtual ~iAPlot ()
 
QColor const color () const
 Get plot color.
 
virtual QSharedPointer< iAPlotDatadata ()
 Retrieves the data used for drawing.
 
virtual void draw (QPainter &painter, size_t startBin, size_t endBin, iAMapper const &xMapper, iAMapper const &yMapper) const =0
 Draws the plot.
 
virtual void drawLegendItem (QPainter &painter, QRect const &rect)
 Draws a legend item for the plot.
 
virtual void setColor (QColor const &color)
 Set plot color.
 
virtual void setVisible (bool visible)
 Sets whether the plot should be currently drawn or not.
 
virtual bool visible () const
 Whether the plot is currently being drawn.
 

Additional Inherited Members

- Protected Attributes inherited from iAPlot
QSharedPointer< iAPlotDatam_data
 
bool m_visible
 

Detailed Description

Collects multiple plots and makes them act as a single plot.

Constructor & Destructor Documentation

◆ iAPlotCollection()

iAPlotCollection::iAPlotCollection ( )

Member Function Documentation

◆ add()

void iAPlotCollection::add ( QSharedPointer< iAPlot plot)

◆ clear()

void iAPlotCollection::clear ( )

◆ data()

QSharedPointer< iAPlotData > iAPlotCollection::data ( )
overridevirtual

Retrieves the data used for drawing.

Reimplemented from iAPlot.

◆ draw()

void iAPlotCollection::draw ( QPainter &  painter,
size_t  startBin,
size_t  endBin,
iAMapper const &  xMapper,
iAMapper const &  yMapper 
) const
overridevirtual

Draws the plot.

Implements iAPlot.

◆ setColor()

void iAPlotCollection::setColor ( QColor const &  color)
overridevirtual

Set plot color.

Reimplemented from iAPlot.


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