Navigator_tool.h

Go to the documentation of this file.
00001 /*
00002 ** Navigator_tool.h
00003 ** 
00004 ** Made by damien
00005 ** Login   <damien@ortie>
00006 ** 
00007 ** Started on  Sat Jan 26 11:17:13 2008 damien
00008 ** Last update Sat Jan 26 11:17:13 2008 damien
00009 */
00010 
00011 #ifndef         NAVIGATOR_TOOL_H_
00012 # define        NAVIGATOR_TOOL_H_
00013 
00014 #include <stdlib.h>
00015 #include <iostream>
00016 #include <cmath>
00017 #include <string>
00018 #include <errno.h>
00019 #include <stdio.h>
00020 
00021 #include <vector>
00022 using namespace std;
00023 
00024 #include <V_3D.h>
00025 
00026 
00027 class Navigator_tool
00028 {                                               
00029  public:
00030 
00031   Navigator_tool();
00032   ~Navigator_tool();
00033 
00034   int set_tr_x(double _tr_x);
00035   int set_tr_y(double _tr_y);
00036   int set_tr_z(double _tr_z);
00037   double get_tr_x();
00038   double get_tr_y();
00039   double get_tr_z();
00040 
00041   int set_tr2_x(double _tr2_x);
00042   int set_tr2_y(double _tr2_y);
00043   int set_tr2_z(double _tr2_z);
00044   double get_tr2_x();
00045   double get_tr2_y();
00046   double get_tr2_z();
00047 
00048   int set_tr3_x(double _tr3_x);
00049   int set_tr3_y(double _tr3_y);
00050   int set_tr3_z(double _tr3_z);
00051   double get_tr3_x();
00052   double get_tr3_y();
00053   double get_tr3_z();
00054 
00055   int set_tr4_x(double _tr4_x);
00056   int set_tr4_y(double _tr4_y);
00057   int set_tr4_z(double _tr4_z);
00058   double get_tr4_x();
00059   double get_tr4_y();
00060   double get_tr4_z();
00061 
00062 
00063 
00064   int set_theta_1(double _theta_1);
00065   int set_theta_2(double _theta_2);
00066   int increase_theta_1(double d_theta);
00067   int increase_theta_2(double d_theta);
00068   double get_theta_1();
00069   double get_theta_2();
00070 
00071   int set_width(double _with);
00072   int set_height(double _height);
00073   double get_width();
00074   double get_height();
00075 
00076   int set_dist_obs(double _dist_obs);
00077   double get_dist_obs();
00078   int increase_dist_obs(double factor);
00079   int increase_dist_obs2(double factor);
00080   int increase_dist_obs3(double factor);
00081   int increase_dist_obs4(double factor);
00082 
00083   int set_dist_obs2(double _dist_obs2);
00084   double get_dist_obs2();
00085   int set_dist_obs3(double _dist_obs3);
00086   double get_dist_obs3();
00087   int set_dist_obs4(double _dist_obs4);
00088   double get_dist_obs4();
00089 
00090 
00091   int set_left_b(int _left_b);
00092   int set_right_b(int _right_b);
00093   int get_left_b();
00094   int get_right_b();
00095 
00096   int set_x_prec(int _x_prec);
00097   int set_y_prec(int _y_prec);
00098   int get_x_prec();
00099   int get_y_prec();
00100 
00101   int set_sel_x(double _sel_x);
00102   int set_sel_y(double _sel_y);
00103   int set_sel_z(double _sel_z);
00104   double get_sel_x();
00105   double get_sel_y();
00106   double get_sel_z();
00107 
00108   int increase_sel_x(double d_x);
00109   int increase_sel_y(double d_y);
00110   int increase_sel_z(double d_z);
00111 
00112 
00113   int go_forward(double d_L);
00114   int go_backward(double d_L);
00115   int go_right(double d_L);
00116   int go_left(double d_L);
00117   int go_up(double d_L);
00118   int go_down(double d_L);
00119 
00120 
00121   int increase_time();
00122   int get_counter();
00123   double get_time();
00124 
00125 
00126   int set_screen_size(int X_screen,int Y_screen);
00127   int get_X_screen() const;
00128   int get_Y_screen() const;
00129   double get_screen_ratio() const;
00130 
00131   int set_percent_x(double _percent_x);
00132   int set_percent_y(double _percent_y);
00133   double get_percent_x() const;
00134   double get_percent_y() const;
00135 
00136   int set_current_view(int curent_view);
00137   int get_current_view() const;
00138 
00139 
00140   int get_selection_mode() const;
00141   int set_selection_mode(int mode);
00142 
00143   int set_selected_joint(int _closest_joint);
00144   int get_selected_joint() const;
00145 
00146   int get_view_selection_mode() const;
00147   int set_view_selection_mode(int _view_selection_mode);
00148 
00149   int set_rotation_mode(int _rotation_mode);
00150   int get_rotation_mode() const;
00151 
00152   int set_N_speed(int _N_speed);
00153   int get_N_speed() const;
00154 
00155   V_3D get_current_position() const;
00156 
00157   int is_skeleton_shown() const;
00158   int set_skeleton_shown(int is_shown);
00159 
00160  private:
00161 
00162   double tr_x,tr_y,tr_z;
00163   double theta_1,theta_2;
00164   double width,height;
00165   double dist_obs;
00166 
00167   double tr2_x,tr2_y,tr2_z;
00168   double dist_obs2;
00169   double tr3_x,tr3_y,tr3_z;
00170   double dist_obs3;
00171   double tr4_x,tr4_y,tr4_z;
00172   double dist_obs4;
00173 
00174   int X_screen,Y_screen;
00175   double percent_x,percent_y;
00176 
00177   //mouse
00178   int left_b,right_b;
00179   int x_prec,y_prec;
00180 
00181   //selection
00182   double sel_x,sel_y,sel_z;
00183   
00184   //time
00185   int kt;
00186   double N_speed;
00187   double start_t,end_t;
00188 
00189   //view
00190   int current_view;
00191 
00192   int selection_mode;
00193   int selected_joint;
00194   int view_selection_mode;
00195   int rotation_mode;
00196 
00197   int skeleton_shown;
00198 };
00199 
00200 
00201 #endif      /* !NAVIGATOR_TOOL_H_ */

Generated on Mon Mar 30 16:55:54 2009 by  doxygen 1.5.6