MPK_Sphere Class Reference

#include <basic/geometry/MPK_Sphere.h>

Inherits ObjectBase.

Inherited by GL_Sphere.

Inheritance diagram for MPK_Sphere:

Inheritance graph
[legend]
Collaboration diagram for MPK_Sphere:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MPK_Sphere (FrameManager *frameManager)
 MPK_Sphere (const MPK_Sphere &right)
virtual ~MPK_Sphere ()
virtual EntityClone () const
virtual bool IsInterfering (const Entity *entity) const
virtual bool IsInterfering (const MPK_Sphere *entity) const
void SetRadius (const double radius)
Vector4 Position () const
void SetPosition (const Vector4 &position)
virtual void Serialize (ostream &os) const
virtual bool CanCheckInterference (const Entity *entity) const
double Radius () const
virtual void Deserialize (IfstreamWithComments &is)
virtual void SetFrame (const Matrix4x4 &frame)
virtual bool IsInterfering (const MPK_Cylinder *entity) const
virtual bool Verify () const

Protected Attributes

double radius
Vector4 position

Detailed Description

Definition at line 46 of file MPK_Sphere.h.


Constructor & Destructor Documentation

MPK_Sphere::MPK_Sphere FrameManager frameManager  ) 
 

Definition at line 30 of file MPK_Sphere.cpp.

Referenced by Clone().

MPK_Sphere::MPK_Sphere const MPK_Sphere right  ) 
 

Definition at line 42 of file MPK_Sphere.cpp.

References position, and radius.

MPK_Sphere::~MPK_Sphere  )  [virtual]
 

Definition at line 56 of file MPK_Sphere.cpp.


Member Function Documentation

bool MPK_Sphere::CanCheckInterference const Entity entity  )  const [virtual]
 

Implements Entity.

Definition at line 143 of file MPK_Sphere.cpp.

Referenced by IsInterfering().

Entity * MPK_Sphere::Clone  )  const [virtual]
 

Implements ObjectBase.

Reimplemented in GL_Sphere.

Definition at line 65 of file MPK_Sphere.cpp.

References MPK_Sphere().

Here is the call graph for this function:

void MPK_Sphere::Deserialize IfstreamWithComments is  )  [virtual]
 

Reimplemented from ObjectBase.

Definition at line 165 of file MPK_Sphere.cpp.

bool MPK_Sphere::IsInterfering const MPK_Cylinder entity  )  const [virtual]
 

Definition at line 186 of file MPK_Sphere.cpp.

References Entity::GetTransform(), MPK_Cylinder::Height(), and position.

Here is the call graph for this function:

bool MPK_Sphere::IsInterfering const MPK_Sphere entity  )  const [virtual]
 

Definition at line 95 of file MPK_Sphere.cpp.

References Entity::baseFrame, Entity::frameManager, FrameManager::GetTransformRelative(), Matrix4x4::Inverse(), position, radius, and ObjectBase::theFrame.

Here is the call graph for this function:

bool MPK_Sphere::IsInterfering const Entity entity  )  const [virtual]
 

Implements ObjectBase.

Definition at line 73 of file MPK_Sphere.cpp.

References CanCheckInterference().

Here is the call graph for this function:

Vector4 MPK_Sphere::Position  )  const
 

Definition at line 122 of file MPK_Sphere.cpp.

References position.

Referenced by Range_Sensor::AddSphereToDepthMap(), MPK::Segment::IsInterfering(), and Mesh::IsInterfering().

double MPK_Sphere::Radius  )  const
 

Definition at line 158 of file MPK_Sphere.cpp.

References radius.

Referenced by Range_Sensor::AddSphereToDepthMap(), MPK::Segment::IsInterfering(), and Mesh::IsInterfering().

void MPK_Sphere::Serialize ostream &  os  )  const [virtual]
 

Definition at line 136 of file MPK_Sphere.cpp.

void MPK_Sphere::SetFrame const Matrix4x4 frame  )  [virtual]
 

Reimplemented from ObjectBase.

Definition at line 172 of file MPK_Sphere.cpp.

References position.

void MPK_Sphere::SetPosition const Vector4 position  ) 
 

Definition at line 129 of file MPK_Sphere.cpp.

References position.

void MPK_Sphere::SetRadius const double  radius  ) 
 

Definition at line 115 of file MPK_Sphere.cpp.

bool MPK_Sphere::Verify  )  const [virtual]
 

Implements ObjectBase.

Definition at line 199 of file MPK_Sphere.cpp.


Member Data Documentation

Vector4 MPK_Sphere::position [protected]
 

Definition at line 118 of file MPK_Sphere.h.

Referenced by GL_Sphere::DrawExplicit(), IsInterfering(), MPK_Sphere(), Position(), SetFrame(), and SetPosition().

double MPK_Sphere::radius [protected]
 

Definition at line 110 of file MPK_Sphere.h.

Referenced by GL_Sphere::DrawExplicit(), IsInterfering(), MPK_Sphere(), and Radius().


The documentation for this class was generated from the following files:
Generated on Sat Apr 1 21:51:53 2006 for Motion Planning Kernel by  doxygen 1.4.6-NO