00001 #ifndef Pv_Scene_Included 00002 #define Pv_Scene_Included 00003 00004 #include "pv_light.h" 00005 #include "pv_camera.h" 00006 #include "pv_point_vector.h" 00007 #include "pv_vector.h" 00008 #include "pv_bicyclist.h" 00009 #include "pv_spline.h" 00010 00011 class Pv_Scene{ 00012 00013 /*camera and light*/ 00014 Pv_Camera *my_camera; 00015 Pv_Light *my_light; 00016 00017 /*bool variables*/ 00018 bool my_bicyclist_path_displayed; 00019 bool my_spline_displayed; 00020 bool my_target_path_displayed; 00021 bool my_computation_done; 00022 00023 /*modes*/ 00024 int camera_mode; 00025 00026 /*path related vectors*/ 00027 Pv_Point_Vector *my_target_path; 00028 Pv_Point_Vector *my_target_control_points; 00029 Pv_Point_Vector *my_bicyclist_path; 00030 Pv_Spline *my_spline; 00031 00032 /*the bicyclist*/ 00033 public: 00034 Pv_Bicyclist *my_bicyclist; 00035 private: 00036 double old_spline_position; 00037 double old_future_spline_position; 00038 00039 public: 00040 00041 Pv_Scene(int argc,char **argv); 00042 00043 void init_OpenGL(); 00044 void step(); 00045 void restart(); 00046 void display(); 00047 void reshape(); 00048 00049 void set_camera_mode(int mode); 00050 00051 /*get and set*/ 00052 Pv_Camera *get_camera(); 00053 00054 void set_my_bicyclist_path_displayed(bool value); 00055 void set_my_spline_displayed(bool value); 00056 void set_my_target_path_displayed(bool value); 00057 void set_my_target_path(const char* filename); 00058 }; 00059 #endif
1.2.18