Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

Object Class Reference

Saphyre2 base animation Object. More...

#include <S2_Object.h>

Collaboration diagram for Object:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Object ()
virtual ~Object ()
void Debug ()
Bookkeeping methods
ObjectID GetId ()
Model creation (Factory) and managing methods
void SetNaturalModel (Model::ModelType mt)
ModelGetNaturalModel ()
void CreateParticle (Real mass=1.0, const P3D &pos=P3D(0, 0, 0), const V3D &vel=V3D(0, 0, 0))
void CreateRigid (Real mass=1.0, const M3D &Ib=M3D(true), const P3D &pos=P3D(0, 0, 0), const V3D &vel=V3D(0, 0, 0), const Quat &ori=Quat(0, 0, 0, 1), const V3D &velrot=V3D(0, 0, 0))
ParticleGetParticle ()
RigidGetRigid ()

Private Member Functions

Bookkeeping methods related to internal state-changes. Accessible only to Universe.
bool IsAllocated () const
bool IsDirty () const
void NotifyAllocated ()
void NotifyDeallocated ()

Private Attributes

Bookkeeping attributes
ObjectID m_id
unsigned int m_flags
 [ALLOCATED, DIRTY, ...] for internal use only

Model managing attributes
Modelm_pNaturalModel
 Natural (creation) Model.

Modelm_vecModels [S2_NUM_MODEL_TYPES]

Friends

class Universe
 Doesn't necessarily mean that it behaves in a friendly way, though :-P.


Detailed Description

Saphyre2 base animation Object.

This class represents a generic a animated object with basic functionality.

Offers basic animation functionality independent of the object Model type.

Funcionalitat:

Notes:

IMPORTANT: El canvi de Model d'un Object, ja sigui a petició de l'aplicació o per motius interns, té conseqüències importants:


Constructor & Destructor Documentation

Object::Object  ) 
 

virtual Object::~Object  )  [inline, virtual]
 


Member Function Documentation

void Object::CreateParticle Real  mass = 1.0,
const P3D pos = P3D(0,0,0),
const V3D vel = V3D(0,0,0)
 

Todo:
DO WE REALLY need to initialize it here??

Todo:
NOTIFICAR ERROR (Debug, exception, assert???)

void Object::CreateRigid Real  mass = 1.0,
const M3D Ib = M3D(true),
const P3D pos = P3D(0,0,0),
const V3D vel = V3D(0,0,0),
const Quat ori = Quat(0,0,0,1),
const V3D velrot = V3D(0,0,0)
 

Todo:
DO WE REALLY need to initialize it here??

Todo:
NOTIFICAR ERROR (Debug, exception, assert???)

void Object::Debug  ) 
 

ObjectID Object::GetId  )  [inline]
 

Model* Object::GetNaturalModel  )  [inline]
 

Particle * Object::GetParticle  ) 
 

Rigid * Object::GetRigid  ) 
 

bool Object::IsAllocated  )  const [private]
 

bool Object::IsDirty  )  const [private]
 

void Object::NotifyAllocated  )  [private]
 

void Object::NotifyDeallocated  )  [private]
 

void Object::SetNaturalModel Model::ModelType  mt  ) 
 


Friends And Related Function Documentation

friend class Universe [friend]
 

Doesn't necessarily mean that it behaves in a friendly way, though :-P.


Member Data Documentation

unsigned int Object::m_flags [private]
 

[ALLOCATED, DIRTY, ...] for internal use only

ObjectID Object::m_id [private]
 

Model* Object::m_pNaturalModel [private]
 

Natural (creation) Model.

Model* Object::m_vecModels[S2_NUM_MODEL_TYPES] [private]
 

Todo:
Fer vec models =


The documentation for this class was generated from the following files:
Generated on Tue Aug 10 15:58:31 2004 for Saphyre2 by doxygen 1.3.5