QtPdWidgets
2.3.1
|
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 |
![]() | |
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 void | setRedrawInterval (int) |
Sets the redraw interval. More... | |
static const QTimer * | getTimer () |
Returns the redrawTimer. More... | |
|
inline |
References Pd::Graph::Impl::timeRange.
|
inline |
References Pd::Graph::Impl::parent.
Referenced by Pd::Graph::Impl::notifyScaleWidthChange(), and Pd::Graph::Impl::updateBackground().
|
inline |
References Pd::Graph::Impl::autoScaleWidth, Pd::Graph::Impl::findSiblings(), and Pd::Graph::impl.
Referenced by Pd::Graph::Impl::updateBackground().
|
inline |
Retranslate the widget.
References Pd::Graph::Impl::parent, Pd::Graph::Impl::runAction, and Pd::Graph::Impl::stopAction.
|
inline |
Calculated the widget's layout.
References Pd::Graph::Impl::autoScaleWidth, Pd::Graph::Impl::backgroundPixmap, Pd::TimeScale::draw(), Pd::Scale::draw(), Pd::Graph::Impl::findSiblings(), Pd::Graph::Impl::foregroundColor, Pd::Graph::Impl::foregroundFont, Pd::TimeScale::getLength(), Pd::TimeScale::getOuterLength(), Pd::Scale::getOuterLength(), Pd::Graph::Impl::graphRect, Pd::Graph::Impl::gridColor, Pd::Graph::impl, Pd::Graph::Impl::layers, Pd::Graph::Impl::notifyScaleWidthChange(), Pd::Graph::Impl::parent, Pd::Graph::Impl::scaleWidth, Pd::TimeScale::setLength(), Pd::Scale::setLength(), Pd::Graph::Impl::timeScale, and Pd::Graph::Impl::valueScale.
Referenced by Pd::Graph::Impl::updateTimeScale().
|
inline |
Calculates the range of the timeScale.
References Pd::Graph::Impl::mode, Pd::TimeScale::setMax(), Pd::TimeScale::setMin(), Pd::Graph::Impl::timeRange, Pd::Graph::Impl::timeScale, Pd::Graph::Impl::triggerPosition, and Pd::Graph::Impl::updateBackground().
bool Pd::Graph::Impl::autoScaleWidth |
Align time scale among sibling graphs.
Referenced by Pd::Graph::Impl::notifyScaleWidthChange(), and Pd::Graph::Impl::updateBackground().
QPixmap Pd::Graph::Impl::backgroundPixmap |
Pixmap that stores the background.
Referenced by Pd::Graph::Impl::updateBackground().
Mode Pd::Graph::Impl::effectiveMode |
If mode is Trigger, effective mode can be Roll anyway (if triggerTimeout is set).
QColor Pd::Graph::Impl::foregroundColor |
Foreground color.
Referenced by Pd::Graph::Impl::updateBackground().
QFont Pd::Graph::Impl::foregroundFont |
Foreground font.
Referenced by Pd::Graph::Impl::updateBackground().
QRect Pd::Graph::Impl::graphRect |
Area, where the data are displayed.
Referenced by Pd::Graph::Impl::updateBackground().
QColor Pd::Graph::Impl::gridColor |
Color of the scale grids.
Referenced by Pd::Graph::Impl::updateBackground().
QList<Layer *> Pd::Graph::Impl::layers |
List of data layers.
Referenced by Pd::Graph::Impl::updateBackground().
double Pd::Graph::Impl::manualTriggerLevel |
Manual trigger level.
This is used, if triggerLevelMode is #ManualLevel.
Mode Pd::Graph::Impl::mode |
Current #Mode.
Referenced by Pd::Graph::Impl::updateTimeScale().
Graph* const Pd::Graph::Impl::parent |
bool Pd::Graph::Impl::redraw |
true, if the widget shall be redrawn on next redrawEvent().
QAction Pd::Graph::Impl::runAction |
Action for setting state to Run.
Referenced by Pd::Graph::Impl::retranslate().
int Pd::Graph::Impl::scaleWidth |
Width of the value scale.
Referenced by Pd::Graph::Impl::updateBackground().
State Pd::Graph::Impl::state |
Current graph state.
QAction Pd::Graph::Impl::stopAction |
Action for setting state to Stop.
Referenced by Pd::Graph::Impl::retranslate().
QPixmap Pd::Graph::Impl::stopPixmap |
Icon diplayed if state is Stop.
double Pd::Graph::Impl::timeRange |
Time range.
Referenced by Pd::Graph::Impl::Impl(), and Pd::Graph::Impl::updateTimeScale().
std::chrono::nanoseconds Pd::Graph::Impl::timeRangeNs |
Time range.
TimeScale Pd::Graph::Impl::timeScale |
Time scale.
Referenced by Pd::Graph::Impl::updateBackground(), and Pd::Graph::Impl::updateTimeScale().
TriggerDetector Pd::Graph::Impl::trigger |
TriggerLevelMode Pd::Graph::Impl::triggerLevelMode |
The current #TriggerLevelMode.
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().
double Pd::Graph::Impl::triggerTimeout |
If no trigger condition has been detected within this time, the graph will display data like in Roll mode.
Scale Pd::Graph::Impl::valueScale |
Value scale.
Referenced by Pd::Graph::Impl::updateBackground().