16 #ifndef TransferFunction_h
17 #define TransferFunction_h
19 #include <pointing/utils/URI.h>
20 #include <pointing/utils/TimeStamp.h>
21 #include <pointing/input/PointingDevice.h>
22 #include <pointing/output/DisplayDevice.h>
66 static std::list<std::string> schemes(
void) ;
100 virtual void applyi(
int dxMickey,
int dyMickey,
int *dxPixel,
int *dyPixel,
101 TimeStamp::inttime timestamp=TimeStamp::undef) = 0 ;
111 virtual void applyd(
int dxMickey,
int dyMickey,
double *dxPixel,
double *dyPixel,
112 TimeStamp::inttime timestamp=TimeStamp::undef) = 0;
120 virtual URI
getURI(
bool expanded=
false)
const = 0 ;
126 virtual void debug(std::ostream& )
const {}
128 virtual ~TransferFunction() {}
virtual void clearState(void)=0
Method which clears the current state of the device to be the default one (without any remainders or ...
static TransferFunction * create(const char *function_uri, PointingDevice *input, DisplayDevice *output)
Static method to instantiate an object of a sub-class.
Definition: TransferFunction.cpp:89
The PointingDevice class is used to represent Pointing Devices connected to the computer or pseudo-de...
Definition: PointingDevice.h:36
virtual void setDebugLevel(int)
Sets the level of information for debugging purposes (default = 0).
Definition: TransferFunction.h:125
virtual void applyd(int dxMickey, int dyMickey, double *dxPixel, double *dyPixel, TimeStamp::inttime timestamp=TimeStamp::undef)=0
apply The main method of the class which applies the transfer function.
virtual void applyi(int dxMickey, int dyMickey, int *dxPixel, int *dyPixel, TimeStamp::inttime timestamp=TimeStamp::undef)=0
apply The main method of the class which applies the transfer function.
DisplayDevice class is used to represent the displays connected to the computer.
Definition: DisplayDevice.h:31
The TransferFunction class is an abstract class that creates an object of its concrete subclasses...
Definition: TransferFunction.h:38
virtual URI getURI(bool expanded=false) const =0
getURI The method constructs URI corresponding to the type and parameters of the transfer function...
void normalizeOutput(int *dx, int *dy, DisplayDevice *output) const
normalizeOutput Normalizes output of a transfer function with respect to the given DisplayDevice...
Definition: TransferFunction.cpp:106
void normalizeInput(int *dx, int *dy, PointingDevice *input) const
normalizeInput Normalizes input to a transfer function with respect to the given PointingDevice. For example, to prevent fast movements of the cursor for high resolution mice. dx and dy are changed according to the input->getResolution()
Definition: TransferFunction.cpp:96