Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
Leap::SceneDisk Class Reference

#include <LeapScene.h>

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

Public Member Functions

const VectorGetNormal () const
 
float GetRadius () const
 
virtual LEAP_EXPORT eSceneObjectType GetType () const
 pure virtual methods requiring implementation in inheriting classes. More...
 
 SceneDisk ()
 
void SetRadius (float radius)
 
virtual LEAP_EXPORT bool TestRayHit (const SceneRay &testRay, float &fHitDistOut) const
 
virtual LEAP_EXPORT bool TestSphereHit (const Vector &vTestPoint, float fTestRadius) const
 
virtual ~SceneDisk ()
 
- 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 ()
 

Private Attributes

float m_fRadius
 

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 798 of file LeapScene.h.

Constructor & Destructor Documentation

Leap::SceneDisk::SceneDisk ( )
inline

Definition at line 808 of file LeapScene.h.

virtual Leap::SceneDisk::~SceneDisk ( )
inlinevirtual

Definition at line 810 of file LeapScene.h.

Member Function Documentation

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

Definition at line 814 of file LeapScene.h.

float Leap::SceneDisk::GetRadius ( ) const
inline

Definition at line 816 of file LeapScene.h.

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

pure virtual methods requiring implementation in inheriting classes.

Implements Leap::SceneObject.

Definition at line 806 of file LeapScene.h.

static eSceneObjectType Leap::SceneDisk::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 804 of file LeapScene.h.

void Leap::SceneDisk::SetRadius ( float  radius)
inline

Definition at line 812 of file LeapScene.h.

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

Implements Leap::SceneObject.

Definition at line 657 of file LeapScene.cpp.

bool Leap::SceneDisk::TestSphereHit ( const Vector vTestPoint,
float  fTestRadius 
) const
virtual

Implements Leap::SceneObject.

Definition at line 695 of file LeapScene.cpp.

Member Data Documentation

float Leap::SceneDisk::m_fRadius
private

Definition at line 827 of file LeapScene.h.


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