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

EggToC Class Reference

#include <eggToC.h>

Inheritance diagram for EggToC:

EggToSomething EggConverter EggFilter EggReader EggWriter EggBase EggBase WithOutputFile ProgramBase ProgramBase List of all members.

Public Types

typedef pmap< EggVertexPool *,
int
VertexPools

Public Member Functions

 EggToC ()
void run ()
void traverse (EggNode *node)
void write_vertex_pool (EggVertexPool *vpool)
void write_bin (EggBin *bin)

Public Attributes

bool _vertices
bool _uvs
bool _vertex_normals
bool _vertex_colors
bool _polygons
bool _polygon_normals
bool _polygon_colors
bool _triangulate_polygons
VertexPools _vertex_pools
int _next_vpool_index
int _next_bin_index

Member Typedef Documentation

typedef pmap<EggVertexPool *, int> EggToC::VertexPools
 

Definition at line 56 of file eggToC.h.


Constructor & Destructor Documentation

EggToC::EggToC  ) 
 

Definition at line 36 of file eggToC.cxx.

References _polygon_colors, _polygon_normals, _polygons, _triangulate_polygons, _uvs, _vertex_colors, _vertex_normals, _vertices, ProgramBase::add_option(), c, ProgramBase::dispatch_none(), ProgramBase::remove_option(), ProgramBase::set_program_description(), and true.


Member Function Documentation

void EggToC::run  ) 
 

Definition at line 96 of file eggToC.cxx.

References EggBase::_data, _next_bin_index, _next_vpool_index, EggNode::apply_texmats(), EggNode::flatten_transforms(), ProgramBase::get_exec_command(), WithOutputFile::get_output(), EggBinMaker::make_bins(), nout, EggGroupNode::remove_invalid_primitives(), EggGroupNode::remove_unused_vertices(), EggPolysetMaker::set_properties(), traverse(), and EggGroupNode::triangulate_polygons().

Referenced by main().

void EggToC::traverse EggNode node  ) 
 

Definition at line 134 of file eggToC.cxx.

References EggGroupNode::begin(), EggGroupNode::const_iterator, DCAST, EggGroupNode::end(), EggGroupNode::get_class_type(), EggBin::get_class_type(), EggVertexPool::get_class_type(), TypedObject::is_of_type(), write_bin(), and write_vertex_pool().

Referenced by run().

void EggToC::write_bin EggBin bin  ) 
 

Definition at line 264 of file eggToC.cxx.

References _next_bin_index, _triangulate_polygons, _vertex_pools, EggPrimitive::begin(), EggGroupNode::begin(), c, Colorf, EggPrimitive::const_iterator, EggGroupNode::const_iterator, DCAST, EggPrimitive::end(), EggGroupNode::end(), format_string(), EggPrimitive::get_class_type(), EggAttributes::get_color(), EggVertex::get_index(), Namable::get_name(), EggAttributes::get_normal(), WithOutputFile::get_output(), EggPrimitive::get_pool(), EggAttributes::has_color(), EggAttributes::has_normal(), TypedObject::is_of_type(), n, Normald, ostream, EggPrimitive::size(), EggGroupNode::size(), and size_t.

Referenced by traverse().

void EggToC::write_vertex_pool EggVertexPool vpool  ) 
 

Definition at line 157 of file eggToC.cxx.

References _next_vpool_index, _vertex_pools, c, Colorf, EggAttributes::get_color(), EggVertexPool::get_highest_index(), Namable::get_name(), EggAttributes::get_normal(), EggVertex::get_num_dimensions(), WithOutputFile::get_output(), EggVertex::get_pos4(), EggAttributes::get_uv(), EggVertexPool::get_vertex(), EggAttributes::has_color(), EggAttributes::has_normal(), EggAttributes::has_uv(), n, Normald, NULL, ostream, p, and TexCoordd.

Referenced by traverse().


Member Data Documentation

int EggToC::_next_bin_index
 

Definition at line 59 of file eggToC.h.

Referenced by run(), and write_bin().

int EggToC::_next_vpool_index
 

Definition at line 58 of file eggToC.h.

Referenced by run(), and write_vertex_pool().

bool EggToC::_polygon_colors
 

Definition at line 52 of file eggToC.h.

Referenced by EggToC().

bool EggToC::_polygon_normals
 

Definition at line 51 of file eggToC.h.

Referenced by EggToC().

bool EggToC::_polygons
 

Definition at line 50 of file eggToC.h.

Referenced by EggToC().

bool EggToC::_triangulate_polygons
 

Definition at line 54 of file eggToC.h.

Referenced by EggToC(), and write_bin().

bool EggToC::_uvs
 

Definition at line 47 of file eggToC.h.

Referenced by EggToC().

bool EggToC::_vertex_colors
 

Definition at line 49 of file eggToC.h.

Referenced by EggToC().

bool EggToC::_vertex_normals
 

Definition at line 48 of file eggToC.h.

Referenced by EggToC().

VertexPools EggToC::_vertex_pools
 

Definition at line 57 of file eggToC.h.

Referenced by write_bin(), and write_vertex_pool().

bool EggToC::_vertices
 

Definition at line 46 of file eggToC.h.

Referenced by EggToC().


The documentation for this class was generated from the following files:
Generated on Fri Apr 18 01:00:53 2003 for Panda-Tool by doxygen1.3