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

ONE::model::ADBaseMesh Class Reference

Inheritance diagram for ONE::model::ADBaseMesh:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 ADBaseMesh (std::string path, std::string filename)
 ADBaseMesh ()
void clearArrays ()
const Box & getBoundingBox (AnimationData *=NULL) const
const Sphere & getBoundingSphere (AnimationData *=NULL) const
const MeshAlg::Geometry & getGeometry (AnimationData *=NULL)
const ModelTopologygetModelTopology ()
std::string getName () const
const Array< int > & getTriangleIndices ()
virtual void init ()
void initInstance (ADMeshInstance *i)
 used by newInstance
void newInstance (Model *&m, Animateable *&a)
 creates a model instance
void setName (std::string n)

Static Public Member Functions

static void computeWeld (const Array< Vector3 > &oldVertexArray, void *userData, CheckFunc checkFunc, Array< int > &toNew, Array< int > &toOld, double radius)

Protected Member Functions

void createTangentSpace (const Array< Vector2 > &texcoordArray, Array< Vector3 > &normalArray, Array< Vector3 > &tangentArray, Array< Vector3 > &bitangentArray)
bool loadTangentSpace (std::string filename, Array< Vector3 > &normalArray, Array< Vector3 > &tangentArray, Array< Vector3 > &bitangentArray)
virtual bool loadWeld (std::string modelname)
void parseConfig (string path, string linestr)
void saveTangentSpace (std::string filename, Array< Vector3 > &normalArray, Array< Vector3 > &tangentArray, Array< Vector3 > &bitangentArray)
virtual void saveWeld (std::string modelname)

Protected Attributes

Array< Vector3 > bitangentArray
VAR bitangentVAR
TextureRef detailnormaltex
int detailscale
TextureRef detailtex
Array< int > indexArray
std::string name
Array< Vector3 > normalArray
TextureRef normalMap
VAR normalVAR
long numTri
Array< ScaledVertices * > scaledVertexArray
Array< Vector3 > scales
TextureRef simpledetailtex
Array< Vector3 > tangentArray
VAR tangentVAR
Array< Vector2 > texcoordArray
VAR texcoordVAR
VAR texcoordVAR2
TextureRef texture
GImage textureImage
VARAreaRef varArea
Array< Vector3 > vertexArray
VAR vertexVAR

Friends

class ADMeshInstance
class ADModelInstance
class Welder

Classes

struct  ScaledVertices

Constructor & Destructor Documentation

ONE::model::ADBaseMesh::ADBaseMesh  )  [inline]
 

ONE::model::ADBaseMesh::ADBaseMesh std::string  path,
std::string  filename
 


Member Function Documentation

void ONE::model::ADBaseMesh::clearArrays  ) 
 

static void ONE::model::ADBaseMesh::computeWeld const Array< Vector3 > &  oldVertexArray,
void *  userData,
CheckFunc  checkFunc,
Array< int > &  toNew,
Array< int > &  toOld,
double  radius
[static]
 

void ONE::model::ADBaseMesh::createTangentSpace const Array< Vector2 > &  texcoordArray,
Array< Vector3 > &  normalArray,
Array< Vector3 > &  tangentArray,
Array< Vector3 > &  bitangentArray
[protected]
 

const Box& ONE::model::ADBaseMesh::getBoundingBox AnimationData = NULL  )  const
 

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

Reimplemented in ONE::model::ADBaseModel, and ONE::model::ADBaseModel.

const Sphere& ONE::model::ADBaseMesh::getBoundingSphere AnimationData = NULL  )  const
 

A bounding sphere on the model. Covers all vertices in all animations.

Reimplemented in ONE::model::ADBaseModel, and ONE::model::ADBaseModel.

const MeshAlg::Geometry& ONE::model::ADBaseMesh::getGeometry AnimationData = NULL  ) 
 

Model geometry (vertices and vertex-normals)

Reimplemented in ONE::model::ADBaseModel, and ONE::model::ADBaseModel.

const ModelTopology& ONE::model::ADBaseMesh::getModelTopology  ) 
 

Reimplemented in ONE::model::ADBaseModel.

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

const Array<int>& ONE::model::ADBaseMesh::getTriangleIndices  ) 
 

Reimplemented in ONE::model::ADBaseModel.

virtual void ONE::model::ADBaseMesh::init  )  [virtual]
 

Implements ONE::model::BaseModel.

Reimplemented in ONE::model::ADBaseModel.

void ONE::model::ADBaseMesh::initInstance ADMeshInstance i  ) 
 

used by newInstance

bool ONE::model::ADBaseMesh::loadTangentSpace std::string  filename,
Array< Vector3 > &  normalArray,
Array< Vector3 > &  tangentArray,
Array< Vector3 > &  bitangentArray
[protected]
 

virtual bool ONE::model::ADBaseMesh::loadWeld std::string  modelname  )  [protected, virtual]
 

void ONE::model::ADBaseMesh::newInstance Model *&  m,
Animateable *&  a
[virtual]
 

creates a model instance

Parameters:
m reference to instanciated Model
a reference to instanciated Animateable = NULL

Implements ONE::model::BaseModel.

Reimplemented in ONE::model::ADBaseModel.

void ONE::model::ADBaseMesh::parseConfig string  path,
string  linestr
[protected]
 

void ONE::model::ADBaseMesh::saveTangentSpace std::string  filename,
Array< Vector3 > &  normalArray,
Array< Vector3 > &  tangentArray,
Array< Vector3 > &  bitangentArray
[protected]
 

virtual void ONE::model::ADBaseMesh::saveWeld std::string  modelname  )  [protected, virtual]
 

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


Friends And Related Function Documentation

friend class ADMeshInstance [friend]
 

friend class ADModelInstance [friend]
 

Reimplemented in ONE::model::ADBaseModel.

friend class Welder [friend]
 


Member Data Documentation

Array<Vector3> ONE::model::ADBaseMesh::bitangentArray [protected]
 

VAR ONE::model::ADBaseMesh::bitangentVAR [protected]
 

TextureRef ONE::model::ADBaseMesh::detailnormaltex [protected]
 

int ONE::model::ADBaseMesh::detailscale [protected]
 

TextureRef ONE::model::ADBaseMesh::detailtex [protected]
 

Array<int> ONE::model::ADBaseMesh::indexArray [protected]
 

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

Array<Vector3> ONE::model::ADBaseMesh::normalArray [protected]
 

TextureRef ONE::model::ADBaseMesh::normalMap [protected]
 

VAR ONE::model::ADBaseMesh::normalVAR [protected]
 

long ONE::model::ADBaseMesh::numTri [protected]
 

Array<ScaledVertices*> ONE::model::ADBaseMesh::scaledVertexArray [protected]
 

Array<Vector3> ONE::model::ADBaseMesh::scales [protected]
 

TextureRef ONE::model::ADBaseMesh::simpledetailtex [protected]
 

Array<Vector3> ONE::model::ADBaseMesh::tangentArray [protected]
 

VAR ONE::model::ADBaseMesh::tangentVAR [protected]
 

Array<Vector2> ONE::model::ADBaseMesh::texcoordArray [protected]
 

VAR ONE::model::ADBaseMesh::texcoordVAR [protected]
 

VAR ONE::model::ADBaseMesh::texcoordVAR2 [protected]
 

TextureRef ONE::model::ADBaseMesh::texture [protected]
 

GImage ONE::model::ADBaseMesh::textureImage [protected]
 

VARAreaRef ONE::model::ADBaseMesh::varArea [protected]
 

Array<Vector3> ONE::model::ADBaseMesh::vertexArray [protected]
 

VAR ONE::model::ADBaseMesh::vertexVAR [protected]
 


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