![]() |
VR-Forces 5.0.3 Developer's Guide
|
A compass rose with a wind-direction arrow.

Public Types | |
| enum | BackGroundType { TICKS, ROSE } |
| enum | NeedleType { ARROW, FULLARROW, LINE } |
Public Slots | |
| void | setDirection (int degrees) |
| void | setDirection (double degrees) |
Signals | |
| void | directionChanged (int) |
| void | directionChanged (double) |
Public Member Functions | |
| DtWindDirectionDialWidget (QWidget *parent=NULL) | |
| virtual | ~DtWindDirectionDialWidget () |
| virtual void | setBackGround (BackGroundType type) |
| virtual BackGroundType | backGround () const |
| virtual void | setNeedle (NeedleType type) |
| virtual NeedleType | needle () const |
| int | direction () const |
| double | directionF () const |
Protected Slots | |
| void | onValueChanged (int val) |
Protected Member Functions | |
| virtual void | paintEvent (QPaintEvent *event) |
| virtual void | resizeEvent (QResizeEvent *event) |
| virtual void | drawCompass (QPainter &painter, QRectF &rect) |
| virtual void | drawCompassTick (QPainter &painter) |
| virtual void | drawHeadingNorth (QPainter &painter) |
| virtual void | drawDirection (QPainter &painter, QRectF &rect) |
| virtual void | drawNeedle (QPainter &painter) |
Protected Attributes | |
| BackGroundType | myBackGroundType |
| NeedleType | myNeedleType |
| double | myRemainder |
| QColor | myCompassTickColor |
| QColor | myCompassHandColor |
| QColor | myCompassNorthColor |
Properties | |
| QColor | CompassTickColor |
| QColor | CompassHandColor |
| QColor | CompassNorthColor |
Private Member Functions | |
| int | convert (int val) const |
| makVrv::DtWindDirectionDialWidget::DtWindDirectionDialWidget | ( | QWidget * | parent = NULL | ) |
CTOR.
| [in] | parent | is the parent to manage this widget. |
|
virtual |
virtual DTOR
|
virtual |
Set the background for the compass.
| [in] | type | is the type of background, default TICKS. |
|
virtual |
Get the background for the compass.
|
virtual |
Set the needle for the compass.
| [in] | type | is the type of needle, default ARROW. |
|
virtual |
Get the needle for the compass.
| int makVrv::DtWindDirectionDialWidget::direction | ( | ) | const |
Get the direction.
| double makVrv::DtWindDirectionDialWidget::directionF | ( | ) | const |
Get the direction as a double value.
|
signal |
Signal emitted when the direction changed.
|
signal |
Signal emitted when the direction changed.
|
slot |
Set the direction.
| [in] | degrees | is the new direction (wrapped to range 0-359). |
|
slot |
Set the direction as a double value.
| [in] | degrees | is the new direction (wrapped to range 0-359). |
|
protectedslot |
Convert the base class value to a direction (180 degree change).
|
protectedvirtual |
Override the paint event to draw the widget.
| [in] | event | is the current paint event. |
|
protectedvirtual |
Override the resize event to change how the widget is displayed.
| [in] | event | is the resize event event. |
|
protectedvirtual |
Utility function to draw the compass background.
| [in] | painter | is the painter to use for drawing. |
| [in] | rect | is the rectangular space to draw in. |
|
protectedvirtual |
Utility function to draw the compass tick.
| [in] | painter | is the painter to use for drawing. |
|
protectedvirtual |
Utility function to draw the letter N.
| [in] | painter | is the painter to use for drawing. |
|
protectedvirtual |
Utility function to draw the direction from.
| [in] | painter | is the painter to use for drawing. |
| [in] | rect | is the rectangular space to draw in. |
|
protectedvirtual |
Utility function to draw the needle.
| [in] | painter | is the painter to use for drawing. |
Utility to convert from base class value to direction and back.
| [in] | val | is value to convert. |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| QColor makVrv::DtWindDirectionDialWidget::CompassTickColor |
| QColor makVrv::DtWindDirectionDialWidget::CompassHandColor |
| QColor makVrv::DtWindDirectionDialWidget::CompassNorthColor |