HOG2
Functions
SFML_HOG.h File Reference
#include "Common.h"
Include dependency graph for SFML_HOG.h:
This graph shows which files directly or indirectly include this file:

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 ()
 

Function Documentation

◆ buildGL()

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().

◆ createMenus()

void createMenus ( )

Definition at line 100 of file GLUThog.cpp.

Referenced by RunHOGGUI().

◆ drawCStringGL()

void drawCStringGL ( char *  cstrOut,
GLuint  fontList 
)

Draws a CString in OpenGL.

Definition at line 680 of file GLUThog.cpp.

◆ drawGL()

void drawGL ( pRecContext  pContextInfo,
sf::Window &  window 
)

◆ drawInfo()

static void drawInfo ( pRecContext  pContextInfo)
static

◆ getCurrentContext()

pRecContext getCurrentContext ( )

Definition at line 49 of file GLUThog.cpp.

References pContextInfo.

◆ keyPressed()

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().

◆ mouseDolly()

static void mouseDolly ( int  x,
int  y,
pRecContext  pContextInfo 
)
static

◆ mouseMovedButton()

void mouseMovedButton ( int  x,
int  y 
)

◆ mouseMovedNoButton()

void mouseMovedNoButton ( int  x,
int  y 
)

◆ mousePan()

static void mousePan ( int  x,
int  y,
pRecContext  pContextInfo 
)
static

◆ mousePressedButton()

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.

◆ pointPath()

void pointPath ( )

◆ processMenuEvents()

void processMenuEvents ( int  option)

Definition at line 104 of file GLUThog.cpp.

◆ renderScene()

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().

◆ resizeGL()

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().

◆ 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.

References CGSize::height, CGRect::origin, pContextInfo, resizeGL(), CGRect::size, CGSize::width, CGPoint::x, and CGPoint::y.

Referenced by RunHOGGUI().

◆ updateModelView()

void updateModelView ( pRecContext  pContextInfo)