 |
CTK
0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
|
Go to the documentation of this file.
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;
virtual void setCoefficient(double newCoeff)
virtual ~ctkLinearValueProxy()
ctkLinearValueProxy(QObject *parent=0)
Implementation of an affine value proxy. The ctkLinearValueProxy takes a coefficient and an offset,...
virtual double valueFromProxyValue(double proxyValue) const
virtual void setOffset(double newOffset)
virtual double coefficient() const
Base class for value proxies. Value proxy allows to decouple the displayed value from the values acce...
QScopedPointer< ctkLinearValueProxyPrivate > d_ptr
virtual double offset() const
virtual double proxyValueFromValue(double value) const