Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
QmitkHistogram Class Reference

Used to create a histogram that can be shown in a Qwt Plot. See QmitkHistogramWidget for an example of its usage. More...

#include <QmitkHistogram.h>

Inheritance diagram for QmitkHistogram:
Collaboration diagram for QmitkHistogram:

Public Member Functions

 QmitkHistogram (const QString &title=QString())
 
 QmitkHistogram (const QwtText &title)
 
 ~QmitkHistogram () override
 
void setData (const QwtIntervalSeriesData &data)
 
const QwtIntervalSeriesData & data () const
 
void setColor (const QColor &)
 
QColor color () const
 
QRectF boundingRect () const override
 
void draw (QPainter *, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &) const override
 
void setBaseline (double reference)
 
double baseline () const
 

Protected Member Functions

virtual void drawBar (QPainter *, Qt::Orientation o, const QRect &) const
 

Detailed Description

Used to create a histogram that can be shown in a Qwt Plot. See QmitkHistogramWidget for an example of its usage.

Definition at line 28 of file QmitkHistogram.h.

Constructor & Destructor Documentation

◆ QmitkHistogram() [1/2]

QmitkHistogram::QmitkHistogram ( const QString &  title = QString())
explicit

◆ QmitkHistogram() [2/2]

QmitkHistogram::QmitkHistogram ( const QwtText &  title)
explicit

◆ ~QmitkHistogram()

QmitkHistogram::~QmitkHistogram ( )
override

Member Function Documentation

◆ baseline()

double QmitkHistogram::baseline ( ) const

◆ boundingRect()

QRectF QmitkHistogram::boundingRect ( ) const
override

◆ color()

QColor QmitkHistogram::color ( ) const

◆ data()

const QwtIntervalSeriesData& QmitkHistogram::data ( ) const

◆ draw()

void QmitkHistogram::draw ( QPainter *  ,
const QwtScaleMap &  xMap,
const QwtScaleMap &  yMap,
const QRectF &   
) const
override

◆ drawBar()

virtual void QmitkHistogram::drawBar ( QPainter *  ,
Qt::Orientation  o,
const QRect &   
) const
protectedvirtual

◆ setBaseline()

void QmitkHistogram::setBaseline ( double  reference)

◆ setColor()

void QmitkHistogram::setColor ( const QColor &  )

◆ setData()

void QmitkHistogram::setData ( const QwtIntervalSeriesData &  data)

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