14 #include <QtWidgets/QDial>
30 Q_PROPERTY(QColor CompassTickColor MEMBER myCompassTickColor USER
true)
31 Q_PROPERTY(QColor CompassHandColor MEMBER myCompassHandColor USER true)
32 Q_PROPERTY(QColor CompassNorthColor MEMBER myCompassNorthColor USER true)
57 virtual void setBackGround(BackGroundType type);
61 virtual BackGroundType backGround()
const;
65 virtual void setNeedle(NeedleType type);
69 virtual NeedleType needle()
const;
74 int direction()
const;
79 double directionF()
const;
83 void directionChanged(
int);
86 void directionChanged(
double);
92 void setDirection(
int degrees);
97 void setDirection(
double degrees);
102 void onValueChanged(
int val);
107 virtual void paintEvent(QPaintEvent* event);
111 virtual void resizeEvent(QResizeEvent* event);
116 virtual void drawCompass(QPainter& painter, QRectF& rect);
120 virtual void drawCompassTick(QPainter& painter);
124 virtual void drawHeadingNorth(QPainter& painter);
129 virtual void drawDirection(QPainter& painter, QRectF& rect);
133 virtual void drawNeedle(QPainter& painter);
141 int convert(
int val)
const;
#define DT_DLL_VRVCOREQT
Definition: vrvCoreQt.h:20
Contains DLL export macros.