open_iA 2021.08
A tool for the visual analysis and processing of volumetric datasets, with a focus on industrial computed tomography.
Public Member Functions | Protected Attributes | List of all members
iAPlot Class Referenceabstract

Interface for a function which is drawable in a chart. More...

#include <iAPlot.h>

Inheritance diagram for iAPlot:
[legend]

Public Member Functions

 iAPlot (QSharedPointer< iAPlotData > data, QColor const &color)
 
virtual ~iAPlot ()
 
QColor const color () const
 Get plot color. More...
 
virtual QSharedPointer< iAPlotDatadata ()
 Retrieves the data used for drawing. More...
 
virtual void draw (QPainter &painter, size_t startBin, size_t endBin, iAMapper const &xMapper, iAMapper const &yMapper) const =0
 Draws the plot. More...
 
virtual void setColor (QColor const &color)
 Set plot color. More...
 
virtual void setVisible (bool visible)
 Sets whether the plot should be currently drawn or not. More...
 
virtual bool visible () const
 Whether the plot is currently being drawn. More...
 

Protected Attributes

QSharedPointer< iAPlotDatam_data
 
bool m_visible
 

Detailed Description

Interface for a function which is drawable in a chart.

Encapsulates both the data of the function and the drawing method

Constructor & Destructor Documentation

◆ iAPlot()

iAPlot::iAPlot ( QSharedPointer< iAPlotData data,
QColor const &  color 
)

◆ ~iAPlot()

iAPlot::~iAPlot ( )
virtual

Member Function Documentation

◆ color()

QColor const iAPlot::color ( ) const

Get plot color.

◆ data()

QSharedPointer< iAPlotData > iAPlot::data ( )
virtual

Retrieves the data used for drawing.

Reimplemented in iAPlotCollection.

◆ draw()

virtual void iAPlot::draw ( QPainter &  painter,
size_t  startBin,
size_t  endBin,
iAMapper const &  xMapper,
iAMapper const &  yMapper 
) const
pure virtual

Draws the plot.

Implemented in iASelectedBinPlot, iABarGraphPlot, and iAPlotCollection.

◆ setColor()

void iAPlot::setColor ( QColor const &  color)
virtual

Set plot color.

Reimplemented in iAPlotCollection.

◆ setVisible()

void iAPlot::setVisible ( bool  visible)
virtual

Sets whether the plot should be currently drawn or not.

◆ visible()

bool iAPlot::visible ( ) const
virtual

Whether the plot is currently being drawn.

Member Data Documentation

◆ m_data

QSharedPointer<iAPlotData> iAPlot::m_data
protected

◆ m_visible

bool iAPlot::m_visible
protected

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