open_iA 2024.7
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 (std::shared_ptr< iAPlot > plot)
 
void clear ()
 
std::shared_ptr< 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 (std::shared_ptr< iAPlotData > data, QColor const &color)
 
virtual ~iAPlot ()
 
QColor const color () const
 Get plot color.
 
virtual void drawLegendItem (QPainter &painter, QRect const &rect)
 Draws a legend item for the plot.
 
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
std::shared_ptr< 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 ( std::shared_ptr< iAPlot > plot)

◆ clear()

void iAPlotCollection::clear ( )

◆ data()

std::shared_ptr< 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: