Into

Modules

Documentation

classPiiThermoMeter

#include <PiiThermoMeter.h>

A class provides a simple thermometer display.

Inherits QWidget

Description

Properties

bool

Enable or disable the alarm threshold.

double

Specify the alarm threshold.

double
int

Set the maximum number of major and minor tick intervals.

int
double

Set min and max values.

Set the orientation of the thermometer.

Set a pen of the pipe.

int

Change the width of the pipe.

Set a pen of the scales.

Set the scale position.

int

Set a precision of the scale numbers.

Public types

enum
{ Horizontal, Vertical }

Possible orientation.

enum
{ Top, Bottom, Left, Right, None }

Possible scale positions.

Public Slots

void

Constructors and destructor

( )

Public member functions

bool
double
double
( )
int
int
double
( )
int
int
void
( )
void
(
  • bool alarmEnabled
)
void
(
  • double alarmThreshold
)
void
(
  • const QBrush & backgroundBrush
)
void
( )
void
(
  • double max
)
void
(
  • int maxMajorTicks
)
void
(
  • int maxMinorTicks
)
void
(
  • double min
)
void
( )
void
(
  • const QPen & pipePen
)
void
(
  • int pipeWidth
)
void
(
  • const QPen & scalePen
)
void
( )
void
(
  • int prec
)

Protected member functions

void

Property details

  • QBrush alarmBrush

    [read, write]
  • bool alarmEnabled

    [read, write]

    Enable or disable the alarm threshold.

  • double alarmThreshold

    [read, write]

    Specify the alarm threshold.

  • QBrush backgroundBrush

    [read, write]
  • QBrush liquidBrush

    [read, write]
  • double max

    [read, write]
  • int maxMajorTicks

    [read, write]

    Set the maximum number of major and minor tick intervals.

  • int maxMinorTicks

    [read, write]
  • double min

    [read, write]

    Set min and max values.

  • Orientation orientation

    [read, write]

    Set the orientation of the thermometer.

    Default is Vertical.

  • QPen pipePen

    [read, write]

    Set a pen of the pipe.

  • int pipeWidth

    [read, write]

    Change the width of the pipe.

  • QPen scalePen

    [read, write]

    Set a pen of the scales.

  • ScalePosition scalePosition

    [read, write]

    Set the scale position.

    Default is Left. If you don't want to see result values, you can se scalePosition as None.

  • int scalePrecision

    [read, write]

    Set a precision of the scale numbers.

Enumeration details

  • enum Orientation

    Possible orientation.

    • Horizontal -

    • Vertical -

  • enum ScalePosition

    Possible scale positions.

    • Top -

    • Bottom -

    • Left -

    • Right -

    • None -

Function details

  • PiiThermoMeter

    ( )
  • ~PiiThermoMeter

    ()
  • QBrush alarmBrush

    ()
  • bool alarmEnabled

    ()
  • double alarmThreshold

    ()
  • QBrush backgroundBrush

    ()
  • QBrush liquidBrush

    ()
  • double max

    ()
  • int maxMajorTicks

    ()
  • int maxMinorTicks

    ()
  • double min

    ()
  • Orientation orientation

    ()
  • QPen pipePen

    ()
  • int pipeWidth

    ()
  • QPen scalePen

    ()
  • ScalePosition scalePosition

    ()
  • int scalePrecision

    ()
  • void setAlarmBrush

    ( )
  • void setAlarmEnabled

    (
    • bool alarmEnabled
    )
  • void setAlarmThreshold

    (
    • double alarmThreshold
    )
  • void setBackgroundBrush

    (
    • const QBrush & backgroundBrush
    )
  • void setLiquidBrush

    ( )
  • void setMax

    (
    • double max
    )
  • void setmaxMajorTicks

    (
    • int maxMajorTicks
    )
  • void setmaxMinorTicks

    (
    • int maxMinorTicks
    )
  • void setMin

    (
    • double min
    )
  • void setOrientation

    ( )
  • void setPipePen

    (
    • const QPen & pipePen
    )
  • void setPipeWidth

    (
    • int pipeWidth
    )
  • void setScalePen

    (
    • const QPen & scalePen
    )
  • void setScalePosition

    ( )
  • void setScalePrecision

    (
    • int prec
    )
  • void paintEvent

    ( )
    [protected]
  • void setValue

    ()
    [slot]
Notes (0)

Add a note

Not a single note added yet. Be the first, add yours.