#include <LeapUtilGL.h>
Public Member Functions | |
CameraGL () | |
void | SetupGLProjection () const |
void | SetupGLView () const |
Public Member Functions inherited from LeapUtil::Camera | |
float | CalcViewDepth (const Leap::Vector &vPos) const |
Camera () | |
float | GetAspectRatio () const |
float | GetFarClip () const |
float | GetMaxOrbitLatitude () const |
float | GetNearClip () const |
const Leap::Vector & | GetOrbitTarget () const |
the point of interest for the camera to orbit around More... | |
const Leap::Vector & | GetPosition () const |
position of the camera in world space More... | |
const Leap::Matrix & | GetPOV () const |
POV is the world space location and orientation of the camera. More... | |
Leap::Matrix | GetRotation () const |
orientation of the camera in world space More... | |
float | GetVerticalFOVDegrees () const |
Leap::Matrix | GetView () const |
void | Move (const Leap::Vector &vDeltaPos) |
translate the position of the camera (move it from its current position) by the specified offset More... | |
void | OnMouseDown (const Leap::Vector &vMousePos) |
void | OnMouseMoveOrbit (const Leap::Vector &vMousePos) |
void | OnMouseWheel (float fDeltaZ) |
convenience methods for mapping mouse movements to orbit camera movements. More... | |
void | Rotate (const Leap::Matrix &mtxRotation) |
apply the specified rotation to the camera on top of its current rotation More... | |
void | Rotate (const Leap::Vector &vAxis, float fRadians) |
void | RotateOrbit (float fDeltaMagnitude, float fDeltaLongitude, float fDeltaLatitude) |
void | SetAspectRatio (float fAspectRatio) |
void | SetClipPlanes (float fNearClip, float fFarClip) |
void | SetFarClip (float fFarClip) |
void | SetMaxOrbitLatitude (float fMaxOrbitLatitude) |
void | SetNearClip (float fNearClip) |
void | SetOrbitTarget (const Leap::Vector &vOrbitTarget) |
void | SetPosition (const Leap::Vector &vPos) |
void | SetPOV (const Leap::Matrix &mtxPOV) |
void | SetPOVLookAt (const Leap::Vector &vCameraPosition, const Leap::Vector &vTarget, Leap::Vector vUp=Leap::Vector::yAxis()) |
places the camera a the given position with it pointing towards the specified target position More... | |
void | SetRotation (const Leap::Vector &vAxis, float fRadians) |
void | SetRotation (const Leap::Matrix &mtxRot) |
void | SetRotationLookAt (const Leap::Vector &vTarget, const Leap::Vector &vUp=Leap::Vector::yAxis()) |
maintains the current camera position and turns it to look at the specified target position More... | |
void | SetVerticalFOVDegrees (float fFOV) |
Static Public Member Functions | |
static void | ResetGLProjection () |
static void | ResetGLView () |
Definition at line 111 of file LeapUtilGL.h.
|
inline |
Definition at line 114 of file LeapUtilGL.h.
|
inlinestatic |
Definition at line 116 of file LeapUtilGL.h.
|
inlinestatic |
Definition at line 122 of file LeapUtilGL.h.
void LeapUtilGL::CameraGL::SetupGLProjection | ( | ) | const |
Definition at line 630 of file LeapUtilGL.cpp.
void LeapUtilGL::CameraGL::SetupGLView | ( | ) | const |
Definition at line 636 of file LeapUtilGL.cpp.