#include <LeapScene.h>
Public Member Functions | |
float | GetRadius () const |
virtual LEAP_EXPORT eSceneObjectType | GetType () const |
pure virtual methods requiring implementation in inheriting classes. | |
SceneSphere () | |
void | SetRadius (const float &radius) |
virtual LEAP_EXPORT bool | TestRayHit (const SceneRay &testRay, float &fHitDistOut) const |
virtual LEAP_EXPORT bool | TestSphereHit (const Vector &vTestCenter, float fTestRadius) const |
virtual | ~SceneSphere () |
Static Public Member Functions | |
static eSceneObjectType | ObjectType () |
Private Attributes | |
float | m_fRadius |
Definition at line 855 of file LeapScene.h.
Leap::SceneSphere::SceneSphere | ( | ) | [inline] |
Definition at line 865 of file LeapScene.h.
virtual Leap::SceneSphere::~SceneSphere | ( | ) | [inline, virtual] |
Definition at line 867 of file LeapScene.h.
float Leap::SceneSphere::GetRadius | ( | ) | const [inline] |
Definition at line 871 of file LeapScene.h.
virtual LEAP_EXPORT eSceneObjectType Leap::SceneSphere::GetType | ( | ) | const [inline, virtual] |
pure virtual methods requiring implementation in inheriting classes.
Implements Leap::SceneObject.
Definition at line 863 of file LeapScene.h.
static eSceneObjectType Leap::SceneSphere::ObjectType | ( | ) | [inline, static] |
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.
Reimplemented from Leap::SceneObject.
Definition at line 861 of file LeapScene.h.
void Leap::SceneSphere::SetRadius | ( | const float & | radius | ) | [inline] |
Definition at line 869 of file LeapScene.h.
bool Leap::SceneSphere::TestRayHit | ( | const SceneRay & | testRay, |
float & | fHitDistOut | ||
) | const [virtual] |
Implements Leap::SceneObject.
Definition at line 791 of file LeapScene.cpp.
bool Leap::SceneSphere::TestSphereHit | ( | const Vector & | vTestCenter, |
float | fTestRadius | ||
) | const [virtual] |
Implements Leap::SceneObject.
Definition at line 822 of file LeapScene.cpp.
float Leap::SceneSphere::m_fRadius [private] |
Definition at line 882 of file LeapScene.h.