Defines | |
| #define | GLUT_SPACE 32 |
Functions | |
| static void | display_callback () |
| static void | reshape_callback (int width, int height) |
| static void | keyboard_callback (unsigned char key, int x, int y) |
| static void | idle_callback (int value) |
| static void | motion_callback (int x, int y) |
| static void | mouse_callback (int button, int action, int x, int y) |
| void | draw_orientation () |
| void | draw_pointer () |
| void | draw_fps () |
| void | draw_extra () |
| void | draw_sphere (const MC_v3d ¢er, const double &radius) |
| int | setup_opengl (int argc, char **argv) |
| int | draw_scene () |
| int | load_model () |
| double | get_rand () |
| int | evolve () |
| int | main (int argc, char *argv[]) |
Variables | |
| MC_navigator_tool | navigator |
| int | counter = 0 |
| bool | is_draw_grid = false |
| cpe_mesh::mesh | sphere |
| cpe_mesh::mesh | mesh_0 |
| cpe_mesh::mesh | mesh_tp |
| std::map< int, std::list< int > > | ring |
| std::vector< double > | normal |
| std::vector< double > | color |
| #define GLUT_SPACE 32 |
| static void display_callback | ( | ) | [static] |
References counter, mesh_conv::MC_navigator_tool::current_time, mesh_conv::MC_navigator_tool::delta_time(), mesh_conv::MC_navigator_tool::dist_cam1, draw_fps(), draw_orientation(), draw_pointer(), draw_scene(), mesh_conv::MC_navigator_tool::increase_frame_number(), mesh_conv::MC_matrix::pointer(), mesh_conv::MC_navigator_tool::projection_param(), mesh_conv::MC_navigator_tool::tr_cam1, mesh_conv::MC_navigator_tool::trackball_cam1, mesh_conv::MC_navigator_tool::update_fps(), mesh_conv::MC_navigator_tool::x_screen_size_1, and mesh_conv::MC_navigator_tool::y_screen_size_1.
Referenced by setup_opengl().

| void draw_extra | ( | ) |
Referenced by draw_scene().
| void draw_fps | ( | ) |
References mesh_conv::MC_navigator_tool::current_fps, and mesh_conv::MC_string_converter::to_string().
Referenced by display_callback().

| void draw_orientation | ( | ) |
References mesh_conv::MC_matrix::pointer(), and mesh_conv::MC_navigator_tool::trackball_cam1.
Referenced by display_callback().

| void draw_pointer | ( | ) |
References mesh_conv::MC_navigator_tool::dist_cam1, mesh_conv::MC_matrix::pointer(), and mesh_conv::MC_navigator_tool::trackball_cam1.
Referenced by display_callback().

| int draw_scene | ( | ) |
References color, draw_extra(), cpe_mesh::mesh::get_connectivity(), cpe_mesh::mesh::get_vertex(), is_draw_grid, normal, and cpe_mesh::mesh::triangle_number().
Referenced by display_callback().

| void draw_sphere | ( | const MC_v3d & | center, | |
| const double & | radius | |||
| ) |
References cpe_mesh::mesh::get_connectivity(), cpe_mesh::mesh::get_vertex(), and cpe_mesh::mesh::triangle_number().

| int evolve | ( | ) |
Referenced by idle_callback().
| double get_rand | ( | ) |
| static void idle_callback | ( | int | value | ) | [static] |
| static void keyboard_callback | ( | unsigned char | key, | |
| int | x, | |||
| int | y | |||
| ) | [static] |
References mesh_conv::MC_navigator_tool::dist_cam1, mesh_conv::MC_navigator_tool::go_forward_trackball_cam1(), mesh_conv::MC_navigator_tool::go_right_trackball_cam1(), mesh_conv::MC_navigator_tool::go_up_trackball_cam1(), is_draw_grid, and mesh_conv::MC_navigator_tool::tr_cam1.
Referenced by setup_opengl().

| int load_model | ( | ) |
References color, normal, cpe_mesh::mesh::normal_vertex(), and cpe_mesh::mesh::scale_unity().
Referenced by main().

| int main | ( | int | argc, | |
| char * | argv[] | |||
| ) |
References load_model(), setup_opengl(), mesh_conv::MC_navigator_tool::x_screen_size_1, and mesh_conv::MC_navigator_tool::y_screen_size_1.

| static void motion_callback | ( | int | x, | |
| int | y | |||
| ) | [static] |
References mesh_conv::MC_navigator_tool::dist_cam1, mesh_conv::MC_navigator_tool::left_button, mesh_conv::MC_navigator_tool::right_button, mesh_conv::MC_navigator_tool::trackball_cam1, mesh_conv::MC_navigator_tool::x_previous, mesh_conv::MC_navigator_tool::x_screen_size_1, mesh_conv::MC_navigator_tool::y_previous, and mesh_conv::MC_navigator_tool::y_screen_size_1.
Referenced by setup_opengl().
| static void mouse_callback | ( | int | button, | |
| int | action, | |||
| int | x, | |||
| int | y | |||
| ) | [static] |
| static void reshape_callback | ( | int | width, | |
| int | height | |||
| ) | [static] |
References mesh_conv::MC_navigator_tool::x_screen_size_1, and mesh_conv::MC_navigator_tool::y_screen_size_1.
Referenced by setup_opengl().
| int setup_opengl | ( | int | argc, | |
| char ** | argv | |||
| ) |
References display_callback(), idle_callback(), keyboard_callback(), motion_callback(), mouse_callback(), reshape_callback(), mesh_conv::MC_navigator_tool::x_screen_size_1, and mesh_conv::MC_navigator_tool::y_screen_size_1.
Referenced by main().

| std::vector<double> color |
Referenced by draw_scene(), and load_model().
| int counter = 0 |
Referenced by display_callback(), and mesh_conv::MC_io_off::read_off().
| bool is_draw_grid = false |
Referenced by draw_scene(), and keyboard_callback().
| std::vector<double> normal |
Referenced by draw_scene(), and load_model().
| std::map<int,std::list<int> > ring |
1.6.1