Assignments
Assignments
|
#include <window.h>
Public Types | |
enum | { NO_CULL , CULL_BACK_FACE , CULL_FRONT_FACE } |
Static Public Member Functions | |
static int | PrintError (int showNoError=0) |
static void | WriteLeftString (int x, int y, const std::string &str) |
static void | WriteRightString (int x, int y, const std::string &str) |
static Image::Image32 | TakeSnapshot (void) |
static void | IdleFunction (void) |
static void | VisibilityFunction (int state) |
static void | SetEvaluators (void) |
static void | MouseFunction (int button, int state, int x, int y) |
static void | MotionFunction (int x, int y) |
static void | PassiveMotionFunction (int x, int y) |
static void | KeyboardFunction (unsigned char c, int x, int y) |
static void | SpecialFunction (int key, int x, int y) |
static void | DrawModeMenu (int entry) |
static void | CullModeMenu (int entry) |
static void | InterpolationTypeMenu (int entry) |
static void | ParametrizationTypeMenu (int entry) |
static void | MainMenu (int entry) |
static void | DisplayFunction (void) |
static void | ReshapeFunction (int width, int height) |
static void | View (Scene &scene, int width, int height) |
Static Public Attributes | |
static const char | KEY_ESCAPE = '\033' |
static Scene * | scene = NULL |
static Mouse | mouse |
static Util::Point3D | center |
static double | radius |
static bool | isVisible |
static int | frameCount |
static Util::Timer | frameCountTimer |
static double | frameRate |
static Util::Timer | timer |
static int | interpolationType = Interpolation::NEAREST |
static int | parametrizationType = RotationParameters::TRIVIAL |
Private Types | |
enum | { QUIT , RAY_TRACE , WRITE_SCENE } |
Static Private Attributes | |
static int | _width |
static int | _height |
This class represents the OpenGL window within which the 3D models are drawn.
|
static |
This function is called when the user updates the cull mode in the drop-down menu.
|
static |
This function draws the OpenGL window.
|
static |
This function is called when the user updates the draw mode in the drop-down menu.
|
static |
This function is called when no events need to be processed.
|
static |
This function is called when the user updates the curve fitting method in the drop-down menu.
|
static |
This function is called when the user presses a key.
|
static |
This function is called when the user selects one of the main menu options in the drop-down menu.
|
static |
This function is called when one of the mouse buttons is depressed and the mouse is moved.
|
static |
This function is called when the state of a mouse button is changed
|
static |
This function is called when the user updates the rotation parametrization method in the drop-down menu.
|
static |
This function is called when the mouse is moved moved but no buttons are depressed.
|
static |
This function prints out the state of the OpenGL error.
|
static |
This function is called when the window is resized.
|
static |
This function (re)sets the evaluators
|
static |
This function is called when the user presses one of the special keys.
|
static |
This function reads the current frame buffer and sets the pixels of the image accordingly.
|
static |
This function instantiates the OpenGL window, reading in the Scene from the specified file and setting the initial OpenGL window size. The function never returns.
|
static |
This function is called when the visibility state of the window changes.
|
static |
This function writes out the specified string, left-aligned, at the specified location, onto the OpenGL window.
|
static |
This function writes out the specified string, right-aligned, at the specified location, onto the OpenGL window.
|
staticprivate |
|
staticprivate |
The dimensions of the window
|
static |
The center of the bounding box of the drawn Scene
|
static |
The number of frames that have been drawn since the last updated frame rate
|
static |
The time of the last updated frame rate
|
static |
The current frame rate
|
static |
The type of interpolation to be used for animation
|
static |
Is the window visible
|
static |
The ascii value of the escape character
|
static |
The current state of the mouse
|
static |
The type of parametrization to be used for animation
|
static |
The radius of the bounding box of the drawn Scene
|
static |
A pointer to the scene that is drawn.
|
static |
A timer for tracking the frame type