Developer Documentation
Loading...
Searching...
No Matches
ACG::QtWidgets::QtHistogramWidget Class Reference
Inheritance diagram for ACG::QtWidgets::QtHistogramWidget:

Public Member Functions

 QtHistogramWidget (QWidget *parent)
 
 QtHistogramWidget (const QtHistogramWidget &other)=delete
 
QtHistogramWidgetoperator= (const QtHistogramWidget &other)=delete
 
void setHistogram (std::unique_ptr< Histogram > histogram)
 
void setColorCoder (std::unique_ptr< IColorCoder > color_coder)
 

Protected Member Functions

void paintEvent (QPaintEvent *event)
 
QColor getColor (double val)
 

Protected Attributes

std::unique_ptr< Histogramhistogram_ = nullptr
 
double label_distance_ = 100
 
QColor color_
 
std::unique_ptr< IColorCodercolor_coder_ = nullptr
 

Detailed Description

Definition at line 57 of file QtHistogramWidget.hh.

Constructor & Destructor Documentation

◆ QtHistogramWidget()

ACG::QtWidgets::QtHistogramWidget::QtHistogramWidget ( QWidget *  parent)
explicit

Definition at line 51 of file QtHistogramWidget.cc.

Member Function Documentation

◆ getColor()

QColor ACG::QtWidgets::QtHistogramWidget::getColor ( double  val)
protected

Definition at line 168 of file QtHistogramWidget.cc.

◆ paintEvent()

void ACG::QtWidgets::QtHistogramWidget::paintEvent ( QPaintEvent *  event)
protected

Definition at line 68 of file QtHistogramWidget.cc.

◆ setColorCoder()

void ACG::QtWidgets::QtHistogramWidget::setColorCoder ( std::unique_ptr< IColorCoder color_coder)

Definition at line 63 of file QtHistogramWidget.cc.

◆ setHistogram()

void ACG::QtWidgets::QtHistogramWidget::setHistogram ( std::unique_ptr< Histogram histogram)

Definition at line 58 of file QtHistogramWidget.cc.

Member Data Documentation

◆ color_

QColor ACG::QtWidgets::QtHistogramWidget::color_
protected

Definition at line 77 of file QtHistogramWidget.hh.

◆ color_coder_

std::unique_ptr<IColorCoder> ACG::QtWidgets::QtHistogramWidget::color_coder_ = nullptr
protected

Definition at line 78 of file QtHistogramWidget.hh.

◆ histogram_

std::unique_ptr<Histogram> ACG::QtWidgets::QtHistogramWidget::histogram_ = nullptr
protected

Definition at line 74 of file QtHistogramWidget.hh.

◆ label_distance_

double ACG::QtWidgets::QtHistogramWidget::label_distance_ = 100
protected

Definition at line 75 of file QtHistogramWidget.hh.


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