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

SomethingToEgg Class Reference

#include <somethingToEgg.h>

Inheritance diagram for SomethingToEgg:

EggConverter EggFilter EggReader EggWriter EggBase EggBase WithOutputFile ProgramBase ProgramBase BamToEgg FltToEgg LwoToEgg MayaToEgg XFileToEgg List of all members.

Public Member Functions

 SomethingToEgg (const string &format_name, const string &preferred_extension=string(), bool allow_last_param=true, bool allow_stdout=true)
void add_units_options ()
void add_animation_options ()
void add_merge_externals_options ()

Protected Member Functions

void apply_units_scale (EggData &data)
void apply_parameters (SomethingToEggConverter &converter)
virtual bool handle_args (Args &args)
virtual bool post_command_line ()
virtual void post_process_egg_file ()

Static Protected Member Functions

bool dispatch_animation_convert (const string &opt, const string &arg, void *var)

Protected Attributes

Filename _input_filename
DistanceUnit _input_units
DistanceUnit _output_units
AnimationConvert _animation_convert
string _character_name
double _start_frame
double _end_frame
double _frame_inc
double _neutral_frame
double _input_frame_rate
double _output_frame_rate
bool _got_start_frame
bool _got_end_frame
bool _got_frame_inc
bool _got_neutral_frame
bool _got_input_frame_rate
bool _got_output_frame_rate
bool _merge_externals
bool _allow_errors

Constructor & Destructor Documentation

SomethingToEgg::SomethingToEgg const string &  format_name,
const string &  preferred_extension = string(),
bool  allow_last_param = true,
bool  allow_stdout = true
 

Definition at line 33 of file somethingToEgg.cxx.

References _allow_errors, _animation_convert, EggConverter::_format_name, _got_end_frame, _got_frame_inc, _got_input_frame_rate, _got_neutral_frame, _got_output_frame_rate, _got_start_frame, _input_units, _merge_externals, _output_units, WithOutputFile::_preferred_extension, AC_none, ProgramBase::add_option(), ProgramBase::add_runline(), ProgramBase::clear_runlines(), ProgramBase::dispatch_none(), DU_invalid, ProgramBase::redescribe_option(), and ProgramBase::remove_option().


Member Function Documentation

void SomethingToEgg::add_animation_options  ) 
 

Definition at line 104 of file somethingToEgg.cxx.

References _animation_convert, _character_name, _end_frame, EggConverter::_format_name, _frame_inc, _got_end_frame, _got_frame_inc, _got_input_frame_rate, _got_neutral_frame, _got_output_frame_rate, _got_start_frame, _input_frame_rate, _neutral_frame, _output_frame_rate, _start_frame, ProgramBase::add_option(), dispatch_animation_convert(), ProgramBase::dispatch_double(), ProgramBase::dispatch_string(), and NULL.

Referenced by MayaToEgg::MayaToEgg().

void SomethingToEgg::add_merge_externals_options  ) 
 

Definition at line 168 of file somethingToEgg.cxx.

References _merge_externals, ProgramBase::add_option(), and ProgramBase::dispatch_none().

Referenced by FltToEgg::FltToEgg().

void SomethingToEgg::add_units_options  ) 
 

Definition at line 82 of file somethingToEgg.cxx.

References EggConverter::_format_name, _input_units, _output_units, ProgramBase::add_option(), ProgramBase::dispatch_units(), and NULL.

Referenced by FltToEgg::FltToEgg(), LwoToEgg::LwoToEgg(), and MayaToEgg::MayaToEgg().

void SomethingToEgg::apply_parameters SomethingToEggConverter converter  )  [protected]
 

Definition at line 202 of file somethingToEgg.cxx.

References _animation_convert, _character_name, _end_frame, _frame_inc, _input_frame_rate, _neutral_frame, _output_frame_rate, _start_frame, SomethingToEggConverter::set_animation_convert(), SomethingToEggConverter::set_character_name(), SomethingToEggConverter::set_end_frame(), SomethingToEggConverter::set_frame_inc(), SomethingToEggConverter::set_input_frame_rate(), SomethingToEggConverter::set_neutral_frame(), SomethingToEggConverter::set_output_frame_rate(), SomethingToEggConverter::set_path_replace(), and SomethingToEggConverter::set_start_frame().

Referenced by MayaToEgg::run(), LwoToEgg::run(), and FltToEgg::run().

void SomethingToEgg::apply_units_scale EggData data  )  [protected]
 

Definition at line 183 of file somethingToEgg.cxx.

References _input_units, _output_units, convert_units(), data, DU_invalid, format_long_unit(), nout, and scale.

Referenced by post_process_egg_file().

bool SomethingToEgg::dispatch_animation_convert const string &  opt,
const string &  arg,
void var
[static, protected]
 

Definition at line 328 of file somethingToEgg.cxx.

References AC_invalid, AnimationConvert, nout, and string_animation_convert().

Referenced by add_animation_options().

bool SomethingToEgg::handle_args Args args  )  [protected, virtual]
 

Definition at line 233 of file somethingToEgg.cxx.

References WithOutputFile::_allow_last_param, EggConverter::_format_name, WithOutputFile::_got_output_filename, _input_filename, WithOutputFile::_output_filename, Filename::exists(), Filename::from_os_specific(), Filename::get_extension(), nout, and WithOutputFile::verify_output_file_safe().

bool SomethingToEgg::post_command_line  )  [protected, virtual]
 

Reimplemented from EggFilter.

Definition at line 290 of file somethingToEgg.cxx.

References _input_filename, Filename::empty(), Filename::get_dirname(), get_model_path(), EggFilter::post_command_line(), and DSearchPath::prepend_directory().

void SomethingToEgg::post_process_egg_file  )  [protected, virtual]
 

Reimplemented from EggWriter.

Definition at line 315 of file somethingToEgg.cxx.

References EggBase::_data, apply_units_scale(), and EggWriter::post_process_egg_file().


Member Data Documentation

bool SomethingToEgg::_allow_errors [protected]
 

Definition at line 79 of file somethingToEgg.h.

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

AnimationConvert SomethingToEgg::_animation_convert [protected]
 

Definition at line 63 of file somethingToEgg.h.

Referenced by add_animation_options(), apply_parameters(), and SomethingToEgg().

string SomethingToEgg::_character_name [protected]
 

Definition at line 64 of file somethingToEgg.h.

Referenced by add_animation_options(), and apply_parameters().

double SomethingToEgg::_end_frame [protected]
 

Definition at line 66 of file somethingToEgg.h.

Referenced by add_animation_options(), and apply_parameters().

double SomethingToEgg::_frame_inc [protected]
 

Definition at line 67 of file somethingToEgg.h.

Referenced by add_animation_options(), and apply_parameters().

bool SomethingToEgg::_got_end_frame [protected]
 

Definition at line 72 of file somethingToEgg.h.

Referenced by add_animation_options(), and SomethingToEgg().

bool SomethingToEgg::_got_frame_inc [protected]
 

Definition at line 73 of file somethingToEgg.h.

Referenced by add_animation_options(), and SomethingToEgg().

bool SomethingToEgg::_got_input_frame_rate [protected]
 

Definition at line 75 of file somethingToEgg.h.

Referenced by add_animation_options(), and SomethingToEgg().

bool SomethingToEgg::_got_neutral_frame [protected]
 

Definition at line 74 of file somethingToEgg.h.

Referenced by add_animation_options(), and SomethingToEgg().

bool SomethingToEgg::_got_output_frame_rate [protected]
 

Definition at line 76 of file somethingToEgg.h.

Referenced by add_animation_options(), and SomethingToEgg().

bool SomethingToEgg::_got_start_frame [protected]
 

Definition at line 71 of file somethingToEgg.h.

Referenced by add_animation_options(), and SomethingToEgg().

Filename SomethingToEgg::_input_filename [protected]
 

Definition at line 58 of file somethingToEgg.h.

Referenced by handle_args(), post_command_line(), XFileToEgg::run(), MayaToEgg::run(), LwoToEgg::run(), FltToEgg::run(), and BamToEgg::run().

double SomethingToEgg::_input_frame_rate [protected]
 

Definition at line 69 of file somethingToEgg.h.

Referenced by add_animation_options(), and apply_parameters().

DistanceUnit SomethingToEgg::_input_units [protected]
 

Definition at line 60 of file somethingToEgg.h.

Referenced by add_units_options(), apply_units_scale(), MayaToEgg::run(), LwoToEgg::run(), FltToEgg::run(), and SomethingToEgg().

bool SomethingToEgg::_merge_externals [protected]
 

Definition at line 78 of file somethingToEgg.h.

Referenced by add_merge_externals_options(), FltToEgg::run(), and SomethingToEgg().

double SomethingToEgg::_neutral_frame [protected]
 

Definition at line 68 of file somethingToEgg.h.

Referenced by add_animation_options(), and apply_parameters().

double SomethingToEgg::_output_frame_rate [protected]
 

Definition at line 70 of file somethingToEgg.h.

Referenced by add_animation_options(), and apply_parameters().

DistanceUnit SomethingToEgg::_output_units [protected]
 

Definition at line 61 of file somethingToEgg.h.

Referenced by add_units_options(), apply_units_scale(), and SomethingToEgg().

double SomethingToEgg::_start_frame [protected]
 

Definition at line 65 of file somethingToEgg.h.

Referenced by add_animation_options(), and apply_parameters().


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