21 #ifndef __ctkLinearValueProxy_h
22 #define __ctkLinearValueProxy_h
25 #include "ctkCoreExport.h"
29 class ctkLinearValueProxyPrivate;
43 Q_PROPERTY(
double coefficient READ coefficient WRITE setCoefficient)
44 Q_PROPERTY(
double offset READ offset WRITE setOffset)
63 QScopedPointer<ctkLinearValueProxyPrivate>
d_ptr;
Implementation of an affine value proxy. The ctkLinearValueProxy takes a coefficient and an offset,...
ctkLinearValueProxy(QObject *parent=0)
virtual double coefficient() const
virtual void setCoefficient(double newCoeff)
QScopedPointer< ctkLinearValueProxyPrivate > d_ptr
virtual double valueFromProxyValue(double proxyValue) const
virtual ~ctkLinearValueProxy()
virtual double offset() const
virtual double proxyValueFromValue(double value) const
virtual void setOffset(double newOffset)
Base class for value proxies. Value proxy allows to decouple the displayed value from the values acce...