![]() |
VR-Exchange 2.5 API Documentation
|
Widget which draws a line graphic where the data is progressively added over time. More...

Classes | |
| struct | Set |
Public Member Functions | |
| DtProgressiveLineGraph (int rangeMin, int rangeMax, bool autoScale, QWidget *parent) | |
| CTOR for creating the graph. | |
| virtual | ~DtProgressiveLineGraph () |
| DTOR for graph. | |
| void | addSet (int set, QPen pen, int initial, bool valueCentered=false) |
| Add a set with a color and initial value. | |
| void | insertValue (int set, double percent, int value) |
| Insert a value into the middle of the graph. | |
| virtual void | resetAllValues (int value) |
| Clear all sets and insert the initial value. | |
| virtual void | resetValues (int set, int value) |
| Clear the values and insert the initial value. | |
| virtual void | clearValues (int set) |
| Clear the values. | |
| virtual void | clearAllValues () |
| Clear all sets. | |
| virtual void | offsetPercentages (double percentOffset) |
| Offset the percentages of all the values. | |
| virtual void | offsetPercentages (int set, double percentOffset) |
| Offset the percentages of a set of values. | |
| virtual void | setRange (int min, int max) |
| Sets the minimum and maximum range of the points. | |
| virtual int | rangeMinimum () const |
| Get the Range minimum and maximum. | |
| virtual int | rangeMaximum () const |
| virtual bool | autoScale () const |
| Get whether auto scaling is used. | |
| virtual void | setAutoScale (bool value) |
| Set whether auto scaling is used. | |
| virtual void | setNegativeReflection (bool positive) |
| Set whether the scale is a reflect negative scale. | |
| virtual void | useBackgroundGradient (bool useIt) |
| Set if the background gradient is used. | |
| virtual bool | usesBackgroundGradient () const |
| Get if the background gradient is used. | |
| virtual void | drawAsVerticalLines (bool useVerticalLines) |
| Set whether vertical line samples are used instead of connected samples. | |
| virtual bool | usesVerticalLines () const |
| Get whether vertical line samples are used instead of connected samples. | |
| void | forceUpdate (bool widgetUpdate) |
| Force a redraw and optionally a widget update. | |
Protected Types | |
| typedef std::list< std::pair < double, int > > | PercentValueMap |
| typedef std::map< int, DtProgressiveLineGraph::Set * > | SetMap |
Protected Member Functions | |
| virtual void | resizeEvent (QResizeEvent *e) |
| Resize event needed to resize back buffer. | |
| virtual void | paintEvent (QPaintEvent *) |
| Draw the widget. | |
| virtual void | draw (QPainter &painter, const QRect &rect) |
| Draw the control. | |
| virtual void | paintBackground (QPainter &painter) |
| Paint background. | |
| virtual int | getSeparation () const |
| Get the line separation count. | |
| virtual void | paintLines (QPainter &, Set &set) |
| Function to draw the lines in the foreground color. | |
| virtual int | desiredRange () const |
| Get the desired Range. | |
| void | paintVerticalLines (PercentValueMap &set, QRectF svp, int rangeHeight, QPainter &painter, QPen pen, bool centered) |
| Draw the graph as vertical lines. | |
| void | paintConnectedLines (PercentValueMap &set, QRectF svp, int rangeHeight, QPainter &painter, QPen pen) |
| Draw the graph as a connected line. | |
| int | desiredMinimum () const |
| Get the desired minimum. | |
Protected Attributes | |
| int | myInitialMinimumRange |
| int | myInitialMaximumRange |
| int | myMinimumRange |
| int | myMaximumRange |
| bool | myAutoScale |
| bool | myActive |
| SetMap | mySets |
| QPixmap | myGradBack |
| QPixmap * | myLineBuffer |
| QPolygon * | myPointCache |
| bool | myUseCachedGraph |
| bool | myUseGradient |
| bool | myGraphNeedsUpdating |
| bool | myUseVerticalLines |
| bool | myNegativeReflection |
Widget which draws a line graphic where the data is progressively added over time.
This is a strait QT Widget which may be moved into other MAK Products, as such it is not in the MAKvrExchange namespace.
|
protected |
|
protected |
| DtProgressiveLineGraph::DtProgressiveLineGraph | ( | int | rangeMin, |
| int | rangeMax, | ||
| bool | autoScale, | ||
| QWidget * | parent | ||
| ) |
CTOR for creating the graph.
|
virtual |
DTOR for graph.
| void DtProgressiveLineGraph::addSet | ( | int | set, |
| QPen | pen, | ||
| int | initial, | ||
| bool | valueCentered = false |
||
| ) |
Add a set with a color and initial value.
|
virtual |
Get whether auto scaling is used.
Auto scale will change the range dynamically as points are added.
|
virtual |
Clear all sets.
|
virtual |
Clear the values.
|
protected |
Get the desired minimum.
|
protectedvirtual |
Get the desired Range.
|
protectedvirtual |
Draw the control.
|
virtual |
Set whether vertical line samples are used instead of connected samples.
| void DtProgressiveLineGraph::forceUpdate | ( | bool | widgetUpdate | ) |
Force a redraw and optionally a widget update.
|
protectedvirtual |
Get the line separation count.
| void DtProgressiveLineGraph::insertValue | ( | int | set, |
| double | percent, | ||
| int | value | ||
| ) |
Insert a value into the middle of the graph.
|
virtual |
Offset the percentages of all the values.
Any value with a negative percentage or a percentage > 100 will be dropped.
|
virtual |
Offset the percentages of a set of values.
Any value with a negative percentage or a percentage > 100 will be dropped.
|
protectedvirtual |
Paint background.
|
protected |
Draw the graph as a connected line.
|
protectedvirtual |
Draw the widget.
|
protectedvirtual |
Function to draw the lines in the foreground color.
|
protected |
Draw the graph as vertical lines.
|
virtual |
|
virtual |
Get the Range minimum and maximum.
|
virtual |
Clear all sets and insert the initial value.
|
virtual |
Clear the values and insert the initial value.
|
protectedvirtual |
Resize event needed to resize back buffer.
|
virtual |
Set whether auto scaling is used.
Auto scale will change the range dynamically as points are added.
|
virtual |
Set whether the scale is a reflect negative scale.
|
virtual |
Sets the minimum and maximum range of the points.
As points are scaled clipped to the min and max. when drawn.
|
virtual |
Set if the background gradient is used.
|
virtual |
Get if the background gradient is used.
|
virtual |
Get whether vertical line samples are used instead of connected samples.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |