Navigator_tool Class Reference

#include <Navigator_tool.h>

List of all members.

Public Member Functions

 Navigator_tool ()
 ~Navigator_tool ()
int set_tr_x (double _tr_x)
int set_tr_y (double _tr_y)
int set_tr_z (double _tr_z)
double get_tr_x ()
double get_tr_y ()
double get_tr_z ()
int set_tr2_x (double _tr2_x)
int set_tr2_y (double _tr2_y)
int set_tr2_z (double _tr2_z)
double get_tr2_x ()
double get_tr2_y ()
double get_tr2_z ()
int set_tr3_x (double _tr3_x)
int set_tr3_y (double _tr3_y)
int set_tr3_z (double _tr3_z)
double get_tr3_x ()
double get_tr3_y ()
double get_tr3_z ()
int set_tr4_x (double _tr4_x)
int set_tr4_y (double _tr4_y)
int set_tr4_z (double _tr4_z)
double get_tr4_x ()
double get_tr4_y ()
double get_tr4_z ()
int set_theta_1 (double _theta_1)
int set_theta_2 (double _theta_2)
int increase_theta_1 (double d_theta)
int increase_theta_2 (double d_theta)
double get_theta_1 ()
double get_theta_2 ()
int set_width (double _with)
int set_height (double _height)
double get_width ()
double get_height ()
int set_dist_obs (double _dist_obs)
double get_dist_obs ()
int increase_dist_obs (double factor)
int increase_dist_obs2 (double factor)
int increase_dist_obs3 (double factor)
int increase_dist_obs4 (double factor)
int set_dist_obs2 (double _dist_obs2)
double get_dist_obs2 ()
int set_dist_obs3 (double _dist_obs3)
double get_dist_obs3 ()
int set_dist_obs4 (double _dist_obs4)
double get_dist_obs4 ()
int set_left_b (int _left_b)
int set_right_b (int _right_b)
int get_left_b ()
int get_right_b ()
int set_x_prec (int _x_prec)
int set_y_prec (int _y_prec)
int get_x_prec ()
int get_y_prec ()
int set_sel_x (double _sel_x)
int set_sel_y (double _sel_y)
int set_sel_z (double _sel_z)
double get_sel_x ()
double get_sel_y ()
double get_sel_z ()
int increase_sel_x (double d_x)
int increase_sel_y (double d_y)
int increase_sel_z (double d_z)
int go_forward (double d_L)
int go_backward (double d_L)
int go_right (double d_L)
int go_left (double d_L)
int go_up (double d_L)
int go_down (double d_L)
int increase_time ()
int get_counter ()
double get_time ()
int set_screen_size (int X_screen, int Y_screen)
int get_X_screen () const
int get_Y_screen () const
double get_screen_ratio () const
int set_percent_x (double _percent_x)
int set_percent_y (double _percent_y)
double get_percent_x () const
double get_percent_y () const
int set_current_view (int curent_view)
int get_current_view () const
int get_selection_mode () const
int set_selection_mode (int mode)
int set_selected_joint (int _closest_joint)
int get_selected_joint () const
int get_view_selection_mode () const
int set_view_selection_mode (int _view_selection_mode)
int set_rotation_mode (int _rotation_mode)
int get_rotation_mode () const
int set_N_speed (int _N_speed)
int get_N_speed () const
V_3D get_current_position () const
int is_skeleton_shown () const
int set_skeleton_shown (int is_shown)

Private Attributes

double tr_x
double tr_y
double tr_z
double theta_1
double theta_2
double width
double height
double dist_obs
double tr2_x
double tr2_y
double tr2_z
double dist_obs2
double tr3_x
double tr3_y
double tr3_z
double dist_obs3
double tr4_x
double tr4_y
double tr4_z
double dist_obs4
int X_screen
int Y_screen
double percent_x
double percent_y
int left_b
int right_b
int x_prec
int y_prec
double sel_x
double sel_y
double sel_z
int kt
double N_speed
double start_t
double end_t
int current_view
int selection_mode
int selected_joint
int view_selection_mode
int rotation_mode
int skeleton_shown


Detailed Description

Definition at line 27 of file Navigator_tool.h.


Constructor & Destructor Documentation

Navigator_tool::Navigator_tool (  ) 

Definition at line 7 of file Navigator_tool.cpp.

References current_view, dist_obs, dist_obs2, dist_obs3, dist_obs4, end_t, kt, N_speed, percent_x, percent_y, selected_joint, selection_mode, skeleton_shown, start_t, view_selection_mode, X_screen, and Y_screen.

00008 {
00009   kt=0;
00010   N_speed = 260;
00011   start_t=0.0;
00012   end_t=1.0;
00013   X_screen = 640;
00014   Y_screen = 480;
00015   percent_x = 0.65;
00016   percent_y = 0.65;
00017 
00018   dist_obs  = -84;
00019   dist_obs2 = -1;
00020   dist_obs3 = -1;
00021   dist_obs4 = -1;
00022 
00023   current_view = 1;
00024   selection_mode = 0;
00025   selected_joint = -1;
00026   view_selection_mode = 0;
00027 
00028   skeleton_shown=0;
00029 }

Navigator_tool::~Navigator_tool (  ) 

Definition at line 33 of file Navigator_tool.cpp.

00034 {
00035 }


Member Function Documentation

int Navigator_tool::set_tr_x ( double  _tr_x  ) 

Definition at line 37 of file Navigator_tool.cpp.

References tr_x.

00038 {tr_x = _tr_x;return 0;}

int Navigator_tool::set_tr_y ( double  _tr_y  ) 

Definition at line 39 of file Navigator_tool.cpp.

References tr_y.

00040 {tr_y = _tr_y;return 0;}

int Navigator_tool::set_tr_z ( double  _tr_z  ) 

Definition at line 41 of file Navigator_tool.cpp.

References tr_z.

00042 {tr_z = _tr_z;return 0;}

double Navigator_tool::get_tr_x (  ) 

Definition at line 43 of file Navigator_tool.cpp.

References tr_x.

Referenced by display_callback().

00044 {return tr_x;}

Here is the caller graph for this function:

double Navigator_tool::get_tr_y (  ) 

Definition at line 45 of file Navigator_tool.cpp.

References tr_y.

Referenced by display_callback().

00046 {return tr_y;}

Here is the caller graph for this function:

double Navigator_tool::get_tr_z (  ) 

Definition at line 47 of file Navigator_tool.cpp.

References tr_z.

Referenced by display_callback().

00048 {return tr_z;}

Here is the caller graph for this function:

int Navigator_tool::set_tr2_x ( double  _tr2_x  ) 

Definition at line 50 of file Navigator_tool.cpp.

References tr2_x.

00051 {tr2_x = _tr2_x;return 0;}

int Navigator_tool::set_tr2_y ( double  _tr2_y  ) 

Definition at line 52 of file Navigator_tool.cpp.

References tr2_y.

00053 {tr2_y = _tr2_y;return 0;}

int Navigator_tool::set_tr2_z ( double  _tr2_z  ) 

Definition at line 54 of file Navigator_tool.cpp.

References tr2_z.

00055 {tr2_z = _tr2_z;return 0;}

double Navigator_tool::get_tr2_x (  ) 

Definition at line 56 of file Navigator_tool.cpp.

References tr2_x.

00057 {return tr2_x;}

double Navigator_tool::get_tr2_y (  ) 

Definition at line 58 of file Navigator_tool.cpp.

References tr2_y.

00059 {return tr2_y;}

double Navigator_tool::get_tr2_z (  ) 

Definition at line 60 of file Navigator_tool.cpp.

References tr2_z.

00061 {return tr2_z;}

int Navigator_tool::set_tr3_x ( double  _tr3_x  ) 

Definition at line 64 of file Navigator_tool.cpp.

References tr3_x.

00065 {tr3_x = _tr3_x;return 0;}

int Navigator_tool::set_tr3_y ( double  _tr3_y  ) 

Definition at line 66 of file Navigator_tool.cpp.

References tr3_y.

00067 {tr3_y = _tr3_y;return 0;}

int Navigator_tool::set_tr3_z ( double  _tr3_z  ) 

Definition at line 68 of file Navigator_tool.cpp.

References tr3_z.

00069 {tr3_z = _tr3_z;return 0;}

double Navigator_tool::get_tr3_x (  ) 

Definition at line 70 of file Navigator_tool.cpp.

References tr3_x.

00071 {return tr3_x;}

double Navigator_tool::get_tr3_y (  ) 

Definition at line 72 of file Navigator_tool.cpp.

References tr3_y.

00073 {return tr3_y;}

double Navigator_tool::get_tr3_z (  ) 

Definition at line 74 of file Navigator_tool.cpp.

References tr3_z.

00075 {return tr3_z;}

int Navigator_tool::set_tr4_x ( double  _tr4_x  ) 

Definition at line 78 of file Navigator_tool.cpp.

References tr4_x.

00079 {tr4_x = _tr4_x;return 0;}

int Navigator_tool::set_tr4_y ( double  _tr4_y  ) 

Definition at line 80 of file Navigator_tool.cpp.

References tr4_y.

00081 {tr4_y = _tr4_y;return 0;}

int Navigator_tool::set_tr4_z ( double  _tr4_z  ) 

Definition at line 82 of file Navigator_tool.cpp.

References tr4_z.

00083 {tr4_z = _tr4_z;return 0;}

double Navigator_tool::get_tr4_x (  ) 

Definition at line 84 of file Navigator_tool.cpp.

References tr4_x.

00085 {return tr4_x;}

double Navigator_tool::get_tr4_y (  ) 

Definition at line 86 of file Navigator_tool.cpp.

References tr4_y.

00087 {return tr4_y;}

double Navigator_tool::get_tr4_z (  ) 

Definition at line 88 of file Navigator_tool.cpp.

References tr4_z.

00089 {return tr4_z;}

int Navigator_tool::set_theta_1 ( double  _theta_1  ) 

Definition at line 94 of file Navigator_tool.cpp.

References theta_1.

00095 {theta_1=_theta_1;return 0;}

int Navigator_tool::set_theta_2 ( double  _theta_2  ) 

Definition at line 96 of file Navigator_tool.cpp.

References theta_2.

00097 {theta_2=_theta_2;return 0;}

int Navigator_tool::increase_theta_1 ( double  d_theta  ) 

Definition at line 175 of file Navigator_tool.cpp.

References theta_1.

Referenced by motion_callback().

00176 {
00177   theta_1 += d_theta;
00178   return 0;
00179 }

Here is the caller graph for this function:

int Navigator_tool::increase_theta_2 ( double  d_theta  ) 

Definition at line 181 of file Navigator_tool.cpp.

References theta_2.

Referenced by motion_callback().

00182 {
00183   theta_2 += d_theta;
00184   return 0;
00185 }

Here is the caller graph for this function:

double Navigator_tool::get_theta_1 (  ) 

Definition at line 98 of file Navigator_tool.cpp.

References theta_1.

Referenced by display_callback(), and OpenGL_drawer::draw_local_basis().

00099 {return theta_1;}

Here is the caller graph for this function:

double Navigator_tool::get_theta_2 (  ) 

Definition at line 100 of file Navigator_tool.cpp.

References theta_2.

Referenced by display_callback(), and OpenGL_drawer::draw_local_basis().

00101 {return theta_2;}

Here is the caller graph for this function:

int Navigator_tool::set_width ( double  _with  ) 

Definition at line 103 of file Navigator_tool.cpp.

References width.

00104 {width=_width;return 0;}

int Navigator_tool::set_height ( double  _height  ) 

Definition at line 105 of file Navigator_tool.cpp.

References height.

00106 {height=_height;return 0;}

double Navigator_tool::get_width (  ) 

Definition at line 107 of file Navigator_tool.cpp.

References width.

00108 {return width;}

double Navigator_tool::get_height (  ) 

Definition at line 109 of file Navigator_tool.cpp.

References height.

00110 {return height;}

int Navigator_tool::set_dist_obs ( double  _dist_obs  ) 

Definition at line 112 of file Navigator_tool.cpp.

References dist_obs.

00113 {dist_obs=_dist_obs;return 0;};

double Navigator_tool::get_dist_obs (  ) 

Definition at line 114 of file Navigator_tool.cpp.

References dist_obs.

Referenced by display_callback(), OpenGL_drawer::draw_local_basis(), and keyboard_callback().

00115 {return dist_obs;}

Here is the caller graph for this function:

int Navigator_tool::increase_dist_obs ( double  factor  ) 

Definition at line 187 of file Navigator_tool.cpp.

References dist_obs.

Referenced by motion_callback().

00188 {
00189   dist_obs += (abs(dist_obs)+1)*factor;
00190   if(dist_obs>=0)
00191     dist_obs=0;
00192   return 0;
00193 }

Here is the caller graph for this function:

int Navigator_tool::increase_dist_obs2 ( double  factor  ) 

Definition at line 194 of file Navigator_tool.cpp.

References dist_obs2.

00195 {
00196   dist_obs2 += (abs(dist_obs2)+1)*factor;
00197   if(dist_obs2>=0)
00198     dist_obs2=0;
00199   return 0;
00200 }

int Navigator_tool::increase_dist_obs3 ( double  factor  ) 

Definition at line 201 of file Navigator_tool.cpp.

References dist_obs3.

00202 {
00203   dist_obs3 += (abs(dist_obs3)+1)*factor;
00204   if(dist_obs3>=0)
00205     dist_obs3=0;
00206   return 0;
00207 }

int Navigator_tool::increase_dist_obs4 ( double  factor  ) 

Definition at line 208 of file Navigator_tool.cpp.

References dist_obs4.

00209 {
00210   dist_obs4 += (abs(dist_obs4)+1)*factor;
00211   if(dist_obs4>=0)
00212     dist_obs4=0;
00213   return 0;
00214 }

int Navigator_tool::set_dist_obs2 ( double  _dist_obs2  ) 

Definition at line 117 of file Navigator_tool.cpp.

References dist_obs2.

00118 {dist_obs2=_dist_obs2;return 0;};

double Navigator_tool::get_dist_obs2 (  ) 

Definition at line 119 of file Navigator_tool.cpp.

References dist_obs2.

00120 {return dist_obs2;}

int Navigator_tool::set_dist_obs3 ( double  _dist_obs3  ) 

Definition at line 122 of file Navigator_tool.cpp.

References dist_obs3.

00123 {dist_obs3=_dist_obs3;return 0;};

double Navigator_tool::get_dist_obs3 (  ) 

Definition at line 124 of file Navigator_tool.cpp.

References dist_obs3.

00125 {return dist_obs3;}

int Navigator_tool::set_dist_obs4 ( double  _dist_obs4  ) 

Definition at line 127 of file Navigator_tool.cpp.

References dist_obs4.

00128 {dist_obs4=_dist_obs4;return 0;};

double Navigator_tool::get_dist_obs4 (  ) 

Definition at line 129 of file Navigator_tool.cpp.

References dist_obs4.

00130 {return dist_obs4;}

int Navigator_tool::set_left_b ( int  _left_b  ) 

Definition at line 133 of file Navigator_tool.cpp.

References left_b.

Referenced by mouse_callback().

00134 {left_b=_left_b;return 0;}

Here is the caller graph for this function:

int Navigator_tool::set_right_b ( int  _right_b  ) 

Definition at line 135 of file Navigator_tool.cpp.

References right_b.

Referenced by mouse_callback().

00136 {right_b=_right_b;return 0;}

Here is the caller graph for this function:

int Navigator_tool::get_left_b (  ) 

Definition at line 137 of file Navigator_tool.cpp.

References left_b.

Referenced by motion_callback().

00138 {return left_b;}

Here is the caller graph for this function:

int Navigator_tool::get_right_b (  ) 

Definition at line 139 of file Navigator_tool.cpp.

References right_b.

Referenced by motion_callback().

00140 {return right_b;}

Here is the caller graph for this function:

int Navigator_tool::set_x_prec ( int  _x_prec  ) 

Definition at line 142 of file Navigator_tool.cpp.

References x_prec.

Referenced by motion_callback(), and mouse_callback().

00143 {x_prec=_x_prec;return 0;}

Here is the caller graph for this function:

int Navigator_tool::set_y_prec ( int  _y_prec  ) 

Definition at line 144 of file Navigator_tool.cpp.

References y_prec.

Referenced by motion_callback(), and mouse_callback().

00145 {y_prec=_y_prec;return 0;}

Here is the caller graph for this function:

int Navigator_tool::get_x_prec (  ) 

Definition at line 146 of file Navigator_tool.cpp.

References x_prec.

Referenced by motion_callback().

00147 {return x_prec;}

Here is the caller graph for this function:

int Navigator_tool::get_y_prec (  ) 

Definition at line 148 of file Navigator_tool.cpp.

References y_prec.

Referenced by motion_callback().

00149 {return y_prec;}

Here is the caller graph for this function:

int Navigator_tool::set_sel_x ( double  _sel_x  ) 

Definition at line 151 of file Navigator_tool.cpp.

References sel_x.

00152 {sel_x=_sel_x;return 0;}

int Navigator_tool::set_sel_y ( double  _sel_y  ) 

Definition at line 153 of file Navigator_tool.cpp.

References sel_y.

00154 {sel_y=_sel_y;return 0;}

int Navigator_tool::set_sel_z ( double  _sel_z  ) 

Definition at line 155 of file Navigator_tool.cpp.

References sel_z.

00156 {sel_z=_sel_z;return 0;}

double Navigator_tool::get_sel_x (  ) 

Definition at line 157 of file Navigator_tool.cpp.

References sel_x.

00158 {return sel_x;}

double Navigator_tool::get_sel_y (  ) 

Definition at line 159 of file Navigator_tool.cpp.

References sel_y.

00160 {return sel_y;}

double Navigator_tool::get_sel_z (  ) 

Definition at line 161 of file Navigator_tool.cpp.

References sel_z.

00162 {return sel_z;}

int Navigator_tool::increase_sel_x ( double  d_x  ) 

Definition at line 164 of file Navigator_tool.cpp.

References sel_x.

00165 {sel_x+=d_x;return 0;}

int Navigator_tool::increase_sel_y ( double  d_y  ) 

Definition at line 166 of file Navigator_tool.cpp.

References sel_y.

00167 {sel_y+=d_y;return 0;}

int Navigator_tool::increase_sel_z ( double  d_z  ) 

Definition at line 168 of file Navigator_tool.cpp.

References sel_z.

00169 {sel_z+=d_z;return 0;}

int Navigator_tool::go_forward ( double  d_L  ) 

Definition at line 218 of file Navigator_tool.cpp.

References PI, theta_1, theta_2, tr_x, tr_y, and tr_z.

Referenced by keyboard_callback().

00219 {
00220   tr_x -= d_L*sin(theta_2*PI/180)*cos(theta_1*PI/180);
00221   tr_y += d_L*                    sin(theta_1*PI/180);
00222   tr_z += d_L*cos(theta_2*PI/180)*cos(theta_1*PI/180);
00223 
00224   return 0;
00225 }

Here is the caller graph for this function:

int Navigator_tool::go_backward ( double  d_L  ) 

Definition at line 227 of file Navigator_tool.cpp.

References PI, theta_1, theta_2, tr_x, tr_y, and tr_z.

Referenced by keyboard_callback().

00228 {
00229   tr_x += d_L*sin(theta_2*PI/180)*cos(theta_1*PI/180);
00230   tr_y -= d_L*                    sin(theta_1*PI/180);
00231   tr_z -= d_L*cos(theta_2*PI/180)*cos(theta_1*PI/180);
00232   
00233   return 0;
00234 }

Here is the caller graph for this function:

int Navigator_tool::go_right ( double  d_L  ) 

Definition at line 236 of file Navigator_tool.cpp.

References PI, theta_1, theta_2, tr_x, tr_y, and tr_z.

Referenced by keyboard_callback().

00237 {
00238 
00239   tr_x -= d_L*cos(theta_2*PI/180)*cos(theta_1*PI/180);
00240   tr_y -= d_L*0;
00241   tr_z -= d_L*sin(theta_2*PI/180)*cos(theta_1*PI/180);
00242 
00243   return 0;
00244 }

Here is the caller graph for this function:

int Navigator_tool::go_left ( double  d_L  ) 

Definition at line 246 of file Navigator_tool.cpp.

References PI, theta_1, theta_2, tr_x, tr_y, and tr_z.

Referenced by keyboard_callback().

00247 {
00248   tr_x += d_L*cos(theta_2*PI/180)*cos(theta_1*PI/180);
00249   tr_y -= d_L*0;
00250   tr_z += d_L*sin(theta_2*PI/180)*cos(theta_1*PI/180);
00251 
00252   return 0;
00253 }

Here is the caller graph for this function:

int Navigator_tool::go_up ( double  d_L  ) 

Definition at line 255 of file Navigator_tool.cpp.

References PI, theta_1, theta_2, tr_x, tr_y, and tr_z.

Referenced by keyboard_callback().

00256 {
00257   tr_x -= d_L*sin(theta_2*PI/180)*sin(theta_1*PI/180);
00258   tr_y -= d_L*                    cos(theta_1*PI/180);
00259   tr_z += d_L*cos(theta_2*PI/180)*sin(theta_1*PI/180);
00260   
00261   return 0;
00262 }

Here is the caller graph for this function:

int Navigator_tool::go_down ( double  d_L  ) 

Definition at line 264 of file Navigator_tool.cpp.

References PI, theta_1, theta_2, tr_x, tr_y, and tr_z.

Referenced by keyboard_callback().

00265 {
00266   tr_x += d_L*sin(theta_2*PI/180)*sin(theta_1*PI/180);
00267   tr_y += d_L*                    cos(theta_1*PI/180);
00268   tr_z -= d_L*cos(theta_2*PI/180)*sin(theta_1*PI/180);
00269 
00270   return 0;
00271 }

Here is the caller graph for this function:

int Navigator_tool::increase_time (  ) 

Definition at line 273 of file Navigator_tool.cpp.

References kt.

Referenced by idle_callback().

00274 {++kt;return 0;}

Here is the caller graph for this function:

int Navigator_tool::get_counter (  ) 

Definition at line 276 of file Navigator_tool.cpp.

References kt.

00277 {return kt;}

double Navigator_tool::get_time (  ) 

Definition at line 280 of file Navigator_tool.cpp.

References end_t, kt, N_speed, and start_t.

00281 {
00282   //double start_t=0.28;
00283   //double end_t = 1.4;
00284 
00285   double y=(double)(kt%(int)N_speed)/(double)(N_speed+1);
00286   double u = start_t + y*(end_t-start_t);
00287   //double u = 0.001 + y*0.998;
00288   return u;
00289 }

int Navigator_tool::set_screen_size ( int  X_screen,
int  Y_screen 
)

Definition at line 292 of file Navigator_tool.cpp.

References X_screen, and Y_screen.

Referenced by main(), and reshape_callback().

00293 {
00294   X_screen = _X_screen;
00295   Y_screen = _Y_screen;
00296   return 0;
00297 }

Here is the caller graph for this function:

int Navigator_tool::get_X_screen (  )  const

Definition at line 298 of file Navigator_tool.cpp.

References X_screen.

Referenced by display_callback(), and OpenGL_drawer::init_opengl().

00299 {return X_screen;}

Here is the caller graph for this function:

int Navigator_tool::get_Y_screen (  )  const

Definition at line 300 of file Navigator_tool.cpp.

References Y_screen.

Referenced by display_callback(), and OpenGL_drawer::init_opengl().

00301 {return Y_screen;}

Here is the caller graph for this function:

double Navigator_tool::get_screen_ratio (  )  const

Definition at line 303 of file Navigator_tool.cpp.

References X_screen, and Y_screen.

Referenced by display_callback().

00304 {
00305   return (double)X_screen/(double)Y_screen;
00306 }

Here is the caller graph for this function:

int Navigator_tool::set_percent_x ( double  _percent_x  ) 

Definition at line 308 of file Navigator_tool.cpp.

References percent_x.

00309 {percent_x = _percent_x;return 0;}

int Navigator_tool::set_percent_y ( double  _percent_y  ) 

Definition at line 310 of file Navigator_tool.cpp.

References percent_y.

00311 {percent_y = _percent_y;return 0;}

double Navigator_tool::get_percent_x (  )  const

Definition at line 312 of file Navigator_tool.cpp.

References percent_x.

00313 {return percent_x;}

double Navigator_tool::get_percent_y (  )  const

Definition at line 314 of file Navigator_tool.cpp.

References percent_y.

00315 {return percent_y;}

int Navigator_tool::set_current_view ( int  curent_view  ) 

Definition at line 318 of file Navigator_tool.cpp.

References current_view.

00319 {current_view = _current_view;return 0;}

int Navigator_tool::get_current_view (  )  const

Definition at line 320 of file Navigator_tool.cpp.

References current_view.

Referenced by motion_callback().

00321 {return current_view;}

Here is the caller graph for this function:

int Navigator_tool::get_selection_mode (  )  const

Definition at line 323 of file Navigator_tool.cpp.

References selection_mode.

00324 {return selection_mode;return 0;}

int Navigator_tool::set_selection_mode ( int  mode  ) 

Definition at line 325 of file Navigator_tool.cpp.

References selection_mode.

00326 {selection_mode = mode;return 0;}

int Navigator_tool::set_selected_joint ( int  _closest_joint  ) 

Definition at line 328 of file Navigator_tool.cpp.

References selected_joint.

00329 {selected_joint = _selected_joint;return 0;}

int Navigator_tool::get_selected_joint (  )  const

Definition at line 330 of file Navigator_tool.cpp.

References selected_joint.

00331 {return selected_joint;}

int Navigator_tool::get_view_selection_mode (  )  const

Definition at line 333 of file Navigator_tool.cpp.

References view_selection_mode.

00334 {return view_selection_mode;}

int Navigator_tool::set_view_selection_mode ( int  _view_selection_mode  ) 

Definition at line 335 of file Navigator_tool.cpp.

References view_selection_mode.

00336 {view_selection_mode = _view_selection_mode;return 0;}

int Navigator_tool::set_rotation_mode ( int  _rotation_mode  ) 

Definition at line 340 of file Navigator_tool.cpp.

References rotation_mode.

00341 {rotation_mode=_rotation_mode;return 0;}

int Navigator_tool::get_rotation_mode (  )  const

Definition at line 338 of file Navigator_tool.cpp.

References rotation_mode.

00339 {return rotation_mode;}

int Navigator_tool::set_N_speed ( int  _N_speed  ) 

Definition at line 344 of file Navigator_tool.cpp.

References N_speed.

00345 {
00346   N_speed=_N_speed;
00347   return 0;
00348 }

int Navigator_tool::get_N_speed (  )  const

Definition at line 350 of file Navigator_tool.cpp.

References N_speed.

00351 {return (int)N_speed;}

V_3D Navigator_tool::get_current_position (  )  const

Definition at line 353 of file Navigator_tool.cpp.

References dist_obs, PI, theta_1, theta_2, tr_x, tr_y, and tr_z.

Referenced by draw_scene().

00354 {
00355   V_3D current;
00356 
00357   current[0] = tr_x-dist_obs*sin(theta_2*PI/180)*cos(theta_1*PI/180);
00358   current[1] = tr_y+dist_obs                    *sin(theta_1*PI/180);
00359   current[2] = tr_z+dist_obs*cos(theta_2*PI/180)*cos(theta_1*PI/180);
00360 
00361   return current;
00362 }

Here is the caller graph for this function:

int Navigator_tool::is_skeleton_shown (  )  const

Definition at line 364 of file Navigator_tool.cpp.

References skeleton_shown.

00364 {return skeleton_shown;}

int Navigator_tool::set_skeleton_shown ( int  is_shown  ) 

Definition at line 365 of file Navigator_tool.cpp.

References skeleton_shown.

00365 {skeleton_shown=is_shown;return 0;}


Member Data Documentation

double Navigator_tool::tr_x [private]

double Navigator_tool::tr_y [private]

double Navigator_tool::tr_z [private]

double Navigator_tool::theta_1 [private]

double Navigator_tool::theta_2 [private]

double Navigator_tool::width [private]

Definition at line 164 of file Navigator_tool.h.

Referenced by get_width(), and set_width().

double Navigator_tool::height [private]

Definition at line 164 of file Navigator_tool.h.

Referenced by get_height(), and set_height().

double Navigator_tool::dist_obs [private]

double Navigator_tool::tr2_x [private]

Definition at line 167 of file Navigator_tool.h.

Referenced by get_tr2_x(), and set_tr2_x().

double Navigator_tool::tr2_y [private]

Definition at line 167 of file Navigator_tool.h.

Referenced by get_tr2_y(), and set_tr2_y().

double Navigator_tool::tr2_z [private]

Definition at line 167 of file Navigator_tool.h.

Referenced by get_tr2_z(), and set_tr2_z().

double Navigator_tool::dist_obs2 [private]

Definition at line 168 of file Navigator_tool.h.

Referenced by get_dist_obs2(), increase_dist_obs2(), Navigator_tool(), and set_dist_obs2().

double Navigator_tool::tr3_x [private]

Definition at line 169 of file Navigator_tool.h.

Referenced by get_tr3_x(), and set_tr3_x().

double Navigator_tool::tr3_y [private]

Definition at line 169 of file Navigator_tool.h.

Referenced by get_tr3_y(), and set_tr3_y().

double Navigator_tool::tr3_z [private]

Definition at line 169 of file Navigator_tool.h.

Referenced by get_tr3_z(), and set_tr3_z().

double Navigator_tool::dist_obs3 [private]

Definition at line 170 of file Navigator_tool.h.

Referenced by get_dist_obs3(), increase_dist_obs3(), Navigator_tool(), and set_dist_obs3().

double Navigator_tool::tr4_x [private]

Definition at line 171 of file Navigator_tool.h.

Referenced by get_tr4_x(), and set_tr4_x().

double Navigator_tool::tr4_y [private]

Definition at line 171 of file Navigator_tool.h.

Referenced by get_tr4_y(), and set_tr4_y().

double Navigator_tool::tr4_z [private]

Definition at line 171 of file Navigator_tool.h.

Referenced by get_tr4_z(), and set_tr4_z().

double Navigator_tool::dist_obs4 [private]

Definition at line 172 of file Navigator_tool.h.

Referenced by get_dist_obs4(), increase_dist_obs4(), Navigator_tool(), and set_dist_obs4().

int Navigator_tool::X_screen [private]

Definition at line 174 of file Navigator_tool.h.

Referenced by get_screen_ratio(), get_X_screen(), Navigator_tool(), and set_screen_size().

int Navigator_tool::Y_screen [private]

Definition at line 174 of file Navigator_tool.h.

Referenced by get_screen_ratio(), get_Y_screen(), Navigator_tool(), and set_screen_size().

double Navigator_tool::percent_x [private]

Definition at line 175 of file Navigator_tool.h.

Referenced by get_percent_x(), Navigator_tool(), and set_percent_x().

double Navigator_tool::percent_y [private]

Definition at line 175 of file Navigator_tool.h.

Referenced by get_percent_y(), Navigator_tool(), and set_percent_y().

int Navigator_tool::left_b [private]

Definition at line 178 of file Navigator_tool.h.

Referenced by get_left_b(), and set_left_b().

int Navigator_tool::right_b [private]

Definition at line 178 of file Navigator_tool.h.

Referenced by get_right_b(), and set_right_b().

int Navigator_tool::x_prec [private]

Definition at line 179 of file Navigator_tool.h.

Referenced by get_x_prec(), and set_x_prec().

int Navigator_tool::y_prec [private]

Definition at line 179 of file Navigator_tool.h.

Referenced by get_y_prec(), and set_y_prec().

double Navigator_tool::sel_x [private]

Definition at line 182 of file Navigator_tool.h.

Referenced by get_sel_x(), increase_sel_x(), and set_sel_x().

double Navigator_tool::sel_y [private]

Definition at line 182 of file Navigator_tool.h.

Referenced by get_sel_y(), increase_sel_y(), and set_sel_y().

double Navigator_tool::sel_z [private]

Definition at line 182 of file Navigator_tool.h.

Referenced by get_sel_z(), increase_sel_z(), and set_sel_z().

int Navigator_tool::kt [private]

Definition at line 185 of file Navigator_tool.h.

Referenced by get_counter(), get_time(), increase_time(), and Navigator_tool().

double Navigator_tool::N_speed [private]

Definition at line 186 of file Navigator_tool.h.

Referenced by get_N_speed(), get_time(), Navigator_tool(), and set_N_speed().

double Navigator_tool::start_t [private]

Definition at line 187 of file Navigator_tool.h.

Referenced by get_time(), and Navigator_tool().

double Navigator_tool::end_t [private]

Definition at line 187 of file Navigator_tool.h.

Referenced by get_time(), and Navigator_tool().

Definition at line 190 of file Navigator_tool.h.

Referenced by get_current_view(), Navigator_tool(), and set_current_view().

Definition at line 192 of file Navigator_tool.h.

Referenced by get_selection_mode(), Navigator_tool(), and set_selection_mode().

Definition at line 193 of file Navigator_tool.h.

Referenced by get_selected_joint(), Navigator_tool(), and set_selected_joint().

Definition at line 195 of file Navigator_tool.h.

Referenced by get_rotation_mode(), and set_rotation_mode().

Definition at line 197 of file Navigator_tool.h.

Referenced by is_skeleton_shown(), Navigator_tool(), and set_skeleton_shown().


The documentation for this class was generated from the following files:

Generated on Mon Mar 30 16:57:46 2009 by  doxygen 1.5.6