My Project
Public Member Functions | Protected Attributes | List of all members
ParaEngine::MetaBall Class Reference

a meta ball is a building block of meta world fragment. More...

#include <MetaBall.h>

Inheritance diagram for ParaEngine::MetaBall:
ParaEngine::MetaObject ParaEngine::CRefCountedOne ParaEngine::CRefCounted

Public Member Functions

 MetaBall (MetaWorldFragment *wf, const Vector3 &position, float radius=3.0f, bool excavating=true)
 
virtual void updateDataGrid (DataGrid *dataGrid)
 Adds this meta ball to the data grid.
 
float getRadius () const
 Returns the radius of the meta ball.
 
void setRadius (float radius)
 Sets the radius of the meta ball.
 
void setExcavating (bool e)
 
virtual CShapeAABB getAABB () const
 Checks for overlap with an AABB.
 
- Public Member Functions inherited from ParaEngine::MetaObject
 MetaObject (MetaWorldFragment *wf, const Vector3 &position)
 
 MetaObject (MetaWorldFragment *wf)
 
const Vector3getPosition () const
 Returns the position of the meta object.
 
void setPosition (const Vector3 &position)
 Sets the position of the meta object.
 
MetaWorldFragmentgetMetaWorldFragment () const
 Returns the MetaWorldFragment* of the meta object.
 
- Public Member Functions inherited from ParaEngine::CRefCounted
void addref () const
 add reference count of the object. More...
 
bool delref () const
 decrease reference count of the object. More...
 
int GetRefCount () const
 get the reference count
 
virtual int Release ()
 
CRefCountedAddToAutoReleasePool ()
 addref and releases the ownership sometime soon automatically (usually at the end of the current frame). More...
 

Protected Attributes

float mRadius
 
bool mExcavating
 
- Protected Attributes inherited from ParaEngine::MetaObject
Vector3 mPosition
 
MetaWorldFragmentmMetaWorldFragment
 
- Protected Attributes inherited from ParaEngine::CRefCounted
int m_refcount
 

Detailed Description

a meta ball is a building block of meta world fragment.

it is a ball object with a given center and a radius. It can either be excavating or not. excavating is means a solid ball, non-excavating means hollow ball(empty space)


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