HOG2
Classes | Typedefs | Functions
GLUThog.h File Reference
This graph shows which files directly or indirectly include this file:

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

Typedef Documentation

◆ CGPoint

typedef struct CGPoint CGPoint

Definition at line 27 of file GLUThog.h.

◆ CGRect

typedef struct CGRect CGRect

Definition at line 35 of file GLUThog.h.

◆ CGSize

typedef struct CGSize CGSize

Definition at line 19 of file GLUThog.h.

Function Documentation

◆ buildGL()

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

◆ createMenus()

void createMenus ( )

Definition at line 100 of file GLUThog.cpp.

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

◆ drawInfo()

static void drawInfo ( pRecContext  pContextInfo)
static

◆ getCurrentContext()

pRecContext getCurrentContext ( )

Definition at line 49 of file GLUThog.cpp.

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

◆ mouseDolly()

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

◆ mouseMovedButton()

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.

◆ mouseMovedNoButton()

void mouseMovedNoButton ( int  x,
int  y 
)

Definition at line 124 of file GLUThog.cpp.

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

Referenced by RunHOGGUI().

◆ pointPath()

void pointPath ( )

◆ processFramesPerSecond()

int processFramesPerSecond ( char *  argument[],
int  maxNumArgs 
)

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

◆ resizeGL()

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

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

◆ SetLighting()

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

◆ updateModelView()

void updateModelView ( pRecContext  pContextInfo)