|
| Composition (URI &uri, PointingDevice *input, DisplayDevice *output) |
|
unsigned long | size (void) const |
|
void | clearState (void) |
| Method which clears the current state of the device to be the default one (without any remainders or previous data).
|
|
void | applyi (int dxMickey, int dyMickey, int *dxPixel, int *dyPixel, TimeStamp::inttime timestamp=TimeStamp::undef) |
| apply The main method of the class which applies the transfer function. More...
|
|
void | applyd (int dxMickey, int dyMickey, double *dxPixel, double *dyPixel, TimeStamp::inttime timestamp=TimeStamp::undef) |
| apply The main method of the class which applies the transfer function. More...
|
|
URI | getURI (bool expanded=false) const |
| getURI The method constructs URI corresponding to the type and parameters of the transfer function. More...
|
|
|
void | prependFunction (std::string uri) |
| prependFunction is used to add a function to the beginning of the list so that it is called at the beginning. URI, URI string specifying a transfer function or transfer function itself may be passed as an argument.
|
|
void | prependFunction (URI &uri) |
|
void | prependFunction (TransferFunction *function) |
|
|
void | appendFunction (std::string uri) |
| appendFunction is used to add a function to the end of the list so that it is called at the after all the functions in the list. URI, URI string specifying a transfer function or transfer function itself may be passed as an argument.
|
|
void | appendFunction (URI &uri) |
|
void | appendFunction (TransferFunction *function) |
|
virtual void | setDebugLevel (int) |
| Sets the level of information for debugging purposes (default = 0).
|
|
virtual void | debug (std::ostream &) const |
|
|
static std::list< std::string > | schemes (void) |
|
static TransferFunction * | create (const char *function_uri, PointingDevice *input, DisplayDevice *output) |
| Static method to instantiate an object of a sub-class. More...
|
|
static TransferFunction * | create (std::string function_uri, PointingDevice *input, DisplayDevice *output) |
|
static TransferFunction * | create (URI &function_uri, PointingDevice *input, DisplayDevice *output) |
|
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 Composition class can be used to apply several transfer functions to the input.
It is called by specifying URI as composition:<filename> where filename is read line by line, where each line must represent a transfer function. function are called in appearing order, i.e. pixels = fn(...f2(f1(mickeys)))
A function can be added to the start or to the end of the function list.