Base class for value proxies. Value proxy allows to decouple the displayed value from the values accessed within the program. For example, one may want to display Fahrenheit while still working with Celsius.
More...
#include <Libs/Core/ctkValueProxy.h>
|
QScopedPointer< ctkValueProxyPrivate > | d_ptr |
|
Base class for value proxies. Value proxy allows to decouple the displayed value from the values accessed within the program. For example, one may want to display Fahrenheit while still working with Celsius.
A ctkValueProxy can be used by connecting signal/slots to the value and proxyValue properties or by using directly the valueFromProxyValue and proxyValueFromValue functions.
Subclasses should reimplement the function proxyValueFromValue() and valueFromProxyValue().
- See also
- ctkLinearValueProxy
Definition at line 46 of file ctkValueProxy.h.
◆ Superclass
◆ ctkValueProxy()
ctkValueProxy::ctkValueProxy |
( |
QObject * |
parent = 0 | ) |
|
|
explicit |
◆ ~ctkValueProxy()
virtual ctkValueProxy::~ctkValueProxy |
( |
| ) |
|
|
virtual |
◆ proxyAboutToBeModified
void ctkValueProxy::proxyAboutToBeModified |
( |
| ) |
|
|
signal |
◆ proxyModified
void ctkValueProxy::proxyModified |
( |
| ) |
|
|
signal |
◆ proxyValue()
virtual double ctkValueProxy::proxyValue |
( |
| ) |
const |
|
virtual |
◆ proxyValueChanged
void ctkValueProxy::proxyValueChanged |
( |
double |
| ) |
|
|
signal |
◆ proxyValueFromValue()
virtual double ctkValueProxy::proxyValueFromValue |
( |
double |
value | ) |
const |
|
pure virtual |
◆ setProxyValue
void ctkValueProxy::setProxyValue |
( |
double |
newProxyValue | ) |
|
|
slot |
◆ setValue
void ctkValueProxy::setValue |
( |
double |
newValue | ) |
|
|
slot |
◆ updateProxyValue()
void ctkValueProxy::updateProxyValue |
( |
| ) |
|
|
protected |
Utilities function for subclasses. Can be called to update the value/proxyValue from the proxyValue/value.
◆ updateValue()
void ctkValueProxy::updateValue |
( |
| ) |
|
|
protected |
◆ value()
double ctkValueProxy::value |
( |
| ) |
const |
◆ valueChanged
void ctkValueProxy::valueChanged |
( |
double |
| ) |
|
|
signal |
◆ valueFromProxyValue()
virtual double ctkValueProxy::valueFromProxyValue |
( |
double |
proxyValue | ) |
const |
|
pure virtual |
◆ d_ptr
QScopedPointer<ctkValueProxyPrivate> ctkValueProxy::d_ptr |
|
protected |
◆ proxyValue
double ctkValueProxy::proxyValue |
|
readwrite |
The proxy value holds the value transformed. If the value proxy is considered as a function, then the proxy value is the result of this function applied to value. The proxy value is updated if the value is changed.
Definition at line 1 of file ctkValueProxy.h.
◆ value
double ctkValueProxy::value |
|
readwrite |
The value holds the current value. If the value proxy is considered as a function, then this function applied to the value is the proxy value. The value is updated if the proxy value is changed.
Definition at line 1 of file ctkValueProxy.h.
The documentation for this class was generated from the following file: