Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Plot2d_HistogramQwtItem Class Reference

#include <Plot2d_PlotItems.h>

Inheritance diagram for Plot2d_HistogramQwtItem:
Inheritance graph

Public Types

enum  HistogramAttribute { Auto = 0, Xfy = 1 }
 

Public Member Functions

 Plot2d_HistogramQwtItem (const QString &=QString())
 
 Plot2d_HistogramQwtItem (const QwtText &)
 
virtual ~Plot2d_HistogramQwtItem ()
 
void setData (const QwtIntervalSeriesData &)
 
const QwtIntervalSeriesData & data () const
 
void setColor (const QColor &)
 
QColor color () const
 
virtual QwtDoubleRect boundingRect () const
 
virtual int rtti () const
 
virtual void draw (QPainter *, const QwtScaleMap &, const QwtScaleMap &, const QRectF &) const
 
void setBaseline (double)
 
double baseline () const
 
void setHistogramAttribute (HistogramAttribute, bool=true)
 
bool testHistogramAttribute (HistogramAttribute) const
 

Protected Member Functions

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

Private Member Functions

void init ()
 

Private Attributes

int myAttributes
 
QwtIntervalSeriesData myData
 
QColor myColor
 
double myReference
 

Member Enumeration Documentation

Enumerator
Auto 
Xfy 

Constructor & Destructor Documentation

Plot2d_HistogramQwtItem::Plot2d_HistogramQwtItem ( const QString &  theTitle = QString())
explicit

Constructor

References init().

Plot2d_HistogramQwtItem::Plot2d_HistogramQwtItem ( const QwtText &  theTitle)
explicit

Constructor

References init().

Plot2d_HistogramQwtItem::~Plot2d_HistogramQwtItem ( )
virtual

Destructor

Member Function Documentation

double Plot2d_HistogramQwtItem::baseline ( ) const

Returns base line of object

References myReference.

QwtDoubleRect Plot2d_HistogramQwtItem::boundingRect ( ) const
virtual

Returns bounding rect of object

References myAttributes, myData, myReference, and Xfy.

QColor Plot2d_HistogramQwtItem::color ( ) const

Returns color from object

References myColor.

const QwtIntervalSeriesData & Plot2d_HistogramQwtItem::data ( ) const

Returns data from object

References myData.

void Plot2d_HistogramQwtItem::draw ( QPainter *  thePainter,
const QwtScaleMap &  theXMap,
const QwtScaleMap &  theYMap,
const QRectF &   
) const
virtual

Draws histogram object

Reimplemented in Plot2d_HistogramItem.

References baseline(), drawBar(), Horizontal, myAttributes, myColor, myData, Vertical, and Xfy.

void Plot2d_HistogramQwtItem::drawBar ( QPainter *  thePainter,
Qt::Orientation  ,
const QRect &  theRect 
) const
protectedvirtual

Draws single bar of histogram

References color(), Plot2d::drawLine(), and Plot2d::NoPen.

void Plot2d_HistogramQwtItem::init ( )
private

Initialization of object

References Auto, myAttributes, and myReference.

int Plot2d_HistogramQwtItem::rtti ( ) const
virtual

Returns type of plot object

void Plot2d_HistogramQwtItem::setBaseline ( double  theRef)

Sets base line to object

Parameters
theRef

References myReference.

void Plot2d_HistogramQwtItem::setColor ( const QColor &  theColor)

Sets color to object

References myColor.

void Plot2d_HistogramQwtItem::setData ( const QwtIntervalSeriesData &  theData)

Sets data to object

References myData.

void Plot2d_HistogramQwtItem::setHistogramAttribute ( HistogramAttribute  theAttr,
bool  isOn = true 
)

Sets histogram attributes

References myAttributes, and testHistogramAttribute().

bool Plot2d_HistogramQwtItem::testHistogramAttribute ( HistogramAttribute  theAttr) const

Tests histogram attributes

References myAttributes.

Member Data Documentation

int Plot2d_HistogramQwtItem::myAttributes
private
QColor Plot2d_HistogramQwtItem::myColor
private
QwtIntervalSeriesData Plot2d_HistogramQwtItem::myData
private
double Plot2d_HistogramQwtItem::myReference
private

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