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
iABarGraphPlot Class Reference

Plots the given data points as single bars, horizontally separated by the given margin. More...

#include <iAPlotTypes.h>

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

Public Member Functions

 iABarGraphPlot (QSharedPointer< iAPlotData > data, QColor const &color, int margin=0)
 
void draw (QPainter &painter, size_t startIdx, size_t endIdx, iAMapper const &xMapper, iAMapper const &yMapper) const override
 Draws the plot. More...
 
void setLookupTable (QSharedPointer< iALookupTable > lut)
 
- 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

Plots the given data points as single bars, horizontally separated by the given margin.

Well-suited for discrete or binned data.

Constructor & Destructor Documentation

◆ iABarGraphPlot()

iABarGraphPlot::iABarGraphPlot ( QSharedPointer< iAPlotData data,
QColor const &  color,
int  margin = 0 
)

Member Function Documentation

◆ draw()

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

Draws the plot.

Implements iAPlot.

◆ setLookupTable()

void iABarGraphPlot::setLookupTable ( QSharedPointer< iALookupTable lut)

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