ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
QCPColoredBars Class Reference

QCustomPlot: colored histogram. More...

#include <ecvQCustomPlot.h>

Inheritance diagram for QCPColoredBars:
Collaboration diagram for QCPColoredBars:

Classes

class  QCPColoredBarData
 

Public Types

typedef QMultiMap< double, QCPColoredBarDataQCPColoredBarDataMap
 

Public Member Functions

 QCPColoredBars (QCPAxis *keyAxis, QCPAxis *valueAxis)
 
void setData (const QVector< double > &key, const QVector< double > &value)
 
void setData (const QVector< double > &key, const QVector< double > &value, const QVector< QColor > &colors)
 
QRect rect () const
 
virtual void clearData ()
 

Protected Member Functions

virtual void draw (QCPPainter *painter)
 

Protected Attributes

QCPColoredBarDataMap m_coloredData
 

Detailed Description

QCustomPlot: colored histogram.

Definition at line 73 of file ecvQCustomPlot.h.

Member Typedef Documentation

◆ QCPColoredBarDataMap

Definition at line 83 of file ecvQCustomPlot.h.

Constructor & Destructor Documentation

◆ QCPColoredBars()

QCPColoredBars::QCPColoredBars ( QCPAxis *  keyAxis,
QCPAxis *  valueAxis 
)
inline

Definition at line 85 of file ecvQCustomPlot.h.

Member Function Documentation

◆ clearData()

virtual void QCPColoredBars::clearData ( )
inlinevirtual

Definition at line 117 of file ecvQCustomPlot.h.

References m_coloredData.

Referenced by ccHistogramWindow::refreshBars().

◆ draw()

virtual void QCPColoredBars::draw ( QCPPainter *  painter)
inlineprotectedvirtual

Definition at line 124 of file ecvQCustomPlot.h.

References color, and m_coloredData.

◆ rect()

QRect QCPColoredBars::rect ( ) const
inline

Definition at line 114 of file ecvQCustomPlot.h.

Referenced by ccHistogramWindow::mouseMoveEvent().

◆ setData() [1/2]

void QCPColoredBars::setData ( const QVector< double > &  key,
const QVector< double > &  value 
)
inline

Definition at line 88 of file ecvQCustomPlot.h.

References m_coloredData.

Referenced by ccHistogramWindow::refresh(), and ccHistogramWindow::refreshBars().

◆ setData() [2/2]

void QCPColoredBars::setData ( const QVector< double > &  key,
const QVector< double > &  value,
const QVector< QColor > &  colors 
)
inline

Definition at line 94 of file ecvQCustomPlot.h.

References QCPColoredBars::QCPColoredBarData::color, colors, and m_coloredData.

Member Data Documentation

◆ m_coloredData

QCPColoredBarDataMap QCPColoredBars::m_coloredData
protected

Definition at line 169 of file ecvQCustomPlot.h.

Referenced by clearData(), draw(), and setData().


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