#include "display_win.h"Go to the source code of this file.
Defines | |
| #define | PBCSHIFT(a, shift, origin) if(enable_pbc){a-=origin;a/=2;a+=shift;a-=rint(a);a*=2;a+=origin;} |
| #define | _toler 1.0e-6 |
Functions | |
| void | display (void) |
| void | viewport_Set (int win, int w, int h) |
| void | opengl_SurfGenSphere (SphereRep dtype, float radius, int slices, int stacks) |
| void | event_WinObjGet (int win, int *p) |
| void | event_WinReshape (int width, int height) |
| void | event_KeyboardProc (unsigned char ch, int x, int y) |
| void | event_SpecialProc (int key, int x, int y) |
| void | event_IdleProc () |
| void | event_Butp (int button, int state, int x, int y) |
| void | event_Motion (int mx, int my) |
| void | event_Butr (int mx, int my, EventButtonId button_id) |
| void | event_WinActionRotxy (int win, int mx, int my, int dx, int dy) |
| void | event_WinActionRotz (int win, int mx, int my, int dx, int dy) |
| void | event_WinActionPick (int win, int mx, int my, int dx, int dy) |
| void | event_WinActionTransxy (int win, int mx, int my, int dx, int dy) |
| void | event_WinActionTransz (int win, int mx, int my, int dx, int dy) |
| void | event_WinActionScale (int win, int mx, int my, int dx, int dy) |
Variables | |
| static int | num_win = 0 |
| static int | win_table [100][2] |
| static void(* | action_func [BUTTON_MAX])(int, int, int, int, int) |
| #define _toler 1.0e-6 |
| #define PBCSHIFT | ( | a, | |||
| shift, | |||||
| origin | ) | if(enable_pbc){a-=origin;a/=2;a+=shift;a-=rint(a);a*=2;a+=origin;} |
Definition at line 26 of file display_win.cpp.
| void display | ( | void | ) |
Definition at line 472 of file display_win.cpp.
References event_WinObjGet().
Referenced by event_KeyboardProc(), event_WinActionRotxy(), event_WinActionRotz(), event_WinActionScale(), event_WinActionTransxy(), and event_WinActionTransz().
| void event_Butp | ( | int | button, | |
| int | state, | |||
| int | x, | |||
| int | y | |||
| ) |
Definition at line 922 of file display_win.cpp.
References action_func, BUTTON_CTRL_LEFT, BUTTON_CTRL_MIDDLE, BUTTON_CTRL_RIGHT, BUTTON_LEFT, BUTTON_MAX, BUTTON_MIDDLE, BUTTON_RIGHT, BUTTON_SHIFT_LEFT, BUTTON_SHIFT_MIDDLE, BUTTON_SHIFT_RIGHT, event_Butr(), EVENT_BUTTON_PRESS, and event_WinObjGet().
| void event_Butr | ( | int | mx, | |
| int | my, | |||
| EventButtonId | button_id | |||
| ) |
Definition at line 1076 of file display_win.cpp.
References EVENT_NONE, event_WinObjGet(), and WINDOW_ACTION_NONE.
Referenced by event_Butp().
| void event_IdleProc | ( | ) |
| void event_KeyboardProc | ( | unsigned char | ch, | |
| int | x, | |||
| int | y | |||
| ) |
Definition at line 791 of file display_win.cpp.
References display(), event_WinObjGet(), and KEY_ESCAPE.
| void event_Motion | ( | int | mx, | |
| int | my | |||
| ) |
Definition at line 1029 of file display_win.cpp.
References EVENT_MOUSE_MOTION, event_WinObjGet(), and WINDOW_ACTION_NONE.
| void event_SpecialProc | ( | int | key, | |
| int | x, | |||
| int | y | |||
| ) |
| void event_WinActionPick | ( | int | win, | |
| int | mx, | |||
| int | my, | |||
| int | dx, | |||
| int | dy | |||
| ) |
Definition at line 1181 of file display_win.cpp.
| void event_WinActionRotxy | ( | int | win, | |
| int | mx, | |||
| int | my, | |||
| int | dx, | |||
| int | dy | |||
| ) |
Definition at line 1105 of file display_win.cpp.
References display(), EVENT_BUTTON_PRESS, event_WinObjGet(), and WINDOW_ACTION_ROTATE_XY.
| void event_WinActionRotz | ( | int | win, | |
| int | mx, | |||
| int | my, | |||
| int | dx, | |||
| int | dy | |||
| ) |
Definition at line 1149 of file display_win.cpp.
References display(), event_WinObjGet(), and WINDOW_ACTION_ROTATE_Z.
| void event_WinActionScale | ( | int | win, | |
| int | mx, | |||
| int | my, | |||
| int | dx, | |||
| int | dy | |||
| ) |
Definition at line 1261 of file display_win.cpp.
References display(), event_WinObjGet(), and WINDOW_ACTION_SCALE.
| void event_WinActionTransxy | ( | int | win, | |
| int | mx, | |||
| int | my, | |||
| int | dx, | |||
| int | dy | |||
| ) |
Definition at line 1198 of file display_win.cpp.
References display(), event_WinObjGet(), and WINDOW_ACTION_TRANSLATE_XY.
| void event_WinActionTransz | ( | int | win, | |
| int | mx, | |||
| int | my, | |||
| int | dx, | |||
| int | dy | |||
| ) |
Definition at line 1231 of file display_win.cpp.
References display(), event_WinObjGet(), and WINDOW_ACTION_TRANSLATE_Z.
| void event_WinObjGet | ( | int | win, | |
| int * | p | |||
| ) |
Definition at line 697 of file display_win.cpp.
References num_win, and win_table.
Referenced by display(), event_Butp(), event_Butr(), event_KeyboardProc(), event_Motion(), event_SpecialProc(), event_WinActionRotxy(), event_WinActionRotz(), event_WinActionScale(), event_WinActionTransxy(), event_WinActionTransz(), event_WinReshape(), and viewport_Set().
| void event_WinReshape | ( | int | width, | |
| int | height | |||
| ) |
| void opengl_SurfGenSphere | ( | SphereRep | dtype, | |
| float | radius, | |||
| int | slices, | |||
| int | stacks | |||
| ) |
Definition at line 554 of file display_win.cpp.
References M_PI, SPHERE_REP_LINE, and SPHERE_REP_POINT.
| void viewport_Set | ( | int | win, | |
| int | w, | |||
| int | h | |||
| ) |
Definition at line 497 of file display_win.cpp.
References event_WinObjGet().
Referenced by event_WinReshape().
void(* action_func[BUTTON_MAX])(int, int, int, int, int) [static] |
Referenced by event_Butp().
int num_win = 0 [static] |
Definition at line 17 of file display_win.cpp.
Referenced by event_IdleProc(), and event_WinObjGet().
int win_table[100][2] [static] |
Definition at line 18 of file display_win.cpp.
Referenced by event_IdleProc(), and event_WinObjGet().
1.5.7.1