The TransferFunction class is an abstract class that creates an object of its concrete subclasses.
More...
#include <TransferFunction.h>
|
virtual void | clearState (void)=0 |
| Method which clears the current state of the device to be the default one (without any remainders or previous data).
|
|
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. More...
|
|
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. More...
|
|
virtual URI | getURI (bool expanded=false) const =0 |
| getURI The method constructs URI corresponding to the type and parameters of the transfer function. More...
|
|
virtual void | setDebugLevel (int) |
| Sets the level of information for debugging purposes (default = 0).
|
|
virtual void | debug (std::ostream &) const |
|
|
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() More...
|
|
void | normalizeOutput (int *dx, int *dy, DisplayDevice *output) const |
| normalizeOutput Normalizes output of a transfer function with respect to the given DisplayDevice. For example, to prevent slow movements of the cursor for high resolution display. dx and dy are changed according to the output->getResolution() More...
|
|
The TransferFunction class is an abstract class that creates an object of its concrete subclasses.
Subclasses may caracterize either platform specific transfer functions or transfer functions conforming to a certain law. It uses URIs to specify the object type.
virtual void pointing::TransferFunction::applyd |
( |
int |
dxMickey, |
|
|
int |
dyMickey, |
|
|
double * |
dxPixel, |
|
|
double * |
dyPixel, |
|
|
TimeStamp::inttime |
timestamp = TimeStamp::undef |
|
) |
| |
|
pure virtual |
virtual void pointing::TransferFunction::applyi |
( |
int |
dxMickey, |
|
|
int |
dyMickey, |
|
|
int * |
dxPixel, |
|
|
int * |
dyPixel, |
|
|
TimeStamp::inttime |
timestamp = TimeStamp::undef |
|
) |
| |
|
pure virtual |
Static method to instantiate an object of a sub-class.
- Parameters
-
function_uri | URI defining the type and details of an object |
input | Input device associated with this transfer function. |
output | Output device associated with this transfer function |
- Returns
- Pointer to the initialized transfer function.
virtual URI pointing::TransferFunction::getURI |
( |
bool |
expanded = false | ) |
const |
|
pure virtual |
void pointing::TransferFunction::normalizeInput |
( |
int * |
dx, |
|
|
int * |
dy, |
|
|
PointingDevice * |
input |
|
) |
| const |
|
protected |
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()
- Parameters
-
dx | Input x-displacement |
dy | Input y-displacement |
input | Given PointingDevice |
void pointing::TransferFunction::normalizeOutput |
( |
int * |
dx, |
|
|
int * |
dy, |
|
|
DisplayDevice * |
output |
|
) |
| const |
|
protected |
normalizeOutput Normalizes output of a transfer function with respect to the given DisplayDevice. For example, to prevent slow movements of the cursor for high resolution display. dx and dy are changed according to the output->getResolution()
- Parameters
-
dx | x-pixel-displacement |
dy | y-pixel-displacement |
output | Given DisplayDevice |
The documentation for this class was generated from the following files: