Classes | Enumerations | Functions | Variables
LeapUtilGL Namespace Reference

Classes

class  CameraGL
class  GLAttribScope
 utility class for caching and restoring GL attributes via the glPushAttrib/glPopAttrib calls. More...
class  GLMatrixScope
 utility class for keeping the gl matrix stack push/pop operations paired up correctly. More...
struct  GLVector4fv
class  Quadric

Enumerations

enum  eAxis { kAxis_X, kAxis_Y, kAxis_Z }
enum  ePlane { kPlane_XY, kPlane_YZ, kPlane_ZX }
enum  eStyle { kStyle_Outline, kStyle_Solid }

Functions

void drawArrow (eAxis axis)
 arrow is drawn with unlit colored lines.
void drawAxes ()
void drawBox (eStyle style)
void drawCylinder (eStyle style, eAxis axis)
void drawCylinder (eStyle style, const Vector &vBottom, const Vector &vTop, float fRadius)
void drawDisk (eStyle style, ePlane plane)
 disk is double-side
void drawGrid (ePlane plane, unsigned int horizSubDivs, unsigned int vertSubDivs)
 grid is drawn with unlit colored lines.
void drawQuad (eStyle style, ePlane plane)
 quad is double-sided.
void drawSkeletonHand (const Leap::Hand &hand, const GLVector4fv &vBoneColor=GLVector4fv::One(), const GLVector4fv &vJointColor=GLVector4fv::One())
 utility for drawing a skeleton API hand as seen in diagnostic visualizer
void drawSphere (eStyle style)
void drawSphere (eStyle style, const Leap::Vector &vCenter, float fRadius)
 additional sphere/cylinder drawing utilities

Variables

static Quadric s_quadric

Enumeration Type Documentation

all drawing utilities draw unit sized objects centered at the origin with no rotation in the current GL drawing context (orientation, scaling, lighting configuration, etc). use glTranslatef() to change position, glScalef() to change size. these object draw without any side effects to the GL state.

Enumerator:
kAxis_X 
kAxis_Y 
kAxis_Z 

Definition at line 32 of file LeapUtilGL.h.

Enumerator:
kPlane_XY 
kPlane_YZ 
kPlane_ZX 

Definition at line 34 of file LeapUtilGL.h.

Enumerator:
kStyle_Outline 
kStyle_Solid 

Definition at line 36 of file LeapUtilGL.h.


Function Documentation

void LeapUtilGL::drawArrow ( eAxis  axis)

arrow is drawn with unlit colored lines.

Definition at line 475 of file LeapUtilGL.cpp.

Definition at line 519 of file LeapUtilGL.cpp.

void LeapUtilGL::drawBox ( eStyle  style)

Definition at line 237 of file LeapUtilGL.cpp.

void LeapUtilGL::drawCylinder ( eStyle  style,
eAxis  axis 
)

Definition at line 375 of file LeapUtilGL.cpp.

void LeapUtilGL::drawCylinder ( eStyle  style,
const Vector vBottom,
const Vector vTop,
float  fRadius 
)

Definition at line 547 of file LeapUtilGL.cpp.

void LeapUtilGL::drawDisk ( eStyle  style,
ePlane  plane 
)

disk is double-side

Definition at line 431 of file LeapUtilGL.cpp.

void LeapUtilGL::drawGrid ( ePlane  plane,
unsigned int  horizSubdivs,
unsigned int  vertSubdivs 
)

grid is drawn with unlit colored lines.

Definition at line 59 of file LeapUtilGL.cpp.

void LeapUtilGL::drawQuad ( eStyle  style,
ePlane  plane 
)

quad is double-sided.

Definition at line 149 of file LeapUtilGL.cpp.

void LeapUtilGL::drawSkeletonHand ( const Leap::Hand hand,
const GLVector4fv &  vBoneColor,
const GLVector4fv &  vJointColor 
)

utility for drawing a skeleton API hand as seen in diagnostic visualizer

Definition at line 566 of file LeapUtilGL.cpp.

void LeapUtilGL::drawSphere ( eStyle  style)

Definition at line 121 of file LeapUtilGL.cpp.

void LeapUtilGL::drawSphere ( eStyle  style,
const Vector vCenter,
float  fRadius 
)

additional sphere/cylinder drawing utilities

Definition at line 537 of file LeapUtilGL.cpp.


Variable Documentation

Definition at line 57 of file LeapUtilGL.cpp.



leap_motion
Author(s): Florian Lier , Mirza Shah , Isaac IY Saito
autogenerated on Sat Jun 8 2019 18:47:26