CDPBaseRotationView Class
The Rotation View loads a form file and allows the user to rotate the view around its center. More...
Header: | #include <CDPBaseWidgets/CDPBaseRotationView.h> |
Properties
- rotation : double
- uiFileName : QString
Public Functions
CDPBaseRotationView(QWidget *parent = nullptr) | |
double | rotation() const |
void | setUiFileName(const QString &filename) |
QString | uiFileName() const |
Public Slots
void | setRotation(double angle) |
void | setValue1(double value) |
void | setValue2(double value) |
Detailed Description
The Rotation View loads a form file and allows the user to rotate the view around its center.
The form file (.ui) to show in the view is configured in the uiFileName property. Configuration of the widgets in the form must be done by opening that file in the Design mode.
The Rotation View is also a container widget. This means that we can add widgets on top of it and place them in a layout. These widgets will not rotate along with the view when the rotation is changed.
The above image shows the azimuth widget from the Open Bridge theme, demonstrated in Adding an Open Bridge Styled GUI to Automation System. It is created using the Rotation View with a meter widget on top. The ui file is sized to match the meter child widget and show inside the meter circle.
The form widget control properties, like the thruster fill value in the above example, can be routed to the control system as described in the Design Mode Manual.
Property Documentation
rotation : double
This property holds the rotation angle to rotate the provided ui file.
Access functions:
double | rotation() const |
void | setRotation(double angle) |
See also uiFileName.
uiFileName : QString
This property holds the path to the ui file to show and rotate in the view.
Access functions:
QString | uiFileName() const |
void | setUiFileName(const QString &filename) |
Get started with CDP Studio today
Let us help you take your great ideas and turn them into the products your customer will love.