#include <model.h>
Inherited by _classes_ [private]
.
Inheritance diagram for Model:
Public Types | |
typedef TSub< Texture, std::string > | SubTexture |
typedef RefClass< Texture, std::string, SubTexture > | RefTexture |
The RefClass of a Texture so that the texture is only generated once per filename. More... | |
Public Methods | |
float | getRadius () const |
The accessor function for the radial size (rsize). More... | |
const Vector & | getMin () const |
Gets the minimum of the bounding box (in local coordinates. More... | |
const Vector & | getMax () const |
Gets the minimum of the bounding box (in local coordinates. More... | |
Model (const Model &m) | |
Basic copy constructor. More... | |
Model (const std::string &filename) | |
This generates a model by reading information from filename . More... | |
~Model () | |
Model & | operator= (const Model &m) |
This is the basic = opeerator. More... | |
bool | operator== (const Model &m) const |
bool | operator< (const Model &m) const |
void | draw (const Matrix &mat) |
This function draws given a position Matrix using opengl commands; in cpp file. More... | |
Private Methods | |
void | calcbb () |
To calculate/ecalculat the bounding box. More... | |
Private Attributes | |
float | radius |
The radial size of the mesh. More... | |
int | vertexList |
The list of verticies. More... | |
Vector | min |
The bounding box of the model (in local coordinates). More... | |
Vector | max |
The bounding box of the model (in local coordinates). More... | |
RefTexture | tex |
|
The RefClass of a Texture so that the texture is only generated once per filename.
|
|
|
|
Basic copy constructor.
|
|
This generates a model by reading information from filename .
|
|
00019 { 00020 assert(0); 00021 } |
|
To calculate/ecalculat the bounding box.
00110 { 00111 printf ("model::calcbb = "); 00112 this->min=Vector(-((((float)rand())/RAND_MAX)*5),-((((float)rand())/RAND_MAX)*5),-((((float)rand())/RAND_MAX)*5)); 00113 this->max=Vector((((float)rand())/RAND_MAX)*5,(((float)rand())/RAND_MAX)*5,(((float)rand())/RAND_MAX)*5); 00114 printf("<%f,%f,%f>,<%f,%f,%f>\n",min.i,min.j,min.k,max.i,max.j,max.k); 00115 } |
|
This function draws given a position Matrix using opengl commands; in cpp file.
|
|
Gets the minimum of the bounding box (in local coordinates.
00054 { 00055 return max; 00056 } |
|
Gets the minimum of the bounding box (in local coordinates.
00050 { 00051 return min; 00052 } |
|
The accessor function for the radial size (rsize).
00048 {return radius;} |
|
|
|
This is the basic = opeerator.
|
|
00063 { 00064 return this==&m; 00065 } |
|
The bounding box of the model (in local coordinates).
|
|
The bounding box of the model (in local coordinates).
|
|
The radial size of the mesh.
|
|
|
|
The list of verticies.
|