1#ifndef INCLUDED_ANALOGFLY
2#define INCLUDED_ANALOGFLY
27 { name = NULL; channel = 0; offset = 0.0f; thresh = 0.0f;
28 scale = 1.0f; power = 1.0f; };
43 x.name = y.name = z.name =
44 sx.name = sy.name = sz.name = reset_name = clutch_name = NULL;
109 float update_rate,
bool absolute = vrpn_FALSE,
110 bool reportChanges = VRPN_FALSE,
bool worldFrame = VRPN_FALSE);
114 virtual void mainloop ();
118 struct timeval d_prevtime;
134 void update_matrix_based_on_values (
double time_interval);
135 void convert_matrix_to_tracker (
void);
137 bool shouldReport (
double elapsedInterval)
const;
141 virtual void reset(
void);
143 static void VRPN_CALLBACK handle_analog_update (
void * userdata,
Generic connection class not specific to the transport mechanism.
vrpn_Tracker_AnalogFly * af
vrpn_TAF_axis sx
Rotation in the positive direction about the three axes.
char * reset_name
Button device that is used to reset the matrix to the origin.
vrpn_TAF_axis x
Translation along each of these three axes.
vrpn_Tracker_AnalogFlyParam(void)
char * clutch_name
Clutch device that is used to enable relative motion over.
This class will turn an analog device such as a joystick or a camera.
vrpn_Button_Remote * d_reset_button
q_matrix_type d_clutchMatrix
vrpn_Button_Remote * d_clutch_button
This structure is what is passed to a vrpn_Connection message callback.
class VRPN_API vrpn_Tracker_AnalogFly