open_iA  2019.12
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:
Collaboration diagram for iABarGraphPlot:

Public Member Functions

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

Additional Inherited Members

- Static Public Attributes inherited from iAColorable
static const QColor DefaultColor
 
- 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,
double  binWidth,
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: