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

ONE::model::ADModel Class Reference

Inheritance diagram for ONE::model::ADModel:

Inheritance graph
[legend]
List of all members.

Public Types

enum  {
  anim_IDLE, anim_WALK, anim_WALKBACK, anim_RUN,
  anim_FALL, anim_LAND, anim_DIE, anim_WALK_LEFT,
  anim_WALK_RIGHT, anim_WIN, anim_LOSE, anim_GET_BONUS,
  anim_SPECIAL1, anim_SPECIAL2, anim_SPECIAL3, anim_IDLE2,
  anim_IDLE3, anim_LOSE2
}
typedef unsigned char Passes
 represents the needed passes, pass 0 represented by the lsb

Public Member Functions

virtual void animate (AnimationData *a)
virtual void cull (G3D::Array< G3D::Plane > &)
bool culledBy (Array< Plane > &plane)
virtual void deserializeAnimState (BinaryInput &b)=0
virtual bool finished ()=0
virtual const Box getBoundingBox (AnimationData *=NULL)=0
virtual const Box & getBoundingBox ()
virtual const Sphere & getBoundingSphere ()
virtual const MeshAlg::Geometry & getGeometry ()
virtual void getIndices (int *&indices, int &numTri) const =0
std::string getName () const
virtual void getNormals (Array< Vector3 > *&normals) const
virtual int getNumberOfFrames (int animation)=0
virtual int getNumTri () const =0
Passes getPasses () const
const RenderProperties * getProperties (const int &pass) const
RenderProperties * getProperties (const int &pass)
virtual void getScaledVertices (float *&verts, int &numVerts, Vector3 scale)=0
virtual void getTexCoords (Array< Vector2 > *&texCoord) const =0
virtual GImage * getTexImage () const =0
virtual const Array< int > & getTriangleIndices () const
virtual void getVertices (float *&verts, int &numVerts) const =0
virtual void init ()=0
bool isCulled ()
virtual void loop (int animation, float blendFrames)=0
virtual void pause ()=0
virtual void play ()=0
virtual void playOnce (int animation, float blendFrames)=0
virtual void releaseScaledVertices (Vector3 scale)=0
virtual void render (G3D::RenderDevice *)
void render (RenderDevice *rd)
virtual void serializeAnimState (BinaryOutput &b)=0
virtual void setLightMap1 (GImage *lm, string entityname)
virtual void setLightMap2 (GImage *lm, string entityname)
void setName (std::string n)
void setProperties (RenderProperties *prop, const int &pass)
virtual void setSpeed (float speed)=0
virtual void update (float time)=0

Static Public Member Functions

static TestRenderModelRef create (ADBaseModelRef base)

Public Attributes

bool animChangedSinceSerialization

Static Public Attributes

static const char MAX_PASSES

Protected Member Functions

 ADModel (ADBaseModelRef base) baseModel(base)

Protected Attributes

AnimationDataanimationData
ADBaseModelRef baseModel
bool culled
std::string name
Passes passes
G3D::Array< RenderProperties * > renderProperties

Member Typedef Documentation

typedef unsigned char ONE::render::RenderListEntry::Passes [inherited]
 

represents the needed passes, pass 0 represented by the lsb


Member Enumeration Documentation

anonymous enum [inherited]
 

Enumerator:
anim_IDLE 
anim_WALK 
anim_WALKBACK 
anim_RUN 
anim_FALL 
anim_LAND 
anim_DIE 
anim_WALK_LEFT 
anim_WALK_RIGHT 
anim_WIN 
anim_LOSE 
anim_GET_BONUS 
anim_SPECIAL1 
anim_SPECIAL2 
anim_SPECIAL3 
anim_IDLE2 
anim_IDLE3 
anim_LOSE2 


Constructor & Destructor Documentation

ONE::model::ADModel::ADModel ADBaseModelRef  base  )  [inline, protected]
 


Member Function Documentation

virtual void ONE::model::ADModel::animate AnimationData a  )  [inline, virtual]
 

Reimplemented from ONE::model::Animateable.

static TestRenderModelRef ONE::model::ADModel::create ADBaseModelRef  base  )  [inline, static]
 

virtual void ONE::render::RenderListEntry::cull G3D::Array< G3D::Plane > &   )  [virtual, inherited]
 

bool ONE::model::ADModel::culledBy Array< Plane > &  plane  )  [inline]
 

virtual void ONE::model::Animateable::deserializeAnimState BinaryInput &  b  )  [pure virtual, inherited]
 

Implemented in ONE::model::ADModelInstance.

virtual bool ONE::model::Animateable::finished  )  [pure virtual, inherited]
 

Implemented in ONE::model::ADModelInstance.

virtual const Box ONE::model::Model::getBoundingBox AnimationData = NULL  )  [pure virtual, inherited]
 

Implemented in ONE::model::ADMeshInstance, and ONE::model::ADModelInstance.

virtual const Box& ONE::model::ADModel::getBoundingBox  )  [inline, virtual]
 

An oriented bounding box on the model. Covers all vertices.

virtual const Sphere& ONE::model::ADModel::getBoundingSphere  )  [inline, virtual]
 

A bounding sphere on the model. Covers all vertices.

virtual const MeshAlg::Geometry& ONE::model::ADModel::getGeometry  )  [inline, virtual]
 

Model geometry (vertices and vertex-normals)

virtual void ONE::model::Model::getIndices int *&  indices,
int &  numTri
const [pure virtual, inherited]
 

Implemented in ONE::model::ADMeshInstance.

std::string ONE::model::Model::getName  )  const [inline, inherited]
 

virtual void ONE::model::Model::getNormals Array< Vector3 > *&  normals  )  const [inline, virtual, inherited]
 

Reimplemented in ONE::model::ADMeshInstance.

virtual int ONE::model::Animateable::getNumberOfFrames int  animation  )  [pure virtual, inherited]
 

Implemented in ONE::model::ADModelInstance.

virtual int ONE::model::Model::getNumTri  )  const [pure virtual, inherited]
 

Implemented in ONE::model::ADMeshInstance.

Passes ONE::render::RenderListEntry::getPasses  )  const [inline, inherited]
 

Returns:
the passes this object needs

const RenderProperties* ONE::render::RenderListEntry::getProperties const int &  pass  )  const [inherited]
 

RenderProperties* ONE::render::RenderListEntry::getProperties const int &  pass  )  [inherited]
 

Returns:
the properties neede for pass or 0 if it does not use that pass

virtual void ONE::model::Model::getScaledVertices float *&  verts,
int &  numVerts,
Vector3  scale
[pure virtual, inherited]
 

Implemented in ONE::model::ADMeshInstance, and ONE::model::ADModelInstance.

virtual void ONE::model::Model::getTexCoords Array< Vector2 > *&  texCoord  )  const [pure virtual, inherited]
 

Implemented in ONE::model::ADMeshInstance.

virtual GImage* ONE::model::Model::getTexImage  )  const [pure virtual, inherited]
 

Implemented in ONE::model::ADMeshInstance.

virtual const Array<int>& ONE::model::ADModel::getTriangleIndices  )  const [inline, virtual]
 

virtual void ONE::model::Model::getVertices float *&  verts,
int &  numVerts
const [pure virtual, inherited]
 

Implemented in ONE::model::ADMeshInstance, and ONE::model::ADModelInstance.

virtual void ONE::model::Animateable::init  )  [pure virtual, inherited]
 

Implemented in ONE::model::ADModelInstance.

bool ONE::render::RenderListEntry::isCulled  )  [inline, inherited]
 

virtual void ONE::model::Animateable::loop int  animation,
float  blendFrames
[pure virtual, inherited]
 

Implemented in ONE::model::ADModelInstance.

virtual void ONE::model::Animateable::pause  )  [pure virtual, inherited]
 

Implemented in ONE::model::ADModelInstance.

virtual void ONE::model::Animateable::play  )  [pure virtual, inherited]
 

Implemented in ONE::model::ADModelInstance.

virtual void ONE::model::Animateable::playOnce int  animation,
float  blendFrames
[pure virtual, inherited]
 

Implemented in ONE::model::ADModelInstance.

virtual void ONE::model::Model::releaseScaledVertices Vector3  scale  )  [pure virtual, inherited]
 

Implemented in ONE::model::ADMeshInstance, and ONE::model::ADModelInstance.

virtual void ONE::render::RenderListEntry::render G3D::RenderDevice *   )  [inline, virtual, inherited]
 

void ONE::model::ADModel::render RenderDevice *  rd  )  [inline, virtual]
 

Implements ONE::model::Model.

virtual void ONE::model::Animateable::serializeAnimState BinaryOutput &  b  )  [pure virtual, inherited]
 

Implemented in ONE::model::ADModelInstance.

virtual void ONE::model::Model::setLightMap1 GImage *  lm,
string  entityname
[inline, virtual, inherited]
 

Reimplemented in ONE::model::ADMeshInstance.

virtual void ONE::model::Model::setLightMap2 GImage *  lm,
string  entityname
[inline, virtual, inherited]
 

Reimplemented in ONE::model::ADMeshInstance.

void ONE::model::Model::setName std::string  n  )  [inline, inherited]
 

void ONE::render::RenderListEntry::setProperties RenderProperties prop,
const int &  pass
[inherited]
 

virtual void ONE::model::Animateable::setSpeed float  speed  )  [pure virtual, inherited]
 

Implemented in ONE::model::ADModelInstance.

virtual void ONE::model::Animateable::update float  time  )  [pure virtual, inherited]
 

Implemented in ONE::model::ADModelInstance.


Member Data Documentation

AnimationData* ONE::model::Animateable::animationData [protected, inherited]
 

bool ONE::model::Animateable::animChangedSinceSerialization [inherited]
 

ADBaseModelRef ONE::model::ADModel::baseModel [protected]
 

bool ONE::render::RenderListEntry::culled [protected, inherited]
 

const char ONE::render::RenderListEntry::MAX_PASSES [static, inherited]
 

std::string ONE::model::Model::name [protected, inherited]
 

Passes ONE::render::RenderListEntry::passes [protected, inherited]
 

G3D::Array<RenderProperties*> ONE::render::RenderListEntry::renderProperties [protected, inherited]
 


Generated on Wed Sep 7 19:03:24 2005 for ONEngine by  doxygen 1.4.3