Main Page   Class Hierarchy   Compound List   File List   Header Files   Compound Members   File Members  

vrpn_Clipping_Analog_Server Class Reference

Analog server that can scale and clip its range to -1..1. More...

#include <vrpn_Analog.h>

Class diagram for vrpn_Clipping_Analog_Server:

vrpn_Analog_Server vrpn_Analog vrpn_BaseClass vrpn_BaseClassUnique

List of all members.


Public Members

 vrpn_Clipping_Analog_Server (const char *name, vrpn_Connection *c)
int setClipValues (int channel, double min, double lowzero, double highzero, double max)
Set the clipping values for the specified channel. min maps to -1, values between lowzero and highzero map to 0, max maps to 1. Values less than min map to -1, values larger than max map to 1. Default for each channel is -1,0,0,1 It is possible to compress the range to [0..1] by setting the minimum equal to the lowzero. Returns 0 on success, -1 on failure.

int setChannelValue (int channel, double value)
This method should be used to set the value of a channel. It will be scaled and clipped as described in setClipValues. It returns 0 on success and -1 on failure.


Protected Members

clipvals_struct clipvals [vrpn_CHANNEL_MAX]

Detailed Description

Analog server that can scale and clip its range to -1..1.


Member Function Documentation

vrpn_Clipping_Analog_Server::vrpn_Clipping_Analog_Server (const char * name, vrpn_Connection * c)

int vrpn_Clipping_Analog_Server::setClipValues (int channel, double min, double lowzero, double highzero, double max)

Set the clipping values for the specified channel. min maps to -1, values between lowzero and highzero map to 0, max maps to 1. Values less than min map to -1, values larger than max map to 1. Default for each channel is -1,0,0,1 It is possible to compress the range to [0..1] by setting the minimum equal to the lowzero. Returns 0 on success, -1 on failure.

int vrpn_Clipping_Analog_Server::setChannelValue (int channel, double value)

This method should be used to set the value of a channel. It will be scaled and clipped as described in setClipValues. It returns 0 on success and -1 on failure.


Member Data Documentation

clipvals_struct vrpn_Clipping_Analog_Server::clipvals[vrpn_CHANNEL_MAX] [protected]


The documentation for this class was generated from the following files:
Generated at Fri Sep 13 15:04:04 2002 for vrpn by doxygen 1.0.0 written by Dimitri van Heesch, © 1997-1999