• Skip to main content
  • Skip to header right navigation
  • Skip to site footer
CDP Studio logo

CDP Studio

The no-code and full-code software development tool for distributed control systems and HMI

  • Doc
  • Why CDP
    • Software developers
    • Automation engineers
    • Managers
  • Product
    • Design UI
    • Develop
    • Analyze and test
    • Deploy
    • Framework and toolbox
    • Compatibility
  • Services
  • Use cases
  • Pricing
  • Try CDP

CDP Studio Documentation

  • GUI - CDP Widgets
  • CDPBaseRotationView

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>
  • List of all members, including inherited members

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)

Member Function Documentation

CDPBaseRotationView::CDPBaseRotationView(QWidget *parent = nullptr)

Default constructs an instance of CDPBaseRotationView.

[slot] void CDPBaseRotationView::setValue1(double value)

[slot] void CDPBaseRotationView::setValue2(double value)

The content of this document is confidential information not to be published without the consent of CDP Technologies AS.

CDP Technologies AS, www.cdpstudio.com

Get started with CDP Studio today

Let us help you take your great ideas and turn them into the products your customer will love.

Try CDP Studio for free
Why CDP Studio?

CDP Technologies AS
Hundsværgata 8,
P.O. Box 144
6001 Ålesund, Norway

Tel: +47 990 80 900
E-mail: info@cdptech.com

Company

About CDP

Contact us

Services

Partners

Blog

Developers

Get started

User manuals

Support

Document download

Release notes

My account

Follow CDP

  • LinkedIn
  • YouTube
  • GitHub

© Copyright 2024 CDP Technologies. Privacy and cookie policy.

Return to top