CDPBaseRose Class
The Rose Meter widget is a gauge with 2 needles and colored sectors for showing movement and danger zones. More...
Header: | #include <CDPBaseWidgets/CDPBaseRose.h> |
Inherits: | CDPBaseMeter2N |
Properties
|
|
- 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.
Name | Description |
---|---|
cdp1CenterSecRouting | Routing to the CDP object/property that controls the center of the the sector provided in cdp1NormalSecRouting. |
cdp1NormalSecRouting | 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. |
cdp2CenterSecRouting | Routing to the CDP object/property that controls the center of the main sectors (routing properties prefixed with cdp2). |
cdp2ErrorSecRouting | Routing 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. |
cdp2NormalSecRouting | 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. |
cdp2WarningHighSecRouting | Routing 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. |
cdp2WarningSecRouting | Routing 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. |
initSectorsFromAlarms | Calculate 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) |
Get started with CDP Studio today
Let us help you take your great ideas and turn them into the products your customer will love.