#include <LeapScene.h>
Public Types | |
enum | { kMaxContactPoints = 5 } |
Public Member Functions | |
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 Vector & | GetCenter () const |
const SceneContactPoint * | GetContactPoint (uint32_t uiIndex) const |
const SceneContactPoint * | GetContactPointByPointableID (int iPointableID) const |
const SceneContactPoint * | GetInitialContactPoint () const |
const SceneContactPoint * | GetLastContactPoint (uint32_t uiIndex) const |
const SceneContactPoint * | GetLastContactPointByPointableID (int iPointableID) const |
uint32_t | GetLastNumContacts () const |
uint32_t | GetNumContacts () const |
uint32_t | GetNumPointing () const |
const Matrix | GetRotation () const |
float | GetScale () const |
Scene * | GetScene () const |
const SceneObjectPtr & | GetSceneObjectPtr () const |
uint32_t | GetSerial () const |
a unique serial number assigned to each object at creation time. More... | |
float | GetTotalHitTime () const |
const Matrix & | GetTransform () const |
virtual LEAP_EXPORT eSceneObjectType | GetType () const =0 |
pure virtual methods requiring implementation in inheriting classes. More... | |
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) |
virtual LEAP_EXPORT bool | TestRayHit (const SceneRay &testRay, float &fHitDistOut) const =0 |
virtual LEAP_EXPORT bool | TestSphereHit (const Vector &vTestPoint, float fTestRadius) const =0 |
void | Transform (const Matrix &mtxTransform) |
void | Translate (const Vector &translation) |
Vector | WorldToObjectPoint (const Vector &vPoint) const |
virtual | ~SceneObject () |
Static Public Member Functions | |
static eSceneObjectType | NextObjectType () |
static eSceneObjectType | ObjectType () |
Protected Member Functions | |
void | rotateContactPoints () |
Protected Attributes | |
SceneContactPoint | m_aContactPoints [kMaxContactPoints *2] |
uint8_t | m_bSelected |
float | m_fScale |
float | m_fTotalHitTime |
SceneContactPoint | m_initialContactPoint |
Matrix | m_mtxTransform |
SceneContactPoint * | m_paContactPoints |
SceneContactPoint * | m_paLastContactPoints |
void * | m_pUserData |
uint8_t | m_uiHasInitialContact |
uint8_t | m_uiLastNumContacts |
uint8_t | m_uiNumContacts |
uint8_t | m_uiNumPointing |
Private Attributes | |
uint8_t | m_bPendingRemoval |
uint16_t | m_index |
Scene * | m_pScene |
uint32_t | m_serial |
Friends | |
class | Scene |
abstract base class of objects managed by a Scene. The only interface used by Scene, it has no knowledge of concrete implementations.
Definition at line 425 of file LeapScene.h.
anonymous enum |
Enumerator | |
---|---|
kMaxContactPoints |
Definition at line 438 of file LeapScene.h.
|
inline |
Definition at line 441 of file LeapScene.h.
|
inlinevirtual |
Definition at line 456 of file LeapScene.h.
|
inline |
Definition at line 526 of file LeapScene.h.
|
inline |
Definition at line 615 of file LeapScene.h.
|
inline |
Definition at line 601 of file LeapScene.h.
|
inline |
Definition at line 603 of file LeapScene.h.
|
inline |
Definition at line 597 of file LeapScene.h.
|
inline |
Definition at line 599 of file LeapScene.h.
|
inline |
Definition at line 471 of file LeapScene.h.
|
inline |
Definition at line 484 of file LeapScene.h.
|
inline |
Definition at line 570 of file LeapScene.h.
|
inline |
Definition at line 626 of file LeapScene.h.
|
inline |
Definition at line 641 of file LeapScene.h.
|
inline |
Definition at line 636 of file LeapScene.h.
|
inline |
Definition at line 631 of file LeapScene.h.
|
inline |
Definition at line 654 of file LeapScene.h.
|
inline |
Definition at line 593 of file LeapScene.h.
|
inline |
Definition at line 589 of file LeapScene.h.
|
inline |
Definition at line 591 of file LeapScene.h.
|
inline |
Definition at line 572 of file LeapScene.h.
|
inline |
Definition at line 576 of file LeapScene.h.
|
inline |
Definition at line 502 of file LeapScene.h.
|
inline |
Definition at line 489 of file LeapScene.h.
|
inline |
a unique serial number assigned to each object at creation time.
Definition at line 500 of file LeapScene.h.
|
inline |
Definition at line 624 of file LeapScene.h.
|
inline |
Definition at line 574 of file LeapScene.h.
|
pure virtual |
pure virtual methods requiring implementation in inheriting classes.
Implemented in Leap::SceneSphere, Leap::ScenePlane, Leap::SceneDisk, Leap::SceneCylinder, and Leap::SceneBox.
|
inline |
Definition at line 667 of file LeapScene.h.
|
inline |
returns a transform for converting world space coordinates and direction to object space.
Definition at line 674 of file LeapScene.h.
|
inline |
Definition at line 595 of file LeapScene.h.
|
inline |
Definition at line 607 of file LeapScene.h.
|
inline |
Definition at line 605 of file LeapScene.h.
|
inline |
Definition at line 671 of file LeapScene.h.
|
inline |
Definition at line 578 of file LeapScene.h.
|
inlinestatic |
Definition at line 432 of file LeapScene.h.
|
inlinestatic |
Definition at line 430 of file LeapScene.h.
|
inline |
Definition at line 494 of file LeapScene.h.
|
inline |
Definition at line 506 of file LeapScene.h.
|
inline |
Definition at line 511 of file LeapScene.h.
|
inlineprotected |
Definition at line 682 of file LeapScene.h.
|
inline |
Definition at line 516 of file LeapScene.h.
|
inline |
Definition at line 556 of file LeapScene.h.
|
inline |
Definition at line 558 of file LeapScene.h.
|
inline |
Definition at line 563 of file LeapScene.h.
|
inline |
Definition at line 568 of file LeapScene.h.
|
inline |
Definition at line 580 of file LeapScene.h.
|
inline |
Definition at line 669 of file LeapScene.h.
|
pure virtual |
Implemented in Leap::SceneSphere, Leap::ScenePlane, Leap::SceneDisk, Leap::SceneCylinder, and Leap::SceneBox.
|
pure virtual |
Implemented in Leap::SceneSphere, Leap::ScenePlane, Leap::SceneDisk, Leap::SceneCylinder, and Leap::SceneBox.
|
inline |
Definition at line 521 of file LeapScene.h.
|
inline |
Definition at line 504 of file LeapScene.h.
Definition at line 676 of file LeapScene.h.
|
friend |
Definition at line 427 of file LeapScene.h.
|
protected |
Definition at line 695 of file LeapScene.h.
|
private |
Definition at line 710 of file LeapScene.h.
|
protected |
Definition at line 707 of file LeapScene.h.
|
protected |
Definition at line 700 of file LeapScene.h.
|
protected |
Definition at line 699 of file LeapScene.h.
|
private |
Definition at line 711 of file LeapScene.h.
|
protected |
Definition at line 694 of file LeapScene.h.
|
protected |
Definition at line 693 of file LeapScene.h.
|
protected |
Definition at line 697 of file LeapScene.h.
|
protected |
Definition at line 698 of file LeapScene.h.
|
private |
Definition at line 713 of file LeapScene.h.
|
protected |
Definition at line 696 of file LeapScene.h.
|
private |
Definition at line 712 of file LeapScene.h.
|
protected |
Definition at line 705 of file LeapScene.h.
|
protected |
Definition at line 704 of file LeapScene.h.
|
protected |
Definition at line 703 of file LeapScene.h.
|
protected |
Definition at line 702 of file LeapScene.h.