Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

MeshObject Class Reference

#include <MeshObject.h>

Inheritance diagram for MeshObject:

Inheritance graph
[legend]
Collaboration diagram for MeshObject:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void Draw ()
bool Load (string FileName)
 MeshObject ()
MeshObject operator= (MeshObject mesh_obj2)

Protected Member Functions

void AddTriangle (int &p1, int &p2, int &p3)
void AddVertex (float x, float y, float z)
void Draw_Triangle (Triangle &tri)

Protected Attributes

Colorcolor_table
int total_color_sections
int * triangle_count
vector< Triangletriangle_list
vector< Vertexvertex_list

Constructor & Destructor Documentation

MeshObject::MeshObject  ) 
 

Definition at line 3 of file MeshObject.cpp.


Member Function Documentation

void MeshObject::AddTriangle int &  p1,
int &  p2,
int &  p3
[protected]
 

Definition at line 16 of file MeshObject.cpp.

References glVector::glVector(), triangle_list, and vertex_list.

Referenced by Load().

Here is the call graph for this function:

void MeshObject::AddVertex float  x,
float  y,
float  z
[protected]
 

Definition at line 11 of file MeshObject.cpp.

References glVector::glVector(), and vertex_list.

Referenced by Load().

Here is the call graph for this function:

void MeshObject::Draw  )  [virtual]
 

Implements Object3d.

Definition at line 80 of file MeshObject.cpp.

References color_table, Draw_Triangle(), total_color_sections, triangle_count, and triangle_list.

Here is the call graph for this function:

void MeshObject::Draw_Triangle Triangle tri  )  [protected]
 

Definition at line 71 of file MeshObject.cpp.

References vertex_list.

Referenced by Draw().

bool MeshObject::Load string  FileName  ) 
 

Definition at line 31 of file MeshObject.cpp.

References AddTriangle(), AddVertex(), Color::color, color_table, total_color_sections, and triangle_count.

Referenced by Renderer::AddMeshObject().

Here is the call graph for this function:

MeshObject MeshObject::operator= MeshObject  mesh_obj2  ) 
 

Definition at line 7 of file MeshObject.cpp.


Member Data Documentation

Color* MeshObject::color_table [protected]
 

Definition at line 40 of file MeshObject.h.

Referenced by Draw(), and Load().

int MeshObject::total_color_sections [protected]
 

Definition at line 41 of file MeshObject.h.

Referenced by Draw(), and Load().

int* MeshObject::triangle_count [protected]
 

Definition at line 38 of file MeshObject.h.

Referenced by Draw(), and Load().

vector<Triangle> MeshObject::triangle_list [protected]
 

Definition at line 36 of file MeshObject.h.

Referenced by AddTriangle(), and Draw().

vector<Vertex> MeshObject::vertex_list [protected]
 

Definition at line 37 of file MeshObject.h.

Referenced by AddTriangle(), AddVertex(), and Draw_Triangle().


The documentation for this class was generated from the following files:
Generated on Thu Apr 21 18:06:32 2005 for Basic Rendering Engine by  doxygen 1.4.1