QtPdWidgets  2.3.1
Classes | Public Member Functions | Private Attributes | Friends | List of all members
Pd::TankMedium Class Reference

#include <Tank.h>

Classes

struct  Impl
 

Public Member Functions

 TankMedium (Tank *)
 
 ~TankMedium ()
 
void setLevelVariable (PdCom::Variable pv, const PdCom::Selector &selector={}, const QtPdCom::Transmission &=QtPdCom::event_mode, double scale=1.0, double offset=0.0, double tau=0.0)
 Subscribe to a process variable. More...
 
void setLevelVariable (PdCom::Process *process, const QString &path, const PdCom::Selector &selector={}, const QtPdCom::Transmission &=QtPdCom::event_mode, double scale=1.0, double offset=0.0, double tau=0.0)
 Subscribe to a process variable. More...
 
void setVolumeVariable (PdCom::Variable pv, const PdCom::Selector &selector={}, const QtPdCom::Transmission &=QtPdCom::event_mode, double scale=1.0, double offset=0.0, double tau=0.0)
 Subscribe to a process variable. More...
 
void setVolumeVariable (PdCom::Process *process, const QString &path, const PdCom::Selector &selector={}, const QtPdCom::Transmission &=QtPdCom::event_mode, double scale=1.0, double offset=0.0, double tau=0.0)
 Subscribe to a process variable. More...
 
void clearLevelVariable ()
 Unsubscribe from a Variable. More...
 
void clearVolumeVariable ()
 Unsubscribe from a Variable. More...
 
QColor getColor () const
 
void setColor (QColor)
 

Private Attributes

struct PD_PRIVATE Impl
 
std::unique_ptr< Implimpl
 

Friends

class Tank
 

Constructor & Destructor Documentation

◆ TankMedium()

TankMedium::TankMedium ( Tank tank)

◆ ~TankMedium()

TankMedium::~TankMedium ( )

Member Function Documentation

◆ clearLevelVariable()

void TankMedium::clearLevelVariable ( )

Unsubscribe from a Variable.

References impl.

Referenced by setLevelVariable(), and ~TankMedium().

◆ clearVolumeVariable()

void TankMedium::clearVolumeVariable ( )

Unsubscribe from a Variable.

References impl.

Referenced by setVolumeVariable(), and ~TankMedium().

◆ getColor()

QColor TankMedium::getColor ( ) const

References impl.

Referenced by Pd::Tank::Impl::paint().

◆ setColor()

void TankMedium::setColor ( QColor  c)

References impl.

◆ setLevelVariable() [1/2]

void TankMedium::setLevelVariable ( PdCom::Variable  pv,
const PdCom::Selector &  selector = {},
const QtPdCom::Transmission &  transmission = QtPdCom::event_mode,
double  scale = 1.0,
double  offset = 0.0,
double  tau = 0.0 
)

Subscribe to a process variable.

Subscribes to a ProcessVariable.

Parameters
pvProcess variable.
selectorSelector.
transmissionTransmission.
scaleScale factor.
offsetOffset (applied after scaling).
tauPT1 filter time constant. A value less or equal to 0.0 means, that no filter is applied.

References clearLevelVariable(), and impl.

◆ setLevelVariable() [2/2]

void TankMedium::setLevelVariable ( PdCom::Process *  process,
const QString &  path,
const PdCom::Selector &  selector = {},
const QtPdCom::Transmission &  transmission = QtPdCom::event_mode,
double  scale = 1.0,
double  offset = 0.0,
double  tau = 0.0 
)

Subscribe to a process variable.

Subscribes to a ProcessVariable.

Parameters
processProcess.
pathVariable path.
selectorSelector.
transmissionTransmission.
scaleScale factor.
offsetOffset (applied after scaling).
tauPT1 filter time constant. A value less or equal to 0.0 means, that no filter is applied.

References clearLevelVariable(), and impl.

◆ setVolumeVariable() [1/2]

void TankMedium::setVolumeVariable ( PdCom::Variable  pv,
const PdCom::Selector &  selector = {},
const QtPdCom::Transmission &  transmission = QtPdCom::event_mode,
double  scale = 1.0,
double  offset = 0.0,
double  tau = 0.0 
)

Subscribe to a process variable.

Subscribes to a ProcessVariable.

Parameters
pvProcess variable.
selectorSelector.
transmissionTransmission.
scaleScale factor.
offsetOffset (applied after scaling).
tauPT1 filter time constant. A value less or equal to 0.0 means, that no filter is applied.

References clearVolumeVariable(), and impl.

◆ setVolumeVariable() [2/2]

void TankMedium::setVolumeVariable ( PdCom::Process *  process,
const QString &  path,
const PdCom::Selector &  selector = {},
const QtPdCom::Transmission &  transmission = QtPdCom::event_mode,
double  scale = 1.0,
double  offset = 0.0,
double  tau = 0.0 
)

Subscribe to a process variable.

Subscribes to a ProcessVariable.

Parameters
processProcess.
pathVariable path.
selectorSelector.
transmissionTransmission.
scaleScale factor.
offsetOffset (applied after scaling).
tauPT1 filter time constant. A value less or equal to 0.0 means, that no filter is applied.

References clearVolumeVariable(), and impl.

Friends And Related Function Documentation

◆ Tank

friend class Tank
friend

Member Data Documentation

◆ Impl

◆ impl

std::unique_ptr<Impl> Pd::TankMedium::impl
private

The documentation for this class was generated from the following files: