QtPdWidgets  2.3.1
Public Member Functions | Public Attributes | List of all members
Pd::Graph::Impl Struct Reference
Inheritance diagram for Pd::Graph::Impl:
Inheritance graph
[legend]
Collaboration diagram for Pd::Graph::Impl:
Collaboration graph
[legend]

Public Member Functions

 Impl (Graph *parent)
 
void updateBackground ()
 Calculated the widget's layout. More...
 
void updateTimeScale ()
 Calculates the range of the timeScale. More...
 
void retranslate ()
 Retranslate the widget. More...
 
void notifyScaleWidthChange ()
 
QList< Graph * > findSiblings () const
 
- Public Member Functions inherited from Pd::Widget
 Widget ()
 Constructor. More...
 
virtual ~Widget ()
 Destructor. More...
 

Public Attributes

Graph *const parent
 
Mode mode
 Current #Mode. More...
 
Mode effectiveMode
 If mode is Trigger, effective mode can be Roll anyway (if triggerTimeout is set). More...
 
double timeRange
 Time range. More...
 
std::chrono::nanoseconds timeRangeNs
 Time range. More...
 
TimeScale timeScale
 Time scale. More...
 
Scale valueScale
 Value scale. More...
 
TriggerLevelMode triggerLevelMode
 The current #TriggerLevelMode. More...
 
double manualTriggerLevel
 Manual trigger level. More...
 
double triggerPosition
 Horizontal trigger position. More...
 
double triggerTimeout
 If no trigger condition has been detected within this time, the graph will display data like in Roll mode. More...
 
QColor gridColor
 Color of the scale grids. More...
 
bool autoScaleWidth
 Align time scale among sibling graphs. More...
 
State state
 Current graph state. More...
 
QPixmap stopPixmap
 Icon diplayed if state is Stop. More...
 
QAction runAction
 Action for setting state to Run. More...
 
QAction stopAction
 Action for setting state to Stop. More...
 
int scaleWidth
 Width of the value scale. More...
 
QList< Layer * > layers
 List of data layers. More...
 
TriggerDetector trigger
 
QPixmap backgroundPixmap
 Pixmap that stores the background. More...
 
QColor foregroundColor
 Foreground color. More...
 
QFont foregroundFont
 Foreground font. More...
 
QRect graphRect
 Area, where the data are displayed. More...
 
bool redraw
 true, if the widget shall be redrawn on next redrawEvent(). More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Pd::Widget
static void setRedrawInterval (int)
 Sets the redraw interval. More...
 
static const QTimer * getTimer ()
 Returns the redrawTimer. More...
 

Constructor & Destructor Documentation

◆ Impl()

Pd::Graph::Impl::Impl ( Graph parent)
inline

Member Function Documentation

◆ findSiblings()

QList<Graph *> Pd::Graph::Impl::findSiblings ( ) const
inline

◆ notifyScaleWidthChange()

void Pd::Graph::Impl::notifyScaleWidthChange ( )
inline

◆ retranslate()

void Pd::Graph::Impl::retranslate ( )
inline

◆ updateBackground()

void Pd::Graph::Impl::updateBackground ( )
inline

◆ updateTimeScale()

void Pd::Graph::Impl::updateTimeScale ( )
inline

Member Data Documentation

◆ autoScaleWidth

bool Pd::Graph::Impl::autoScaleWidth

Align time scale among sibling graphs.

Referenced by Pd::Graph::Impl::notifyScaleWidthChange(), and Pd::Graph::Impl::updateBackground().

◆ backgroundPixmap

QPixmap Pd::Graph::Impl::backgroundPixmap

Pixmap that stores the background.

Referenced by Pd::Graph::Impl::updateBackground().

◆ effectiveMode

Mode Pd::Graph::Impl::effectiveMode

If mode is Trigger, effective mode can be Roll anyway (if triggerTimeout is set).

◆ foregroundColor

QColor Pd::Graph::Impl::foregroundColor

Foreground color.

Referenced by Pd::Graph::Impl::updateBackground().

◆ foregroundFont

QFont Pd::Graph::Impl::foregroundFont

Foreground font.

Referenced by Pd::Graph::Impl::updateBackground().

◆ graphRect

QRect Pd::Graph::Impl::graphRect

Area, where the data are displayed.

Referenced by Pd::Graph::Impl::updateBackground().

◆ gridColor

QColor Pd::Graph::Impl::gridColor

Color of the scale grids.

Referenced by Pd::Graph::Impl::updateBackground().

◆ layers

QList<Layer *> Pd::Graph::Impl::layers

List of data layers.

Referenced by Pd::Graph::Impl::updateBackground().

◆ manualTriggerLevel

double Pd::Graph::Impl::manualTriggerLevel

Manual trigger level.

This is used, if triggerLevelMode is #ManualLevel.

◆ mode

Mode Pd::Graph::Impl::mode

Current #Mode.

Referenced by Pd::Graph::Impl::updateTimeScale().

◆ parent

Graph* const Pd::Graph::Impl::parent

◆ redraw

bool Pd::Graph::Impl::redraw

true, if the widget shall be redrawn on next redrawEvent().

◆ runAction

QAction Pd::Graph::Impl::runAction

Action for setting state to Run.

Referenced by Pd::Graph::Impl::retranslate().

◆ scaleWidth

int Pd::Graph::Impl::scaleWidth

Width of the value scale.

Referenced by Pd::Graph::Impl::updateBackground().

◆ state

State Pd::Graph::Impl::state

Current graph state.

◆ stopAction

QAction Pd::Graph::Impl::stopAction

Action for setting state to Stop.

Referenced by Pd::Graph::Impl::retranslate().

◆ stopPixmap

QPixmap Pd::Graph::Impl::stopPixmap

Icon diplayed if state is Stop.

◆ timeRange

double Pd::Graph::Impl::timeRange

◆ timeRangeNs

std::chrono::nanoseconds Pd::Graph::Impl::timeRangeNs

Time range.

◆ timeScale

TimeScale Pd::Graph::Impl::timeScale

◆ trigger

TriggerDetector Pd::Graph::Impl::trigger

◆ triggerLevelMode

TriggerLevelMode Pd::Graph::Impl::triggerLevelMode

The current #TriggerLevelMode.

◆ triggerPosition

double Pd::Graph::Impl::triggerPosition

Horizontal trigger position.

In #Trigger mode, the data that caused the trigger event will be displayed on the horizontal position determined by this value. It can range from 0 (left) to 1 (right).

Referenced by Pd::Graph::Impl::updateTimeScale().

◆ triggerTimeout

double Pd::Graph::Impl::triggerTimeout

If no trigger condition has been detected within this time, the graph will display data like in Roll mode.

◆ valueScale

Scale Pd::Graph::Impl::valueScale

Value scale.

Referenced by Pd::Graph::Impl::updateBackground().


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