CDPBaseMeter2N Class
The Meter 2 Needles widget has 2 needles on one meter. It can either be used to show a 2nd value on the same scale or you can separate the needles and have two different scales. More...
Header: | #include <CDPBaseWidgets/CDPBaseMeter2N.h> |
Inherits: | CDPBaseMeter |
Inherited By: | CDPBaseClock, CDPBaseMeter2N2B, CDPBaseMeter3N, and CDPBaseRose |
Properties
|
|
- 52 properties inherited from CDPBaseMeter
- 6 properties inherited from CDPBaseWidget
Public Functions
CDPBaseMeter2N(QWidget *parent = 0, bool bSetMeterType = false) | |
bool | alarmSectorLimit2() |
QColor | errorColor2() |
QColor | fillColor2() |
bool | fillEnabled2() |
double | fillOffset2() |
double | fillStartValue2() |
double | fillWidth2() |
CDPBaseTickMarks::NumPrecision | getPrecisionMethod2() |
int | majorTicks2() |
int | majorTickLength2() |
int | majorTickWidth2() |
double | maxValue2() |
double | minValue2() |
int | minorTicks2() |
int | minorTickLength2() |
int | minorTickWidth2() |
virtual int | needle2Style() |
virtual bool | needleEnabled2() |
QColor | normalColor2() |
QFont | numFont2() |
int | numOffset2() |
QString | numPostfix2() |
bool | numShow2() |
int | precision2() |
QString | routing2() |
double | scalingFactor2() |
void | setAlarmSectorLimit2(bool enable) |
void | setErrorColor2(QColor value) |
void | setFillColor2(const QColor &color) |
void | setFillEnabled2(bool enable) |
void | setFillOffset2(double offset) |
void | setFillStartValue2(double value) |
void | setFillWidth2(double width) |
void | setMajorTicks2(int value) |
void | setMajorTickLength2(int value) |
void | setMajorTickWidth2(int value) |
void | setMinorTicks2(int value) |
void | setMinorTickLength2(int value) |
void | setMinorTickWidth2(int value) |
virtual void | setNeedleEnabled2(bool enabled) |
void | setNormalColor2(QColor value) |
void | setNumFont2(QFont value) |
void | setNumOffset2(int value) |
void | setNumPostfix2(QString postfix) |
void | setNumShow2(bool show) |
void | setPrecision2(int value) |
void | setPrecisionMethod2(CDPBaseTickMarks::NumPrecision value) |
void | setRouting2(QString routing) |
void | setScalingFactor2(double value) |
void | setShowAlarms2(bool show) |
void | setShowTicks2(bool show) |
void | setTickColor2(QColor value) |
void | setTickOffset2(double value) |
void | setUnitCircle2(bool show) |
void | setUnitCircleShowMin2(bool show) |
void | setValue2(double value) |
void | setWarningColor2(QColor value) |
void | setWarningHighColor2(QColor value) |
bool | showAlarms2() |
bool | showTicks2() |
QColor | tickColor2() |
double | tickOffset2() |
bool | unitCircle2() |
bool | unitCircleShowMin2() |
double | value2() |
double | valueMaxError2() |
double | valueMaxNormal2() |
double | valueMaxWarning2() |
double | valueMaxWarningHigh2() |
double | valueMinError2() |
double | valueMinNormal2() |
double | valueMinWarning2() |
double | valueMinWarningHigh2() |
QColor | warningColor2() |
QColor | warningHighColor2() |
Reimplemented Public Functions
virtual void | setOfflineValue(double value) override |
virtual void | setOfflineValueEnabled(bool enabled) override |
- 90 public functions inherited from CDPBaseMeter
- 8 public functions inherited from CDPBaseWidget
- 17 public functions inherited from CDPBaseCom
- 4 public functions inherited from CDPBaseControlVisible
Public Slots
void | setAlarmSectorCenter2(double value) |
void | setAlarmSectorError2(double value) |
void | setAlarmSectorNormal2(double value) |
void | setAlarmSectorWarning2(double value) |
void | setAlarmSectorWarningHigh2(double value) |
void | setMaxValue2(double value) |
void | setMinValue2(double value) |
void | setNeedle2Style(int style) |
void | setValueMaxError2(double value) |
void | setValueMaxNormal2(double value) |
void | setValueMaxWarning2(double value) |
void | setValueMaxWarningHigh2(double value) |
void | setValueMinError2(double value) |
void | setValueMinNormal2(double value) |
void | setValueMinWarning2(double value) |
void | setValueMinWarningHigh2(double value) |
void | setValueNeedle1(double value) |
void | setValueNeedle2(double value) |
- 25 public slots inherited from CDPBaseMeter
- 10 public slots inherited from CDPBaseWidget
Additional Inherited Members
- 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 Meter 2 Needles widget has 2 needles on one meter. It can either be used to show a 2nd value on the same scale or you can separate the needles and have two different scales.
The widget svg file requires a 2nd layer to specify the layout of the 2nd needle (MaxValue, MinValue, NeedleCenter and rotation).
The CDPBaseMeter2N widget inherits all the properties from the “Meter” widget, and gets a second set of properties for the 2nd needle. The 2nd set of properties contains all the traits that pertain to the 2nd needle with it's own set of tick marks, alarms and scaling.
Styling by SVG
The svg structure of meters with multiple needles are similar to that of the base meter with only one needle. In addition to 'Layer1' we now add one layer for each needle we want in the meter. The layer for the second needle is named 'Layer2', the third needle is added in 'Layer3' and so on. Note that the cdpTextPrefix and cdpTextSuffix elements can only exist in one layer (can be added in several layers but only one will be used).
svg ├─── Layer1 │ └─── ... └─── Layer2 └─── ...
Property Documentation
ErrorColor2 : QColor
Access functions:
QColor | errorColor2() |
void | setErrorColor2(QColor value) |
NormalColor2 : QColor
Access functions:
QColor | normalColor2() |
void | setNormalColor2(QColor value) |
WarningColor2 : QColor
Access functions:
QColor | warningColor2() |
void | setWarningColor2(QColor value) |
WarningHighColor2 : QColor
Access functions:
QColor | warningHighColor2() |
void | setWarningHighColor2(QColor value) |
alarmSectorLimit2 : bool
Access functions:
bool | alarmSectorLimit2() |
void | setAlarmSectorLimit2(bool enable) |
alarmShow2 : bool
Access functions:
bool | showAlarms2() |
void | setShowAlarms2(bool show) |
cdpRouting2 : QString
Access functions:
QString | routing2() |
void | setRouting2(QString routing) |
cdpScaling2 : double
Access functions:
double | scalingFactor2() |
void | setScalingFactor2(double value) |
fill2 : bool
Access functions:
bool | fillEnabled2() |
void | setFillEnabled2(bool enable) |
fillColor2 : QColor
Access functions:
QColor | fillColor2() |
void | setFillColor2(const QColor &color) |
fillOffset2 : double
Access functions:
double | fillOffset2() |
void | setFillOffset2(double offset) |
fillStartValue2 : double
Access functions:
double | fillStartValue2() |
void | setFillStartValue2(double value) |
fillWidth2 : double
Access functions:
double | fillWidth2() |
void | setFillWidth2(double width) |
maxValue2 : double
Access functions:
double | maxValue2() |
void | setMaxValue2(double value) |
minValue2 : double
Access functions:
double | minValue2() |
void | setMinValue2(double value) |
needle2 : bool
Access functions:
virtual bool | needleEnabled2() |
virtual void | setNeedleEnabled2(bool enabled) |
needle2Style : int
Access functions:
virtual int | needle2Style() |
void | setNeedle2Style(int style) |
numFont2 : QFont
Access functions:
QFont | numFont2() |
void | setNumFont2(QFont value) |
numOffset2 : int
Access functions:
int | numOffset2() |
void | setNumOffset2(int value) |
numPostfix2 : QString
Access functions:
QString | numPostfix2() |
void | setNumPostfix2(QString postfix) |
numPrecision2 : int
Access functions:
int | precision2() |
void | setPrecision2(int value) |
numPrecisionMethod2 : CDPBaseTickMarks::NumPrecision
Access functions:
CDPBaseTickMarks::NumPrecision | getPrecisionMethod2() |
void | setPrecisionMethod2(CDPBaseTickMarks::NumPrecision value) |
numShow2 : bool
Access functions:
bool | numShow2() |
void | setNumShow2(bool show) |
ticksColor2 : QColor
Access functions:
QColor | tickColor2() |
void | setTickColor2(QColor value) |
ticksMajor2 : int
Access functions:
int | majorTicks2() |
void | setMajorTicks2(int value) |
ticksMajorLength2 : int
Access functions:
int | majorTickLength2() |
void | setMajorTickLength2(int value) |
ticksMajorWidth2 : int
Access functions:
int | majorTickWidth2() |
void | setMajorTickWidth2(int value) |
ticksMinor2 : int
Access functions:
int | minorTicks2() |
void | setMinorTicks2(int value) |
ticksMinorLength2 : int
Access functions:
int | minorTickLength2() |
void | setMinorTickLength2(int value) |
ticksMinorWidth2 : int
Access functions:
int | minorTickWidth2() |
void | setMinorTickWidth2(int value) |
ticksOffset2 : double
Access functions:
double | tickOffset2() |
void | setTickOffset2(double value) |
ticksShow2 : bool
Access functions:
bool | showTicks2() |
void | setShowTicks2(bool show) |
unitCircle2 : bool
Access functions:
bool | unitCircle2() |
void | setUnitCircle2(bool show) |
unitCircleShowMin2 : bool
Access functions:
bool | unitCircleShowMin2() |
void | setUnitCircleShowMin2(bool show) |
value2 : double
Access functions:
double | value2() |
void | setValue2(double value) |
valueMaxError2 : double
Access functions:
double | valueMaxError2() |
void | setValueMaxError2(double value) |
valueMaxNormal2 : double
Access functions:
double | valueMaxNormal2() |
void | setValueMaxNormal2(double value) |
valueMaxWarning2 : double
Access functions:
double | valueMaxWarning2() |
void | setValueMaxWarning2(double value) |
valueMaxWarningHigh2 : double
Access functions:
double | valueMaxWarningHigh2() |
void | setValueMaxWarningHigh2(double value) |
valueMinError2 : double
Access functions:
double | valueMinError2() |
void | setValueMinError2(double value) |
valueMinNormal2 : double
Access functions:
double | valueMinNormal2() |
void | setValueMinNormal2(double value) |
valueMinWarning2 : double
Access functions:
double | valueMinWarning2() |
void | setValueMinWarning2(double value) |
valueMinWarningHigh2 : double
Access functions:
double | valueMinWarningHigh2() |
void | setValueMinWarningHigh2(double value) |
Member Function Documentation
CDPBaseMeter2N::CDPBaseMeter2N(QWidget *parent = 0, bool bSetMeterType = false)
Default constructs an instance of CDPBaseMeter2N.
[slot]
void CDPBaseMeter2N::setAlarmSectorCenter2(double value)
[slot]
void CDPBaseMeter2N::setAlarmSectorError2(double value)
[slot]
void CDPBaseMeter2N::setAlarmSectorNormal2(double value)
[slot]
void CDPBaseMeter2N::setAlarmSectorWarning2(double value)
[slot]
void CDPBaseMeter2N::setAlarmSectorWarningHigh2(double value)
[override virtual]
void CDPBaseMeter2N::setOfflineValue(double value)
[override virtual]
void CDPBaseMeter2N::setOfflineValueEnabled(bool enabled)
[slot]
void CDPBaseMeter2N::setValueNeedle1(double value)
[slot]
void CDPBaseMeter2N::setValueNeedle2(double value)
Get started with CDP Studio today
Let us help you take your great ideas and turn them into the products your customer will love.