HOG2
|
Go to the source code of this file.
Classes | |
struct | CGSize |
struct | CGPoint |
struct | CGRect |
Typedefs | |
typedef struct CGSize | CGSize |
typedef struct CGPoint | CGPoint |
typedef struct CGRect | CGRect |
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 (void) |
End OpenGL drawing function - for visualizing trajectory merging. More... | |
void | drawGL (pRecContext pContextInfo) |
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, CGRect viewRect) |
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 () |
int | processFramesPerSecond (char *argument[], int maxNumArgs) |
void | SetLighting (GLfloat ambientf=0.2f, GLfloat diffusef=1.0f, GLfloat specularf=1.0f) |
pRecContext | getCurrentContext () |
void buildGL | ( | void | ) |
End OpenGL drawing function - for visualizing trajectory merging.
Initializes OpenGL.
Definition at line 1086 of file GLUThog.cpp.
References CGSize::height, pContextInfo, resizeGL(), SetLighting(), CGRect::size, and CGSize::width.
Referenced by RunHOGGUI().
void createMenus | ( | ) |
Definition at line 100 of file GLUThog.cpp.
void drawCStringGL | ( | char * | cstrOut, |
GLuint | fontList | ||
) |
Draws a CString in OpenGL.
Definition at line 680 of file GLUThog.cpp.
void drawGL | ( | pRecContext | pContextInfo | ) |
Main OpenGL drawing function.
Definition at line 987 of file GLUThog.cpp.
References recFrustum::bottom, recContext::camera, recContext::currPort, 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(), recCamera::viewHeight, and recCamera::viewWidth.
Referenced by renderScene().
|
static |
pRecContext getCurrentContext | ( | ) |
Definition at line 49 of file GLUThog.cpp.
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.
|
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.
void mouseMovedNoButton | ( | int | x, |
int | y | ||
) |
Definition at line 124 of file GLUThog.cpp.
|
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.
Referenced by RunHOGGUI().
void pointPath | ( | ) |
int processFramesPerSecond | ( | char * | argument[], |
int | maxNumArgs | ||
) |
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.
void resizeGL | ( | pRecContext | pContextInfo, |
CGRect | viewRect | ||
) |
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 533 of file GLUThog.cpp.
References recContext::globalCamera, CGSize::height, recContext::numPorts, CGRect::origin, pContextInfo, setPortCamera(), CGRect::size, updateProjection(), recCamera::viewHeight, recCamera::viewOriginX, recCamera::viewOriginY, recCamera::viewWidth, CGSize::width, CGPoint::x, and CGPoint::y.
Referenced by buildGL(), and resizeWindow().
void resizeWindow | ( | int | x, |
int | y | ||
) |
Called when the window is resized.
Specific format for GLUT.
Definition at line 513 of file GLUThog.cpp.
void SetLighting | ( | GLfloat | ambientf = 0.2f , |
GLfloat | diffusef = 1.0f , |
||
GLfloat | specularf = 1.0f |
||
) |
Definition at line 565 of file GLUtil.cpp.
Referenced by buildGL().
void updateModelView | ( | pRecContext | pContextInfo | ) |