Implementation of an affine value proxy. The ctkLinearValueProxy takes a coefficient and an offset, effectively implementing a value proxy such as: valueProxy = coefficient * value + offset Note: If the coefficient is null then the property value given by value = (valueProxy - offset) / coefficient can give bad results (+ or - infinity depending on the sign of valueProxy - offset).
More...
#include <Libs/Core/ctkLinearValueProxy.h>
|
QScopedPointer< ctkLinearValueProxyPrivate > | d_ptr |
|
QScopedPointer< ctkValueProxyPrivate > | d_ptr |
|
Implementation of an affine value proxy. The ctkLinearValueProxy takes a coefficient and an offset, effectively implementing a value proxy such as: valueProxy = coefficient * value + offset Note: If the coefficient is null then the property value given by value = (valueProxy - offset) / coefficient can give bad results (+ or - infinity depending on the sign of valueProxy - offset).
- See also
- ctkValueProxy
Definition at line 40 of file ctkLinearValueProxy.h.
◆ Superclass
◆ ctkLinearValueProxy()
ctkLinearValueProxy::ctkLinearValueProxy |
( |
QObject * |
parent = 0 | ) |
|
|
explicit |
◆ ~ctkLinearValueProxy()
virtual ctkLinearValueProxy::~ctkLinearValueProxy |
( |
| ) |
|
|
virtual |
◆ coefficient()
virtual double ctkLinearValueProxy::coefficient |
( |
| ) |
const |
|
virtual |
◆ offset()
virtual double ctkLinearValueProxy::offset |
( |
| ) |
const |
|
virtual |
◆ proxyValueFromValue()
virtual double ctkLinearValueProxy::proxyValueFromValue |
( |
double |
value | ) |
const |
|
virtual |
◆ setCoefficient
virtual void ctkLinearValueProxy::setCoefficient |
( |
double |
newCoeff | ) |
|
|
virtualslot |
◆ setOffset
virtual void ctkLinearValueProxy::setOffset |
( |
double |
newOffset | ) |
|
|
virtualslot |
◆ valueFromProxyValue()
virtual double ctkLinearValueProxy::valueFromProxyValue |
( |
double |
proxyValue | ) |
const |
|
virtual |
◆ d_ptr
QScopedPointer<ctkLinearValueProxyPrivate> ctkLinearValueProxy::d_ptr |
|
protected |
◆ coefficient
double ctkLinearValueProxy::coefficient |
|
readwrite |
◆ offset
double ctkLinearValueProxy::offset |
|
readwrite |
The documentation for this class was generated from the following file: