Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members  

WPCG::WP_NonAnimatedModel Class Reference

#include <WP_Model.h>

Inheritance diagram for WPCG::WP_NonAnimatedModel:

WPCG::WP_Model WPCG::WP_MetaBall List of all members.

Public Methods

 WP_NonAnimatedModel (const string &name)
virtual ~WP_NonAnimatedModel ()
 WP_NonAnimatedModel (const WP_NonAnimatedModel &namodel)
WP_NonAnimatedModel & operator= (const WP_NonAnimatedModel &namodel)
OPCODE_Model * getCollisionModel (const WP_Object *object)
WP_VertexgetVertex (const WP_Object *object, unsigned int index)
virtual void drawOpenGL (const WP_Matrix3D &matrix, WP_Object *object)=0
virtual bool initModel ()=0

Protected Methods

bool finalizeAll ()

Protected Attributes

WP_Frame * frame

Detailed Description

this abstract class represents a non_animated model


Constructor & Destructor Documentation

WPCG::WP_NonAnimatedModel::WP_NonAnimatedModel const string &    name [inline]
 

virtual WPCG::WP_NonAnimatedModel::~WP_NonAnimatedModel   [inline, virtual]
 

WPCG::WP_NonAnimatedModel::WP_NonAnimatedModel const WP_NonAnimatedModel &    namodel [inline]
 


Member Function Documentation

virtual void WPCG::WP_NonAnimatedModel::drawOpenGL const WP_Matrix3D   matrix,
WP_Object   object
[pure virtual]
 

this function draws the model according to its world matrix into the 3D scene

Parameters:
matrix  a WP_Matrix3D object representing the world matrix of the model indicating where and how the model is rendered into the scene

Implements WPCG::WP_Model.

Implemented in WPCG::WP_MetaBall.

bool WPCG::WP_NonAnimatedModel::finalizeAll   [protected, virtual]
 

this function finalizes all after the model was read and everything was initialized. It for instance builds the collision mesh

Implements WPCG::WP_Model.

OPCODE_Model* WPCG::WP_NonAnimatedModel::getCollisionModel const WP_Object   object [inline, virtual]
 

Implements WPCG::WP_Model.

WP_Vertex* WPCG::WP_NonAnimatedModel::getVertex const WP_Object   object,
unsigned int    index
[inline, virtual]
 

Implements WPCG::WP_Model.

virtual bool WPCG::WP_NonAnimatedModel::initModel   [pure virtual]
 

this virtual function should be overriden by child objects. In this function the model must be read and the model's internals must be filled (like for example the meshes, the material etc). Every 3d file format stores this information in a different way there this function can be used to substract the necessary data from it.

Implements WPCG::WP_Model.

Implemented in WPCG::WP_MetaBall.

WP_NonAnimatedModel& WPCG::WP_NonAnimatedModel::operator= const WP_NonAnimatedModel &    namodel [inline]
 


Member Data Documentation

WP_Frame* WPCG::WP_NonAnimatedModel::frame [protected]
 


The documentation for this class was generated from the following files:
Generated on Tue Jan 28 20:26:41 2003 by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002