QtPdWidgets  2.3.1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Pd::BarPrivate::Stack::Section Class Reference

#include <BarSection.h>

Inheritance diagram for Pd::BarPrivate::Stack::Section:
Inheritance graph
[legend]
Collaboration diagram for Pd::BarPrivate::Stack::Section:
Collaboration graph
[legend]

Public Member Functions

 Section (Stack *, QColor=Qt::black)
 
virtual ~Section ()
 Destructor. More...
 
void redrawEvent ()
 Update. More...
 
void clearData ()
 
bool hasData () const
 
double getValue () const
 
double getDragMin () const
 
double getDragMax () const
 
QColor getColor () const
 

Private Member Functions

void newValues (std::chrono::nanoseconds) override
 This virtual method is called if the value changes. More...
 
 Section ()
 

Private Attributes

Stack *const stack
 Parent stack. More...
 
bool dataPresent
 There is a value to display. More...
 
QColor color
 Bar color. More...
 
double barValue
 Current bar value. More...
 
double dragMinValue
 
double dragMaxValue
 
bool redraw
 True, if the section shall be redrawn on next redrawEvent(). More...
 

Constructor & Destructor Documentation

◆ Section() [1/2]

Pd::BarPrivate::Stack::Section::Section ( Stack ,
QColor  = Qt::black 
)

◆ ~Section()

BarPrivate::Stack::Section::~Section ( )
virtual

Destructor.

◆ Section() [2/2]

Pd::BarPrivate::Stack::Section::Section ( )
private

Member Function Documentation

◆ clearData()

void BarPrivate::Stack::Section::clearData ( )

◆ getColor()

QColor Pd::BarPrivate::Stack::Section::getColor ( ) const
inline

References color.

◆ getDragMax()

double Pd::BarPrivate::Stack::Section::getDragMax ( ) const
inline

References dragMaxValue.

◆ getDragMin()

double Pd::BarPrivate::Stack::Section::getDragMin ( ) const
inline

References dragMinValue.

◆ getValue()

double Pd::BarPrivate::Stack::Section::getValue ( ) const
inline

References barValue.

◆ hasData()

bool Pd::BarPrivate::Stack::Section::hasData ( ) const
inline

References dataPresent.

◆ newValues()

void BarPrivate::Stack::Section::newValues ( std::chrono::nanoseconds  )
overrideprivate

This virtual method is called if the value changes.

◆ redrawEvent()

void BarPrivate::Stack::Section::redrawEvent ( )

Update.

Member Data Documentation

◆ barValue

double Pd::BarPrivate::Stack::Section::barValue
private

Current bar value.

Referenced by getValue().

◆ color

QColor Pd::BarPrivate::Stack::Section::color
private

Bar color.

Referenced by getColor().

◆ dataPresent

bool Pd::BarPrivate::Stack::Section::dataPresent
private

There is a value to display.

Referenced by hasData().

◆ dragMaxValue

double Pd::BarPrivate::Stack::Section::dragMaxValue
private

Referenced by getDragMax().

◆ dragMinValue

double Pd::BarPrivate::Stack::Section::dragMinValue
private

Referenced by getDragMin().

◆ redraw

bool Pd::BarPrivate::Stack::Section::redraw
private

True, if the section shall be redrawn on next redrawEvent().

◆ stack

Stack* const Pd::BarPrivate::Stack::Section::stack
private

Parent stack.


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