vrpn
07.33
Virtual Reality Peripheral Network
|
Go to the documentation of this file. 1 #ifndef INCLUDED_BUTTONFLY
2 #define INCLUDED_BUTTONFLY
32 { strcpy(name,
""); channel = 0;
33 vec[0] = vec[1] = vec[2] = 0.0;
34 rot[0] = rot[1] = rot[2] = 0.0;
38 const float rv[],
bool absolut)
39 { strncpy(name, n,
sizeof(name)-1); name[
sizeof(name)-1] =
'\0';
41 memcpy(vec, v,
sizeof(vec));
42 memcpy(rot, rv,
sizeof(rot));
58 strcpy(vel_scale_name,
"");
59 strcpy(rot_scale_name,
"");
76 char vel_scale_name[200];
83 char rot_scale_name[200];
122 bool reportChanges = VRPN_FALSE);
127 virtual void reset (
void);
129 void update (q_matrix_type &);
136 struct timeval d_prevtime;
144 char d_vel_scale_name[200];
153 char d_rot_scale_name[200];
167 void update_matrix_based_on_values (
double time_interval);
168 void convert_matrix_to_tracker (
void);
170 bool shouldReport (
double elapsedInterval);
175 static void VRPN_CALLBACK handle_velocity_update(
void * userdata,
const vrpn_ANALOGCB info);
176 static void VRPN_CALLBACK handle_rotation_update(
void * userdata,
const vrpn_ANALOGCB info);
177 static void VRPN_CALLBACK handle_button_update(
void * userdata,
const vrpn_BUTTONCB info);
178 static void VRPN_CALLBACK handle_reset_press(
void * userdata,
const vrpn_BUTTONCB info);
vrpn_Tracker_ButtonFly * bf
This structure is what is passed to a vrpn_Connection message callback.
vrpn_TBF_axis(const char *n, int ch, const float v[], const float rv[], bool absolut)
virtual void mainloop()=0
Called once through each main loop iteration to handle updates. Remote object mainloop() should call ...
Generic connection class not specific to the transport mechanism.