Public Member Functions | Static Public Member Functions | List of all members
Leap::ScenePlane Class Reference

#include <LeapScene.h>

Inheritance diagram for Leap::ScenePlane:
Inheritance graph
[legend]

Public Member Functions

const VectorGetNormal () const
 
virtual LEAP_EXPORT eSceneObjectType GetType () const
 pure virtual methods requiring implementation in inheriting classes. More...
 
 ScenePlane ()
 
virtual LEAP_EXPORT bool TestRayHit (const SceneRay &testRay, float &fHitDistOut) const
 
virtual LEAP_EXPORT bool TestSphereHit (const Vector &vPoint, float fRadius) const
 
virtual ~ScenePlane ()
 
- Public Member Functions inherited from Leap::SceneObject
bool ApplyInteraction (const SceneInteraction &interaction)
 
void ClearHits ()
 
void ClearHitTime ()
 
void ClearInitialContact ()
 
void ClearNumContacts ()
 
void ClearNumPointing ()
 
template<class T >
T * GetAs ()
 
template<class T >
const T * GetAs () const
 
const VectorGetCenter () const
 
const SceneContactPointGetContactPoint (uint32_t uiIndex) const
 
const SceneContactPointGetContactPointByPointableID (int iPointableID) const
 
const SceneContactPointGetInitialContactPoint () const
 
const SceneContactPointGetLastContactPoint (uint32_t uiIndex) const
 
const SceneContactPointGetLastContactPointByPointableID (int iPointableID) const
 
uint32_t GetLastNumContacts () const
 
uint32_t GetNumContacts () const
 
uint32_t GetNumPointing () const
 
const Matrix GetRotation () const
 
float GetScale () const
 
SceneGetScene () const
 
const SceneObjectPtrGetSceneObjectPtr () const
 
uint32_t GetSerial () const
 a unique serial number assigned to each object at creation time. More...
 
float GetTotalHitTime () const
 
const MatrixGetTransform () const
 
void * GetUserData () const
 
Matrix GetWorldToObjectTransform () const
 returns a transform for converting world space coordinates and direction to object space. More...
 
bool HasInitialContact () const
 
void IncNumContacts (const SceneContactPoint &contactPoint)
 
void IncNumPointing ()
 
bool IsPendingRemoval () const
 
bool IsSelected () const
 
 operator const SceneObjectPtr & () const
 
void Rotate (const Vector &axis, float angleRadians)
 
void Rotate (const Matrix &rotationMatrix)
 
void Scale (float scaleMult)
 
 SceneObject ()
 
void SetCenter (const Vector &vCenter)
 
void SetRotation (const Vector &vAxis, float fAngleRadians)
 
void SetRotation (const Matrix &rotationMatrix)
 
void SetScale (float scale)
 
void SetSelected (bool selected)
 
void SetUserData (void *pUserData)
 
void Transform (const Matrix &mtxTransform)
 
void Translate (const Vector &translation)
 
Vector WorldToObjectPoint (const Vector &vPoint) const
 
virtual ~SceneObject ()
 

Static Public Member Functions

static eSceneObjectType ObjectType ()
 
- Static Public Member Functions inherited from Leap::SceneObject
static eSceneObjectType NextObjectType ()
 
static eSceneObjectType ObjectType ()
 

Additional Inherited Members

- Public Types inherited from Leap::SceneObject
enum  { kMaxContactPoints = 5 }
 
- Protected Member Functions inherited from Leap::SceneObject
void rotateContactPoints ()
 
- Protected Attributes inherited from Leap::SceneObject
SceneContactPoint m_aContactPoints [kMaxContactPoints *2]
 
uint8_t m_bSelected
 
float m_fScale
 
float m_fTotalHitTime
 
SceneContactPoint m_initialContactPoint
 
Matrix m_mtxTransform
 
SceneContactPointm_paContactPoints
 
SceneContactPointm_paLastContactPoints
 
void * m_pUserData
 
uint8_t m_uiHasInitialContact
 
uint8_t m_uiLastNumContacts
 
uint8_t m_uiNumContacts
 
uint8_t m_uiNumPointing
 

Detailed Description

Definition at line 830 of file LeapScene.h.

Constructor & Destructor Documentation

Leap::ScenePlane::ScenePlane ( )
inline

Definition at line 840 of file LeapScene.h.

virtual Leap::ScenePlane::~ScenePlane ( )
inlinevirtual

Definition at line 842 of file LeapScene.h.

Member Function Documentation

const Vector& Leap::ScenePlane::GetNormal ( ) const
inline

Definition at line 844 of file LeapScene.h.

virtual LEAP_EXPORT eSceneObjectType Leap::ScenePlane::GetType ( ) const
inlinevirtual

pure virtual methods requiring implementation in inheriting classes.

Implements Leap::SceneObject.

Definition at line 838 of file LeapScene.h.

static eSceneObjectType Leap::ScenePlane::ObjectType ( )
inlinestatic

if you extend SceneObject or any of its descendant classes the public methods ObjectType() and GetType() should be implemented exactly as they are below. they have not been encapsulated in an implementation macro to maintain clarity and ease of debugging.

Definition at line 836 of file LeapScene.h.

bool Leap::ScenePlane::TestRayHit ( const SceneRay testRay,
float &  fHitDistOut 
) const
virtual

Implements Leap::SceneObject.

Definition at line 755 of file LeapScene.cpp.

bool Leap::ScenePlane::TestSphereHit ( const Vector vPoint,
float  fRadius 
) const
virtual

Implements Leap::SceneObject.

Definition at line 779 of file LeapScene.cpp.


The documentation for this class was generated from the following files:


leap_motion
Author(s): Florian Lier , Mirza Shah , Isaac IY Saito
autogenerated on Tue Jun 2 2020 03:58:01