CDPBaseMeter4N Class
The Meter 4 Needles has four needles in one meter. It can either be used to show values on the same scale or you can separate the needles and have different scales. More...
Header: | #include <CDPBaseWidgets/CDPBaseMeter4N.h> |
Inherits: | CDPBaseMeter3N |
Inherited By: |
Properties
|
|
- 42 properties inherited from CDPBaseMeter3N
- 43 properties inherited from CDPBaseMeter2N
- 52 properties inherited from CDPBaseMeter
- 6 properties inherited from CDPBaseWidget
Public Functions
CDPBaseMeter4N(QWidget *parent = 0, bool bSetMeterType = false) | |
bool | alarmSectorLimit4() |
QColor | errorColor4() |
QColor | fillColor4() |
bool | fillEnabled4() |
double | fillOffset4() |
double | fillStartValue4() |
double | fillWidth4() |
CDPBaseTickMarks::NumPrecision | getPrecisionMethod4() |
int | majorTicks4() |
int | majorTickLength4() |
int | majorTickWidth4() |
double | maxValue4() |
double | minValue4() |
int | minorTicks4() |
int | minorTickLength4() |
int | minorTickWidth4() |
virtual bool | needleEnabled4() |
QColor | normalColor4() |
QFont | numFont4() |
int | numOffset4() |
QString | numPostfix4() |
bool | numShow4() |
int | precision4() |
QString | routing4() |
double | scalingFactor4() |
void | setAlarmSectorLimit4(bool enable) |
void | setErrorColor4(QColor value) |
void | setFillColor4(const QColor &color) |
void | setFillEnabled4(bool enable) |
void | setFillOffset4(double offset) |
void | setFillStartValue4(double value) |
void | setFillWidth4(double width) |
void | setMajorTicks4(int value) |
void | setMajorTickLength4(int value) |
void | setMajorTickWidth4(int value) |
void | setMinorTicks4(int value) |
void | setMinorTickLength4(int value) |
void | setMinorTickWidth4(int value) |
virtual void | setNeedleEnabled4(bool enabled) |
void | setNormalColor4(QColor value) |
void | setNumFont4(QFont value) |
void | setNumOffset4(int value) |
void | setNumPostfix4(QString postfix) |
void | setNumShow4(bool show) |
void | setPrecision4(int value) |
void | setPrecisionMethod4(CDPBaseTickMarks::NumPrecision value) |
void | setRouting4(QString routing) |
void | setScalingFactor4(double value) |
void | setShowAlarms4(bool show) |
void | setShowTicks4(bool show) |
void | setTickColor4(QColor value) |
void | setTickOffset4(double value) |
void | setUnitCircle4(bool show) |
void | setUnitCircleShowMin4(bool show) |
void | setValue4(double value) |
void | setWarningColor4(QColor value) |
void | setWarningHighColor4(QColor value) |
bool | showAlarms4() |
bool | showTicks4() |
QColor | tickColor4() |
double | tickOffset4() |
bool | unitCircle4() |
bool | unitCircleShowMin4() |
double | value4() |
double | valueMaxError4() |
double | valueMaxNormal4() |
double | valueMaxWarning4() |
double | valueMaxWarningHigh4() |
double | valueMinError4() |
double | valueMinNormal4() |
double | valueMinWarning4() |
double | valueMinWarningHigh4() |
QColor | warningColor4() |
QColor | warningHighColor4() |
Reimplemented Public Functions
virtual void | setOfflineValue(double value) override |
virtual void | setOfflineValueEnabled(bool enabled) override |
- 76 public functions inherited from CDPBaseMeter3N
- 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
Public Slots
void | setAlarmSectorCenter4(double value) |
void | setAlarmSectorError4(double value) |
void | setAlarmSectorNormal4(double value) |
void | setAlarmSectorWarning4(double value) |
void | setAlarmSectorWarningHigh4(double value) |
void | setMaxValue4(double value) |
void | setMinValue4(double value) |
void | setValueMaxError4(double value) |
void | setValueMaxNormal4(double value) |
void | setValueMaxWarning4(double value) |
void | setValueMaxWarningHigh4(double value) |
void | setValueMinError4(double value) |
void | setValueMinNormal4(double value) |
void | setValueMinWarning4(double value) |
void | setValueMinWarningHigh4(double value) |
void | setValueNeedle4(double value) |
- 16 public slots inherited from CDPBaseMeter3N
- 18 public slots inherited from CDPBaseMeter2N
- 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 4 Needles has four needles in one meter. It can either be used to show values on the same scale or you can separate the needles and have different scales.
The widget requires a 4th layer in the svg file that specify the layout of the 4th needle (MaxValue, MinValue, NeedleCenter and rotation).
The CDPBaseMeter4N widget inherits all the properties from the Meter3N widget, and gets a 4th set of properties for the 4th needle. The 4th set of properties contains all the traits that pertain to the 4th 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
ErrorColor4 : QColor
Access functions:
QColor | errorColor4() |
void | setErrorColor4(QColor value) |
NormalColor4 : QColor
Access functions:
QColor | normalColor4() |
void | setNormalColor4(QColor value) |
WarningColor4 : QColor
Access functions:
QColor | warningColor4() |
void | setWarningColor4(QColor value) |
WarningHighColor4 : QColor
Access functions:
QColor | warningHighColor4() |
void | setWarningHighColor4(QColor value) |
alarmSectorLimit4 : bool
Access functions:
bool | alarmSectorLimit4() |
void | setAlarmSectorLimit4(bool enable) |
alarmShow4 : bool
Access functions:
bool | showAlarms4() |
void | setShowAlarms4(bool show) |
cdpRouting4 : QString
Access functions:
QString | routing4() |
void | setRouting4(QString routing) |
cdpScaling4 : double
Access functions:
double | scalingFactor4() |
void | setScalingFactor4(double value) |
fill4 : bool
Access functions:
bool | fillEnabled4() |
void | setFillEnabled4(bool enable) |
fillColor4 : QColor
Access functions:
QColor | fillColor4() |
void | setFillColor4(const QColor &color) |
fillOffset4 : double
Access functions:
double | fillOffset4() |
void | setFillOffset4(double offset) |
fillStartValue4 : double
Access functions:
double | fillStartValue4() |
void | setFillStartValue4(double value) |
fillWidth4 : double
Access functions:
double | fillWidth4() |
void | setFillWidth4(double width) |
maxValue4 : double
Access functions:
double | maxValue4() |
void | setMaxValue4(double value) |
minValue4 : double
Access functions:
double | minValue4() |
void | setMinValue4(double value) |
needle4 : bool
Access functions:
virtual bool | needleEnabled4() |
virtual void | setNeedleEnabled4(bool enabled) |
numFont4 : QFont
Access functions:
QFont | numFont4() |
void | setNumFont4(QFont value) |
numOffset4 : int
Access functions:
int | numOffset4() |
void | setNumOffset4(int value) |
numPostfix4 : QString
Access functions:
QString | numPostfix4() |
void | setNumPostfix4(QString postfix) |
numPrecision4 : int
Access functions:
int | precision4() |
void | setPrecision4(int value) |
numPrecisionMethod4 : CDPBaseTickMarks::NumPrecision
Access functions:
CDPBaseTickMarks::NumPrecision | getPrecisionMethod4() |
void | setPrecisionMethod4(CDPBaseTickMarks::NumPrecision value) |
numShow4 : bool
Access functions:
bool | numShow4() |
void | setNumShow4(bool show) |
ticksColor4 : QColor
Access functions:
QColor | tickColor4() |
void | setTickColor4(QColor value) |
ticksMajor4 : int
Access functions:
int | majorTicks4() |
void | setMajorTicks4(int value) |
ticksMajorLength4 : int
Access functions:
int | majorTickLength4() |
void | setMajorTickLength4(int value) |
ticksMajorWidth4 : int
Access functions:
int | majorTickWidth4() |
void | setMajorTickWidth4(int value) |
ticksMinor4 : int
Access functions:
int | minorTicks4() |
void | setMinorTicks4(int value) |
ticksMinorLength4 : int
Access functions:
int | minorTickLength4() |
void | setMinorTickLength4(int value) |
ticksMinorWidth4 : int
Access functions:
int | minorTickWidth4() |
void | setMinorTickWidth4(int value) |
ticksOffset4 : double
Access functions:
double | tickOffset4() |
void | setTickOffset4(double value) |
ticksShow4 : bool
Access functions:
bool | showTicks4() |
void | setShowTicks4(bool show) |
unitCircle4 : bool
Access functions:
bool | unitCircle4() |
void | setUnitCircle4(bool show) |
unitCircleShowMin4 : bool
Access functions:
bool | unitCircleShowMin4() |
void | setUnitCircleShowMin4(bool show) |
value4 : double
Access functions:
double | value4() |
void | setValue4(double value) |
valueMaxError4 : double
Access functions:
double | valueMaxError4() |
void | setValueMaxError4(double value) |
valueMaxNormal4 : double
Access functions:
double | valueMaxNormal4() |
void | setValueMaxNormal4(double value) |
valueMaxWarning4 : double
Access functions:
double | valueMaxWarning4() |
void | setValueMaxWarning4(double value) |
valueMaxWarningHigh4 : double
Access functions:
double | valueMaxWarningHigh4() |
void | setValueMaxWarningHigh4(double value) |
valueMinError4 : double
Access functions:
double | valueMinError4() |
void | setValueMinError4(double value) |
valueMinNormal4 : double
Access functions:
double | valueMinNormal4() |
void | setValueMinNormal4(double value) |
valueMinWarning4 : double
Access functions:
double | valueMinWarning4() |
void | setValueMinWarning4(double value) |
valueMinWarningHigh4 : double
Access functions:
double | valueMinWarningHigh4() |
void | setValueMinWarningHigh4(double value) |
Member Function Documentation
CDPBaseMeter4N::CDPBaseMeter4N(QWidget *parent = 0, bool bSetMeterType = false)
Default constructs an instance of CDPBaseMeter4N.
[slot]
void CDPBaseMeter4N::setAlarmSectorCenter4(double value)
[slot]
void CDPBaseMeter4N::setAlarmSectorError4(double value)
[slot]
void CDPBaseMeter4N::setAlarmSectorNormal4(double value)
[slot]
void CDPBaseMeter4N::setAlarmSectorWarning4(double value)
[slot]
void CDPBaseMeter4N::setAlarmSectorWarningHigh4(double value)
[override virtual]
void CDPBaseMeter4N::setOfflineValue(double value)
[override virtual]
void CDPBaseMeter4N::setOfflineValueEnabled(bool enabled)
[slot]
void CDPBaseMeter4N::setValueNeedle4(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.