• 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
  • Products
    • Automation Designer
    • HMI Designer
    • Maritime HMIs
  • Services
  • Use cases
  • Pricing
  • Try CDP

CDP Studio Documentation

  • GUI - CDP Widgets
  • CDPBaseRose

CDPBaseRose Class

The Rose Meter widget is a gauge with 2 needles and colored sectors for showing movement and danger zones. More...

Header: #include <CDPBaseRose>
Inherits: CDPBaseMeter2N
  • List of all members, including inherited members

Properties

  • cdp1CenterSecRouting : QString
  • cdp1NormalSecRouting : QString
  • cdp2CenterSecRouting : QString
  • cdp2ErrorSecRouting : QString
  • cdp2NormalSecRouting : QString
  • cdp2WarningHighSecRouting : QString
  • cdp2WarningSecRouting : QString
  • initSectorsFromAlarms : bool
  • 43 properties inherited from CDPBaseMeter2N
  • 52 properties inherited from CDPBaseMeter
  • 6 properties inherited from CDPBaseWidget

Public Functions

CDPBaseRose(QWidget *parent = 0)
QString centerSecRouting1()
QString centerSecRouting2()
QString errorSecRouting2()
QString normalSecRouting1()
QString normalSecRouting2()
bool sectorsFromAlarms()
void setCenterSecRouting1(QString routing)
void setCenterSecRouting2(QString routing)
void setErrorSecRouting2(QString routing)
void setNormalSecRouting1(QString routing)
void setNormalSecRouting2(QString routing)
void setSectorsFromAlarms(bool enabled = true)
void setWarningHighSecRouting2(QString routing)
void setWarningSecRouting2(QString routing)
QString warningHighSecRouting2()
QString warningSecRouting2()
  • 77 public functions inherited from CDPBaseMeter2N
  • 90 public functions inherited from CDPBaseMeter
  • 8 public functions inherited from CDPBaseWidget
  • 17 public functions inherited from CDPBaseCom
  • 4 public functions inherited from CDPBaseControlVisible

Additional Inherited Members

  • 18 public slots inherited from CDPBaseMeter2N
  • 25 public slots inherited from CDPBaseMeter
  • 10 public slots inherited from CDPBaseWidget
  • 1 signal inherited from CDPBaseWidget
  • 2 static public members inherited from CDPBaseCom
  • 14 protected functions inherited from CDPBaseMeter
  • 4 protected functions inherited from CDPBaseCom
  • 1 protected function inherited from CDPBaseControlVisible

Detailed Description

The Rose Meter widget is a gauge with 2 needles and colored sectors for showing movement and danger zones.

The Rose Meter is similar to the Meter 2 Needles, but has a different design and some additional routing properties for controlling the meter alarms as rose sectors (routing to CDP objects/properties).

The properties that targets the main/inner sectors are prefixed with cdp2. The inner arc of the sector is defined as Normal and is named accordingly in all related properties. Warning, WarningHigh and Error specifies additional arcs that are added to each side of the Normal sector (in the order they were just listed).

The properties prefixed with cdp1 can be used for controlling an optional/additional sector. There are only routing properties for controlling the normal arc and its center. In most applications this arc will not be needed and is usually disabled by default.

The following table explains the properties that are the most important for operating the Rose sectors.

NameDescription
cdp1CenterSecRoutingRouting to the CDP object/property that controls the center of the the sector provided in cdp1NormalSecRouting.
cdp1NormalSecRoutingRouting to the CDP object/property that controls the arc of the optional second sector. The routed object must provide the number of degrees the arc is supposed to cover. For the arc to show, the property alarmShow must be set to true and a color must be set in the NormalColor property.
cdp2CenterSecRoutingRouting to the CDP object/property that controls the center of the main sectors (routing properties prefixed with cdp2).
cdp2ErrorSecRoutingRouting to the CDP object/property that controls the number of degrees to add for sector Error. The arc will be added on both sides of the Normal sector, after Warning and WarningHigh. For the arc to show, the property alarmShow2 must be set to true and a color must be set in ErrorColor2. It is also a requirement that both Warning and WarningHigh sectors have degrees larger than zero.
cdp2NormalSecRoutingRouting to the CDP object/property that controls the arc of the normal/inner sector. The routed object must provide the number of degrees the arc is supposed to cover. For the arc to show, the property alarmShow2 must be set to true and a color must be set in NormalColor2. Note that the other sections of the sector is provided in degrees to add on each side of the current sector.
cdp2WarningHighSecRoutingRouting to the CDP object/property that controls the number of degrees to add for sector WarningHigh. The arc will be added on both sides of the Normal sector, after Warning. For the arc to show, the property alarmShow2 must be set to true and a color must be set in WarningColor2. It is also a requirement that the Warning sector has degrees larger than zero.
cdp2WarningSecRoutingRouting to the CDP object/property that controls the number of degrees to add for sector Warning. The arc will be added on both sides of the Normal sector. For the arc to show, the property alarmShow2 must be set to true and a color must be set in WarningColor2.
initSectorsFromAlarmsCalculate initial rose sectors using alarm min/max values. The property is usually not needed.

Property Documentation

cdp1CenterSecRouting : QString

This property holds the routing to the CDP object/property that controls the center of the sector provided in cdp1NormalSecRouting.

Access functions:

QString centerSecRouting1()
void setCenterSecRouting1(QString routing)

See also cdp1NormalSecRouting.

cdp1NormalSecRouting : QString

This property holds the routing to the CDP object/property that controls the arc of the optional second sector. The routed object must provide the number of degrees the arc is supposed to cover. For the arc to show, the property alarmShow must be set to true and a color must be set in the NormalColor property.

Access functions:

QString normalSecRouting1()
void setNormalSecRouting1(QString routing)

See also alarmShow and NormalColor.

cdp2CenterSecRouting : QString

This property holds the routing to the CDP object/property that controls the center of the main sectors (routing properties prefixed with cdp2).

Access functions:

QString centerSecRouting2()
void setCenterSecRouting2(QString routing)

See also cdp2NormalSecRouting.

cdp2ErrorSecRouting : QString

This property holds the routing to the CDP object/property that controls number of degrees to add for sector Error. The arc will be added on both sides of the Normal sector, after Warning and WarningHigh. For the arc to show, the property alarmShow2 must be set to true and a color must be set in ErrorColor2. It is also a requirement that both Warning and WarningHigh sectors have degrees larger than zero.

Access functions:

QString errorSecRouting2()
void setErrorSecRouting2(QString routing)

See also alarmShow2 and ErrorColor2.

cdp2NormalSecRouting : QString

This property holds the routing to the CDP object/property that controls the arc of the normal/inner sector. The routed object must provide the number of degrees the arc is supposed to cover. For the arc to show, the property alarmShow2 must be set to true and a color must be set in NormalColor2. Note that the other sections of the sector is provided in degrees to add on each side of the current sector.

Access functions:

QString normalSecRouting2()
void setNormalSecRouting2(QString routing)

See also alarmShow2 and NormalColor2.

cdp2WarningHighSecRouting : QString

This property holds the routing to the CDP object/property that controls number of degrees to add for sector WarningHigh. The arc will be added on both sides of the Normal sector, after Warning. For the arc to show, the property alarmShow2 must be set to true and a color must be set in WarningHighColor2. It is also a requirement that the Warning sector has degrees larger than zero.

Access functions:

QString warningHighSecRouting2()
void setWarningHighSecRouting2(QString routing)

See also alarmShow2 and WarningHighColor2.

cdp2WarningSecRouting : QString

This property holds the routing to the CDP object/property that controls number of degrees to add for sector Warning. The arc will be added on both sides of the Normal sector. For the arc to show, the property alarmShow2 must be set to true and a color must be set in WarningColor2.

Access functions:

QString warningSecRouting2()
void setWarningSecRouting2(QString routing)

See also alarmShow2 and WarningColor2.

initSectorsFromAlarms : bool

This property holds whether or not to calculate initial rose sectors using alarm min/max values. The property is usually not needed.

Access functions:

bool sectorsFromAlarms()
void setSectorsFromAlarms(bool enabled = true)

Member Function Documentation

CDPBaseRose::CDPBaseRose(QWidget *parent = 0)

Default constructs an instance of CDPBaseRose.

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 2025 CDP Technologies. Privacy and cookie policy.

Return to top