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

FltToEggConverter Class Reference

#include <fltToEggConverter.h>

Inheritance diagram for FltToEggConverter:

SomethingToEggConverter List of all members.

Public Member Functions

 FltToEggConverter ()
 FltToEggConverter (const FltToEggConverter &copy)
 ~FltToEggConverter ()
virtual SomethingToEggConvertermake_copy ()
virtual string get_name () const
virtual string get_extension () const
virtual bool convert_file (const Filename &filename)
bool convert_flt (const FltHeader *flt_header)

Public Attributes

bool _compose_transforms

Private Types

typedef pvector< PT_EggVertexEggVertices
typedef pmap< const FltTexture *,
PT(EggTexture
Textures )

Private Member Functions

void cleanup ()
void convert_record (const FltRecord *flt_record, FltToEggLevelState &state)
void dispatch_record (const FltRecord *flt_record, FltToEggLevelState &state)
void convert_lod (const FltLOD *flt_lod, FltToEggLevelState &state)
void convert_group (const FltGroup *flt_group, FltToEggLevelState &state)
void convert_object (const FltObject *flt_object, FltToEggLevelState &state)
void convert_bead_id (const FltBeadID *flt_bead, FltToEggLevelState &state)
void convert_bead (const FltBead *flt_bead, FltToEggLevelState &state)
void convert_face (const FltFace *flt_face, FltToEggLevelState &state)
void convert_ext_ref (const FltExternalReference *flt_ext, FltToEggLevelState &state)
void setup_geometry (const FltGeometry *flt_geom, FltToEggLevelState &state, EggPrimitive *egg_prim, EggVertexPool *egg_vpool, const EggVertices &vertices)
void convert_subfaces (const FltRecord *flt_record, FltToEggLevelState &state)
bool parse_comment (const FltBeadID *flt_bead, EggNode *egg_node)
bool parse_comment (const FltBead *flt_bead, EggNode *egg_node)
bool parse_comment (const FltTexture *flt_texture, EggNode *egg_node)
bool parse_comment (const string &comment, const string &name, EggNode *egg_node)
PT_EggVertex make_egg_vertex (const FltVertex *flt_vertex)
PT_EggTexture make_egg_texture (const FltTexture *flt_texture)
 CPT (FltHeader) _flt_header
 PT (EggVertexPool) _main_egg_vpool

Private Attributes

Textures _textures

Member Typedef Documentation

typedef pvector< PT_EggVertex > FltToEggConverter::EggVertices [private]
 

Definition at line 77 of file fltToEggConverter.h.

typedef pmap<const FltTexture *, PT(EggTexture) FltToEggConverter::Textures) [private]
 

Definition at line 108 of file fltToEggConverter.h.


Constructor & Destructor Documentation

FltToEggConverter::FltToEggConverter  ) 
 

Definition at line 50 of file fltToEggConverter.cxx.

References _compose_transforms.

Referenced by make_copy().

FltToEggConverter::FltToEggConverter const FltToEggConverter &  copy  ) 
 

Definition at line 60 of file fltToEggConverter.cxx.

FltToEggConverter::~FltToEggConverter  ) 
 

Definition at line 72 of file fltToEggConverter.cxx.

References cleanup().


Member Function Documentation

void FltToEggConverter::cleanup  )  [private]
 

Definition at line 184 of file fltToEggConverter.cxx.

References _textures.

Referenced by convert_flt(), and ~FltToEggConverter().

void FltToEggConverter::convert_bead const FltBead flt_bead,
FltToEggLevelState state
[private]
 

Definition at line 337 of file fltToEggConverter.cxx.

References FltToEggLevelState::_egg_parent, convert_record(), FltBead::get_type(), nout, parse_comment(), and FltToEggLevelState::set_transform().

Referenced by dispatch_record().

void FltToEggConverter::convert_bead_id const FltBeadID flt_bead,
FltToEggLevelState state
[private]
 

Definition at line 316 of file fltToEggConverter.cxx.

References FltToEggLevelState::_egg_parent, convert_record(), FltBeadID::get_id(), FltBeadID::get_type(), nout, parse_comment(), and FltToEggLevelState::set_transform().

Referenced by dispatch_record().

void FltToEggConverter::convert_ext_ref const FltExternalReference flt_ext,
FltToEggLevelState state
[private]
 

Definition at line 406 of file fltToEggConverter.cxx.

References FltExternalReference::get_ref_filename(), FltToEggLevelState::get_synthetic_group(), and SomethingToEggConverter::handle_external_reference().

Referenced by dispatch_record().

void FltToEggConverter::convert_face const FltFace flt_face,
FltToEggLevelState state
[private]
 

Definition at line 357 of file fltToEggConverter.cxx.

References FltGeometry::_draw_type, DCAST, FltGeometry::DT_bi_light, FltGeometry::DT_omni_light, FltGeometry::DT_uni_light, FltRecord::get_child(), FltVertexList::get_class_type(), FltRecord::get_num_children(), TypedObject::is_of_type(), make_egg_vertex(), NULL, PT(), and setup_geometry().

Referenced by dispatch_record().

bool FltToEggConverter::convert_file const Filename filename  )  [virtual]
 

Implements SomethingToEggConverter.

Definition at line 122 of file fltToEggConverter.cxx.

References convert_flt(), FE_ok, FltError, nout, and PT().

bool FltToEggConverter::convert_flt const FltHeader flt_header  ) 
 

Definition at line 143 of file fltToEggConverter.cxx.

References SomethingToEggConverter::_egg_data, FltToEggLevelState::_egg_parent, SomethingToEggConverter::_error, cleanup(), convert_record(), CS_default, CS_zup_right, EggData::get_coordinate_system(), and EggData::set_coordinate_system().

Referenced by convert_file(), and FltToEgg::run().

void FltToEggConverter::convert_group const FltGroup flt_group,
FltToEggLevelState state
[private]
 

*** replicate count.

Definition at line 270 of file fltToEggConverter.cxx.

References FltToEggLevelState::_egg_parent, FltGroup::_flags, convert_record(), FltGroup::F_forward_animation, FltBeadID::get_id(), parse_comment(), EggGroup::set_switch_flag(), EggGroup::set_switch_fps(), and FltToEggLevelState::set_transform().

Referenced by dispatch_record().

void FltToEggConverter::convert_lod const FltLOD flt_lod,
FltToEggLevelState state
[private]
 

Definition at line 246 of file fltToEggConverter.cxx.

References FltLOD::_center_x, FltLOD::_center_y, FltLOD::_center_z, FltToEggLevelState::_egg_parent, FltLOD::_switch_in, FltLOD::_switch_out, FltLOD::_transition_range, convert_record(), FltBeadID::get_id(), parse_comment(), EggGroup::set_lod(), and FltToEggLevelState::set_transform().

Referenced by dispatch_record().

void FltToEggConverter::convert_object const FltObject flt_object,
FltToEggLevelState state
[private]
 

Definition at line 296 of file fltToEggConverter.cxx.

References FltToEggLevelState::_egg_parent, FltToEggLevelState::_flt_object, convert_record(), FltBeadID::get_id(), parse_comment(), and FltToEggLevelState::set_transform().

Referenced by dispatch_record().

void FltToEggConverter::convert_record const FltRecord flt_record,
FltToEggLevelState state
[private]
 

Definition at line 196 of file fltToEggConverter.cxx.

References dispatch_record(), FltRecord::get_child(), and FltRecord::get_num_children().

Referenced by convert_bead(), convert_bead_id(), convert_flt(), convert_group(), convert_lod(), convert_object(), and dispatch_record().

void FltToEggConverter::convert_subfaces const FltRecord flt_record,
FltToEggLevelState state
[private]
 

Definition at line 555 of file fltToEggConverter.cxx.

References FltToEggLevelState::_egg_parent, dispatch_record(), FltRecord::get_num_subfaces(), FltRecord::get_subface(), and EggGroup::set_decal_flag().

Referenced by setup_geometry().

FltToEggConverter::CPT FltHeader   )  [private]
 

void FltToEggConverter::dispatch_record const FltRecord flt_record,
FltToEggLevelState state
[private]
 

Definition at line 212 of file fltToEggConverter.cxx.

References convert_bead(), convert_bead_id(), convert_ext_ref(), convert_face(), convert_group(), convert_lod(), convert_object(), convert_record(), DCAST, FltBead::get_class_type(), FltBeadID::get_class_type(), FltExternalReference::get_class_type(), FltFace::get_class_type(), FltObject::get_class_type(), FltGroup::get_class_type(), FltLOD::get_class_type(), and TypedObject::is_of_type().

Referenced by convert_record(), and convert_subfaces().

string FltToEggConverter::get_extension  )  const [virtual]
 

Implements SomethingToEggConverter.

Definition at line 105 of file fltToEggConverter.cxx.

string FltToEggConverter::get_name  )  const [virtual]
 

Implements SomethingToEggConverter.

Definition at line 94 of file fltToEggConverter.cxx.

SomethingToEggConverter * FltToEggConverter::make_copy  )  [virtual]
 

Implements SomethingToEggConverter.

Definition at line 82 of file fltToEggConverter.cxx.

References FltToEggConverter().

PT_EggTexture FltToEggConverter::make_egg_texture const FltTexture flt_texture  )  [private]
 

Definition at line 738 of file fltToEggConverter.cxx.

References FltTexture::_pattern_index, _textures, FltTexture::ET_blend, FltTexture::ET_color, EggTexture::ET_decal, FltTexture::ET_decal, EggTexture::ET_modulate, FltTexture::ET_modulate, EggTexture::F_alpha, EggTexture::F_luminance, EggTexture::F_luminance_alpha, EggTexture::F_rgb12, EggTexture::F_rgb5, EggTexture::F_rgba12, EggTexture::F_rgba4, EggTexture::F_rgba8, format_string(), EggTexture::FT_linear, EggTexture::FT_linear_mipmap_linear, EggTexture::FT_linear_mipmap_nearest, EggTexture::FT_nearest, EggTexture::FT_nearest_mipmap_linear, EggTexture::FT_nearest_mipmap_nearest, FltTexture::get_texture_filename(), FltTexture::IF_default, FltTexture::IF_i_12a_4, FltTexture::IF_i_16, FltTexture::IF_ia_12, FltTexture::IF_ia_8, FltTexture::IF_rgb_12, FltTexture::IF_rgb_5, FltTexture::IF_rgba_12, FltTexture::IF_rgba_4, FltTexture::IF_rgba_8, FltTexture::MG_add_detail, FltTexture::MG_bicubic, FltTexture::MG_bicubic_gequal, FltTexture::MG_bicubic_lequal, FltTexture::MG_bilinear, FltTexture::MG_bilinear_gequal, FltTexture::MG_bilinear_lequal, FltTexture::MG_modulate_detail, FltTexture::MG_point, FltTexture::MG_sharpen, FltTexture::MN_bicubic, FltTexture::MN_bicubic_gequal, FltTexture::MN_bicubic_lequal, FltTexture::MN_bilinear, FltTexture::MN_bilinear_gequal, FltTexture::MN_bilinear_lequal, FltTexture::MN_mipmap_bilinear, FltTexture::MN_mipmap_linear, FltTexture::MN_mipmap_point, FltTexture::MN_mipmap_trilinear, FltTexture::MN_OB_mipmap, FltTexture::MN_point, parse_comment(), PT_EggTexture, FltTexture::RT_clamp, FltTexture::RT_repeat, EggTexture::WM_clamp, and EggTexture::WM_repeat.

Referenced by setup_geometry().

PT_EggVertex FltToEggConverter::make_egg_vertex const FltVertex flt_vertex  )  [private]
 

Definition at line 711 of file fltToEggConverter.cxx.

References FltVertex::_has_normal, FltVertex::_has_uv, FltVertex::_normal, FltVertex::_pos, FltVertex::_uv, FltVertex::get_color(), FltVertex::has_color(), LCAST, and PT_EggVertex.

Referenced by convert_face().

bool FltToEggConverter::parse_comment const string &  comment,
const string &  name,
EggNode egg_node
[private]
 

Definition at line 636 of file fltToEggConverter.cxx.

References SomethingToEggConverter::_allow_errors, SomethingToEggConverter::_error, cmp_nocase(), nout, p, EggNode::parse_egg(), q, and size_t.

bool FltToEggConverter::parse_comment const FltTexture flt_texture,
EggNode egg_node
[private]
 

Definition at line 621 of file fltToEggConverter.cxx.

References FltRecord::get_comment(), FltTexture::get_texture_filename(), and parse_comment().

bool FltToEggConverter::parse_comment const FltBead flt_bead,
EggNode egg_node
[private]
 

Definition at line 607 of file fltToEggConverter.cxx.

References FltRecord::get_comment(), and parse_comment().

bool FltToEggConverter::parse_comment const FltBeadID flt_bead,
EggNode egg_node
[private]
 

Definition at line 593 of file fltToEggConverter.cxx.

References FltRecord::get_comment(), and FltBeadID::get_id().

Referenced by convert_bead(), convert_bead_id(), convert_group(), convert_lod(), convert_object(), make_egg_texture(), parse_comment(), and setup_geometry().

FltToEggConverter::PT EggVertexPool   )  [private]
 

Referenced by convert_face(), and convert_file().

void FltToEggConverter::setup_geometry const FltGeometry flt_geom,
FltToEggLevelState state,
EggPrimitive egg_prim,
EggVertexPool egg_vpool,
const EggVertices vertices
[private]
 

Definition at line 424 of file fltToEggConverter.cxx.

References FltGeometry::_billboard_type, FltGeometry::_draw_type, FltToEggLevelState::_egg_parent, FltToEggLevelState::_flt_object, FltGeometry::_light_mode, FltGeometry::_texwhite, FltObject::_transparency, EggPrimitive::add_vertex(), alpha, EggAttributes::clear_color(), Colorf, convert_subfaces(), EggVertexPool::create_unique_vertex(), FltGeometry::DT_solid_no_backface, EggAttributes::get_color(), FltGeometry::get_color(), FltBeadID::get_id(), FltToEggLevelState::get_synthetic_group(), FltGeometry::get_texture(), FltGeometry::has_color(), EggAttributes::has_color(), FltGeometry::has_texture(), FltGeometry::LM_face_no_normal, FltGeometry::LM_face_with_normal, FltGeometry::LM_vertex_no_normal, FltGeometry::LM_vertex_with_normal, make_egg_texture(), NULL, parse_comment(), EggPrimitive::set_bface_flag(), EggAttributes::set_color(), and EggPrimitive::set_texture().

Referenced by convert_face().


Member Data Documentation

bool FltToEggConverter::_compose_transforms
 

Definition at line 72 of file fltToEggConverter.h.

Referenced by FltToEggConverter(), FltToEgg::run(), and FltToEggLevelState::set_transform().

Textures FltToEggConverter::_textures [private]
 

Definition at line 109 of file fltToEggConverter.h.

Referenced by cleanup(), and make_egg_texture().


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