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 | List of all members
iASelectedBinPlot Class Reference

Plot highlighting a single bin in a histogram plot. More...

#include <iAPlotTypes.h>

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

Public Member Functions

 iASelectedBinPlot (QSharedPointer< iAPlotData > proxyData, size_t idx=0, QColor const &color=Qt::red)
 
void draw (QPainter &painter, size_t startIdx, size_t endIdx, iAMapper const &xMapper, iAMapper const &yMapper) const override
 Draws the plot. More...
 
void setSelectedBin (size_t idx)
 
- Public Member Functions inherited from iAPlot
 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 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...
 

Additional Inherited Members

- Protected Attributes inherited from iAPlot
QSharedPointer< iAPlotDatam_data
 
bool m_visible
 

Detailed Description

Plot highlighting a single bin in a histogram plot.

Constructor & Destructor Documentation

◆ iASelectedBinPlot()

iASelectedBinPlot::iASelectedBinPlot ( QSharedPointer< iAPlotData proxyData,
size_t  idx = 0,
QColor const &  color = Qt::red 
)

Member Function Documentation

◆ draw()

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

Draws the plot.

Implements iAPlot.

◆ setSelectedBin()

void iASelectedBinPlot::setSelectedBin ( size_t  idx)

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