Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Teddy::SpaceGame::FrontierMesh Class Reference

Reverse-engineered Frontier First Encounters data file source object file parser. More...

#include <FrontierMesh.h>

Collaboration diagram for Teddy::SpaceGame::FrontierMesh:

Collaboration graph
[legend]
List of all members.

Public Methods

 FrontierMesh (FrontierFile *f, int ob_id, const char *name)
 Constructor. More...

virtual void debug (Uint32 command, void *data)
 Debugging information. More...


Protected Methods

void faceBegin ()
void faceInsertVertex (int index)
void faceInsertSpline (int p1, int p2, int c1, int c2)
void faceClose (int normal_index=-1)
void makeVertex (Vertex &v1, Vertex &v2)
void parseObject (const int object_index)
 Parse object structure from file. More...

void parseVertices ()
void parseNormals ()
 Parse normals. More...

void parseSpecs ()
void parseElements ()
void printVertices ()

Protected Attributes

char * mesh_pointer
char * vertex_pointer
Sint32 vertex_count
char * normal_pointer
Uint32 normal_count
Uint32 unknown_2
Uint32 unknown_3
Uint32 radius
Sint32 primitive_count
Uint32 unknown_4
Uint32 unknown_5
Uint32 unknown_6
Uint32 unknown_7
char * collision_pointer
char * spec_pointer
Uint32 unknown_8
Uint32 unknown_9
FrontierFilef
Face * face
bool face_open
bool face_good
int face_num_vertices
int last_vertex_index
int_to_Vertex vertices
int_to_Vertex normals
list< Element *>::const_iterator debug_selected_element_it

Detailed Description

Reverse-engineered Frontier First Encounters data file source object file parser.

Definition at line 46 of file FrontierMesh.h.


Constructor & Destructor Documentation

Teddy::SpaceGame::FrontierMesh::FrontierMesh FrontierFile   f,
int    ob_id,
const char *    name
 

Constructor.

Definition at line 323 of file FrontierMesh.cpp.

References f, parseElements(), parseNormals(), parseObject(), parseSpecs(), parseVertices(), and radius.


Member Function Documentation

void Teddy::SpaceGame::FrontierMesh::debug Uint32    command,
void *    data
[virtual]
 

Debugging information.

Definition at line 314 of file FrontierMesh.cpp.

void Teddy::SpaceGame::FrontierMesh::faceBegin   [protected]
 

Definition at line 47 of file FrontierMesh.cpp.

References face, face_good, and face_open.

Referenced by faceInsertVertex(), and parseElements().

void Teddy::SpaceGame::FrontierMesh::faceClose int    normal_index = -1 [protected]
 

Definition at line 154 of file FrontierMesh.cpp.

References face, face_good, face_open, and normals.

Referenced by parseElements().

void Teddy::SpaceGame::FrontierMesh::faceInsertSpline int    pi1,
int    pi2,
int    ci1,
int    ci2
[protected]
 

Definition at line 80 of file FrontierMesh.cpp.

References face, face_num_vertices, face_open, last_vertex_index, and vertices.

Referenced by parseElements().

void Teddy::SpaceGame::FrontierMesh::faceInsertVertex int    index [protected]
 

Definition at line 53 of file FrontierMesh.cpp.

References face, face_good, face_num_vertices, face_open, faceBegin(), last_vertex_index, and vertices.

Referenced by parseElements().

void Teddy::SpaceGame::FrontierMesh::makeVertex Vertex &    v1,
Vertex &    v2
[protected]
 

Definition at line 189 of file FrontierMesh.cpp.

References f, and vertices.

Referenced by parseNormals(), and parseVertices().

void Teddy::SpaceGame::FrontierMesh::parseElements   [protected]
 

Definition at line 541 of file FrontierMesh.cpp.

References f, face, faceBegin(), faceClose(), faceInsertSpline(), faceInsertVertex(), FF_BYTE, last_vertex_index, mesh_pointer, and vertices.

Referenced by FrontierMesh().

void Teddy::SpaceGame::FrontierMesh::parseNormals   [protected]
 

Parse normals.

Definition at line 501 of file FrontierMesh.cpp.

References f, FF_BYTE, makeVertex(), normal_pointer, and normals.

Referenced by FrontierMesh().

void Teddy::SpaceGame::FrontierMesh::parseObject const int    object_index [protected]
 

Parse object structure from file.

Definition at line 356 of file FrontierMesh.cpp.

References collision_pointer, f, mesh_pointer, normal_count, normal_pointer, primitive_count, radius, spec_pointer, unknown_2, unknown_3, unknown_4, unknown_5, unknown_6, unknown_7, unknown_8, unknown_9, vertex_count, and vertex_pointer.

Referenced by FrontierMesh().

void Teddy::SpaceGame::FrontierMesh::parseSpecs   [protected]
 

Definition at line 421 of file FrontierMesh.cpp.

References f, and spec_pointer.

Referenced by FrontierMesh().

void Teddy::SpaceGame::FrontierMesh::parseVertices   [protected]
 

Definition at line 477 of file FrontierMesh.cpp.

References f, FF_BYTE, makeVertex(), vertex_count, vertex_pointer, and vertices.

Referenced by FrontierMesh().

void Teddy::SpaceGame::FrontierMesh::printVertices   [protected]
 

Definition at line 528 of file FrontierMesh.cpp.

References vertex_count, and vertices.


Member Data Documentation

char* Teddy::SpaceGame::FrontierMesh::collision_pointer [protected]
 

Definition at line 80 of file FrontierMesh.h.

Referenced by parseObject().

list<Element*>::const_iterator Teddy::SpaceGame::FrontierMesh::debug_selected_element_it [protected]
 

Definition at line 93 of file FrontierMesh.h.

FrontierFile* Teddy::SpaceGame::FrontierMesh::f [protected]
 

Definition at line 85 of file FrontierMesh.h.

Referenced by FrontierMesh(), makeVertex(), parseElements(), parseNormals(), parseObject(), parseSpecs(), and parseVertices().

Face* Teddy::SpaceGame::FrontierMesh::face [protected]
 

Definition at line 86 of file FrontierMesh.h.

Referenced by faceBegin(), faceClose(), faceInsertSpline(), faceInsertVertex(), and parseElements().

bool Teddy::SpaceGame::FrontierMesh::face_good [protected]
 

Definition at line 88 of file FrontierMesh.h.

Referenced by faceBegin(), faceClose(), and faceInsertVertex().

int Teddy::SpaceGame::FrontierMesh::face_num_vertices [protected]
 

Definition at line 89 of file FrontierMesh.h.

Referenced by faceInsertSpline(), and faceInsertVertex().

bool Teddy::SpaceGame::FrontierMesh::face_open [protected]
 

Definition at line 87 of file FrontierMesh.h.

Referenced by faceBegin(), faceClose(), faceInsertSpline(), and faceInsertVertex().

int Teddy::SpaceGame::FrontierMesh::last_vertex_index [protected]
 

Definition at line 90 of file FrontierMesh.h.

Referenced by faceInsertSpline(), faceInsertVertex(), and parseElements().

char* Teddy::SpaceGame::FrontierMesh::mesh_pointer [protected]
 

Definition at line 67 of file FrontierMesh.h.

Referenced by parseElements(), and parseObject().

Uint32 Teddy::SpaceGame::FrontierMesh::normal_count [protected]
 

Definition at line 71 of file FrontierMesh.h.

Referenced by parseObject().

char* Teddy::SpaceGame::FrontierMesh::normal_pointer [protected]
 

Definition at line 70 of file FrontierMesh.h.

Referenced by parseNormals(), and parseObject().

int_to_Vertex Teddy::SpaceGame::FrontierMesh::normals [protected]
 

Definition at line 92 of file FrontierMesh.h.

Referenced by faceClose(), and parseNormals().

Sint32 Teddy::SpaceGame::FrontierMesh::primitive_count [protected]
 

Definition at line 75 of file FrontierMesh.h.

Referenced by parseObject().

Uint32 Teddy::SpaceGame::FrontierMesh::radius [protected]
 

Definition at line 74 of file FrontierMesh.h.

Referenced by FrontierMesh(), and parseObject().

char* Teddy::SpaceGame::FrontierMesh::spec_pointer [protected]
 

Definition at line 81 of file FrontierMesh.h.

Referenced by parseObject(), and parseSpecs().

Uint32 Teddy::SpaceGame::FrontierMesh::unknown_2 [protected]
 

Definition at line 72 of file FrontierMesh.h.

Referenced by parseObject().

Uint32 Teddy::SpaceGame::FrontierMesh::unknown_3 [protected]
 

Definition at line 73 of file FrontierMesh.h.

Referenced by parseObject().

Uint32 Teddy::SpaceGame::FrontierMesh::unknown_4 [protected]
 

Definition at line 76 of file FrontierMesh.h.

Referenced by parseObject().

Uint32 Teddy::SpaceGame::FrontierMesh::unknown_5 [protected]
 

Definition at line 77 of file FrontierMesh.h.

Referenced by parseObject().

Uint32 Teddy::SpaceGame::FrontierMesh::unknown_6 [protected]
 

Definition at line 78 of file FrontierMesh.h.

Referenced by parseObject().

Uint32 Teddy::SpaceGame::FrontierMesh::unknown_7 [protected]
 

Definition at line 79 of file FrontierMesh.h.

Referenced by parseObject().

Uint32 Teddy::SpaceGame::FrontierMesh::unknown_8 [protected]
 

Definition at line 82 of file FrontierMesh.h.

Referenced by parseObject().

Uint32 Teddy::SpaceGame::FrontierMesh::unknown_9 [protected]
 

Definition at line 83 of file FrontierMesh.h.

Referenced by parseObject().

Sint32 Teddy::SpaceGame::FrontierMesh::vertex_count [protected]
 

Definition at line 69 of file FrontierMesh.h.

Referenced by parseObject(), parseVertices(), and printVertices().

char* Teddy::SpaceGame::FrontierMesh::vertex_pointer [protected]
 

Definition at line 68 of file FrontierMesh.h.

Referenced by parseObject(), and parseVertices().

int_to_Vertex Teddy::SpaceGame::FrontierMesh::vertices [protected]
 

Definition at line 91 of file FrontierMesh.h.

Referenced by faceInsertSpline(), faceInsertVertex(), makeVertex(), parseElements(), parseVertices(), and printVertices().


The documentation for this class was generated from the following files: