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)
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);
126 virtual void mainloop ();
127 virtual void reset (
void);
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);
Generic connection class not specific to the transport mechanism.
vrpn_TBF_axis(const char *n, int ch, const float v[], const float rv[], bool absolut)
vrpn_Tracker_ButtonFly * bf
This structure is what is passed to a vrpn_Connection message callback.
void vrpn_strcpy(char(&to)[charCount], const char *pSrc)
Null-terminated-string copy function that both guarantees not to overrun the buffer and guarantees th...