![]() |
MAK Data Logger API Documentation for HLA
|
A widget which can be zoomed. More...
Inheritance diagram for MAKLogger::DtLgrZoomableWidget:
Collaboration diagram for MAKLogger::DtLgrZoomableWidget:Public Slots | |
| virtual void | setOffsets (float left, float right) |
| virtual void | testForUpdate (DtLgrGuiModel &model) |
Signals | |
| void | offsetsChanged (float left, float right) |
Public Member Functions | |
| DtLgrZoomableWidget (QWidget *parent) | |
| CTOR. More... | |
| virtual | ~DtLgrZoomableWidget () |
| DTOR. More... | |
| QRectF | scaledViewport (QRect orignalViewport, QPoint margins) const |
| Scale a viewport using the scaled settings and the provided margins. More... | |
| void | drawCursor (QPainter &painter, double firstVisibleTime, double lastVisibleTime, double cursorTime, int xOffset, bool active) |
| Draw A cursor. More... | |
| QRect | cursorBounds (double firstVisibleTime, double lastVisibleTime, double cursorTime, int xOffset) |
| Get the cursor bounds. More... | |
| double | firstVisibleTime (double firstTime, double lastTime) const |
| Get the first visible time, based upon the scale. More... | |
| double | firstVisibleTime (DtLgrGuiModel &model) const |
| Get the first visible time via the models display time. More... | |
| double | lastVisibleTime (double firstTime, double lastTime) const |
| Get the last visible time, based upon the scale. More... | |
| double | lastVisibleTime (DtLgrGuiModel &model) const |
| Get the last visible time via the models display time. More... | |
| float | leftOffset () const |
| Get the left offset (percent 0-100.0), inline for performance reasons. More... | |
| float | rightOffset () const |
| Get the right offset (percent 0-100.0), inline for performance reasons. More... | |
| float | horizontalMargin () const |
| get the horizontal margin. More... | |
| void | setHorizontalMargin (float margin) |
| set the horizontal margin. More... | |
| void | setDrawTimes (DtLgrGuiModel &model) |
Protected Attributes | |
| float | myLeftOffset |
| float | myRightOffset |
| float | myHorizontalMargin |
| double | myDrawnFirstVisibleTime |
| double | myDrawnLastVisibleTime |
| double | myDrawnCurrentVisibleTime |
A widget which can be zoomed.
| MAKLogger::DtLgrZoomableWidget::DtLgrZoomableWidget | ( | QWidget * | parent | ) |
CTOR.
|
virtual |
DTOR.
| QRect MAKLogger::DtLgrZoomableWidget::cursorBounds | ( | double | firstVisibleTime, |
| double | lastVisibleTime, | ||
| double | cursorTime, | ||
| int | xOffset | ||
| ) |
Get the cursor bounds.
| void MAKLogger::DtLgrZoomableWidget::drawCursor | ( | QPainter & | painter, |
| double | firstVisibleTime, | ||
| double | lastVisibleTime, | ||
| double | cursorTime, | ||
| int | xOffset, | ||
| bool | active | ||
| ) |
Draw A cursor.
| double MAKLogger::DtLgrZoomableWidget::firstVisibleTime | ( | double | firstTime, |
| double | lastTime | ||
| ) | const |
Get the first visible time, based upon the scale.
| double MAKLogger::DtLgrZoomableWidget::firstVisibleTime | ( | DtLgrGuiModel & | model | ) | const |
Get the first visible time via the models display time.
| float MAKLogger::DtLgrZoomableWidget::horizontalMargin | ( | ) | const |
get the horizontal margin.
| double MAKLogger::DtLgrZoomableWidget::lastVisibleTime | ( | double | firstTime, |
| double | lastTime | ||
| ) | const |
Get the last visible time, based upon the scale.
| double MAKLogger::DtLgrZoomableWidget::lastVisibleTime | ( | DtLgrGuiModel & | model | ) | const |
Get the last visible time via the models display time.
|
inline |
Get the left offset (percent 0-100.0), inline for performance reasons.
|
signal |
|
inline |
Get the right offset (percent 0-100.0), inline for performance reasons.
| QRectF MAKLogger::DtLgrZoomableWidget::scaledViewport | ( | QRect | orignalViewport, |
| QPoint | margins | ||
| ) | const |
Scale a viewport using the scaled settings and the provided margins.
| void MAKLogger::DtLgrZoomableWidget::setDrawTimes | ( | DtLgrGuiModel & | model | ) |
| void MAKLogger::DtLgrZoomableWidget::setHorizontalMargin | ( | float | margin | ) |
set the horizontal margin.
|
virtualslot |
Reimplemented in MAKLogger::DtProgressiveLineGraph.
|
virtualslot |
Reimplemented in MAKLogger::DtProgressiveLineGraph.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |