HOG2
|
#include "Common.h"
Go to the source code of this file.
Functions | |
void | createMenus () |
void | processMenuEvents (int option) |
void | keyPressed (unsigned char key, int x, int y) |
Called when a key is pressed, and no other keys are held down. More... | |
void | mouseMovedNoButton (int x, int y) |
void | mouseMovedButton (int x, int y) |
Called when the mouse is moved with a button pressed down. More... | |
void | mousePressedButton (int button, int state, int x, int y) |
Called when a mouse button is pressed. More... | |
static void | mousePan (int x, int y, pRecContext pContextInfo) |
static void | mouseDolly (int x, int y, pRecContext pContextInfo) |
void | renderScene (void) |
Renders the scene. More... | |
void | buildGL (int x, int y) |
End OpenGL drawing function - for visualizing trajectory merging. More... | |
void | drawGL (pRecContext pContextInfo, sf::Window &window) |
Main OpenGL drawing function. More... | |
void | drawCStringGL (char *cstrOut, GLuint fontList) |
Draws a CString in OpenGL. More... | |
static void | drawInfo (pRecContext pContextInfo) |
void | resizeWindow (int x, int y) |
Called when the window is resized. More... | |
void | resizeGL (pRecContext pContextInfo, int width, int height) |
Handles resizing of GL need context update and if the window dimensions change, a window dimension update, reseting of viewport and an update of the projection matrix. More... | |
void | updateModelView (pRecContext pContextInfo) |
void | pointPath () |
pRecContext | getCurrentContext () |
void buildGL | ( | int | xDim, |
int | yDim | ||
) |
End OpenGL drawing function - for visualizing trajectory merging.
Initializes OpenGL.
Definition at line 1222 of file SFML_HOG.cpp.
References pContextInfo, resizeGL(), and SetLighting().
Referenced by RunHOGGUI().
void createMenus | ( | ) |
Definition at line 100 of file GLUThog.cpp.
Referenced by RunHOGGUI().
void drawCStringGL | ( | char * | cstrOut, |
GLuint | fontList | ||
) |
Draws a CString in OpenGL.
Definition at line 680 of file GLUThog.cpp.
void drawGL | ( | pRecContext | pContextInfo, |
sf::Window & | window | ||
) |
Main OpenGL drawing function.
Definition at line 1136 of file SFML_HOG.cpp.
References recFrustum::bottom, recContext::camera, recContext::display, TextBox::draw(), DrawGraphics(), Graphics::Display::EndFrame(), recFrustum::far, recCamera::frust, HandleFrame(), recFrustum::left, myTextBox, recFrustum::near, recContext::numPorts, pContextInfo, recFrustum::right, setViewport(), Graphics::Display::StartFrame(), TextBox::stepTime(), recFrustum::top, updateModelView(), and updateProjection().
Referenced by RunHOGGUI().
|
static |
pRecContext getCurrentContext | ( | ) |
Definition at line 49 of file GLUThog.cpp.
References pContextInfo.
void keyPressed | ( | unsigned char | key, |
int | x, | ||
int | y | ||
) |
Called when a key is pressed, and no other keys are held down.
Definition at line 113 of file GLUThog.cpp.
References DoKeyboardCommand(), and pContextInfo.
Referenced by RunHOGGUI().
|
static |
void mouseMovedButton | ( | int | x, |
int | y | ||
) |
Called when the mouse is moved with a button pressed down.
Definition at line 176 of file GLUThog.cpp.
References recContext::currPort, gCurrButton, gDolly, gPan, gTrackball, gTrackBallRotation, HandleMouseClick(), kLeftButton, kMiddleButton, kMouseDrag, kRightButton, mouseDolly(), mousePan(), recContext::moveAllPortsTogether, recContext::numPorts, pContextInfo, point3d, rollToTrackball(), and updateProjection().
Referenced by RunHOGGUI().
void mouseMovedNoButton | ( | int | x, |
int | y | ||
) |
Definition at line 124 of file GLUThog.cpp.
References addToRotationTrackball(), recContext::camera, recRotation::cameraRotation, recContext::currPort, gDollyPanStartPoint, recContext::globalCamera, gPan, gTrackingContextInfo, HandleMouseClick(), kMouseMove, kNoButton, pContextInfo, point3d, rotation, recCamera::rotations, recCamera::thirdPerson, recCamera::viewHeight, and recCamera::viewWidth.
Referenced by RunHOGGUI().
|
static |
void mousePressedButton | ( | int | button, |
int | state, | ||
int | x, | ||
int | y | ||
) |
Called when a mouse button is pressed.
Definition at line 311 of file SFML_HOG.cpp.
void pointPath | ( | ) |
void processMenuEvents | ( | int | option | ) |
Definition at line 104 of file GLUThog.cpp.
void renderScene | ( | void | ) |
Renders the scene.
Used by GLUT for it's display function. Wraps the drawGL() function.
Definition at line 493 of file GLUThog.cpp.
References drawGL(), fps, and pContextInfo.
Referenced by RunHOGGUI().
void resizeGL | ( | pRecContext | pContextInfo, |
int | width, | ||
int | height | ||
) |
Handles resizing of GL need context update and if the window dimensions change, a window dimension update, reseting of viewport and an update of the projection matrix.
Definition at line 568 of file SFML_HOG.cpp.
References recContext::globalCamera, height, recContext::numPorts, pContextInfo, setPortCamera(), updateProjection(), recCamera::viewHeight, recCamera::viewOriginX, recCamera::viewOriginY, recCamera::viewWidth, and width.
Referenced by buildGL(), resizeWindow(), and RunHOGGUI().
void resizeWindow | ( | int | x, |
int | y | ||
) |
Called when the window is resized.
Specific format for GLUT.
Definition at line 513 of file GLUThog.cpp.
References CGSize::height, CGRect::origin, pContextInfo, resizeGL(), CGRect::size, CGSize::width, CGPoint::x, and CGPoint::y.
Referenced by RunHOGGUI().
void updateModelView | ( | pRecContext | pContextInfo | ) |