open_iA  2020.01
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:
Collaboration diagram for iAPlot:

Public Member Functions

virtual QSharedPointer< iAPlotDatadata ()
 Retrieves the data used for drawing. More...
 
virtual void draw (QPainter &painter, double binWidth, size_t startBin, size_t endBin, iAMapper const &xMapper, iAMapper const &yMapper) const =0
 Draws the plot. More...
 
 iAPlot (QSharedPointer< iAPlotData > data, QColor const &color)
 
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...
 
virtual ~iAPlot ()
 
- Public Member Functions inherited from iAColorable
const QColor getColor () const
 
 iAColorable ()
 
 iAColorable (QColor const &color)
 
virtual void setColor (QColor const &color)
 
virtual ~iAColorable ()
 

Protected Attributes

QSharedPointer< iAPlotDatam_data
 
bool m_visible
 

Additional Inherited Members

- Static Public Attributes inherited from iAColorable
static const QColor DefaultColor
 

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

◆ data()

QSharedPointer< iAPlotData > iAPlot::data ( )
virtual

Retrieves the data used for drawing.

Reimplemented in iAPlotCollection.

◆ draw()

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

Draws the plot.

Implemented in iAPlotCollection, iABarGraphPlot, and iASelectedBinPlot.

◆ 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: