37 return !_allow_errors && (_error || _path_replace->had_error());
49 _path_replace = path_replace;
88 _animation_convert = animation_convert;
99 return _animation_convert;
112 _character_name = character_name;
123 return _character_name;
137 _start_frame = start_frame;
138 _control_flags |= CF_start_frame;
151 return (_control_flags & CF_start_frame) != 0;
176 _control_flags &= ~CF_start_frame;
190 _end_frame = end_frame;
191 _control_flags |= CF_end_frame;
204 return (_control_flags & CF_end_frame) != 0;
229 _control_flags &= ~CF_end_frame;
245 _frame_inc = frame_inc;
246 _control_flags |= CF_frame_inc;
259 return (_control_flags & CF_frame_inc) != 0;
284 _control_flags &= ~CF_frame_inc;
295 _neutral_frame = neutral_frame;
296 _control_flags |= CF_neutral_frame;
308 return (_control_flags & CF_neutral_frame) != 0;
321 return _neutral_frame;
332 _neutral_frame = 0.0;
333 _control_flags &= ~CF_neutral_frame;
349 _input_frame_rate = input_frame_rate;
350 _control_flags |= CF_input_frame_rate;
362 return (_control_flags & CF_input_frame_rate) != 0;
375 return _input_frame_rate;
386 _input_frame_rate = 0.0;
387 _control_flags &= ~CF_input_frame_rate;
400 _output_frame_rate = output_frame_rate;
401 _control_flags |= CF_output_frame_rate;
413 return (_control_flags & CF_output_frame_rate) != 0;
426 return _output_frame_rate;
437 _output_frame_rate = 0.0;
438 _control_flags &= ~CF_output_frame_rate;
464 _merge_externals = merge_externals;
475 return _merge_externals;
508 return _path_replace->convert_path(orig_filename);
void clear_input_frame_rate()
Removes the value previously set by set_input_frame_rate().
void set_frame_inc(double frame_inc)
Specifies the increment between frames to extract.
void clear_frame_inc()
Removes the value previously set by set_frame_inc().
bool had_error() const
Returns true if an error was detected during the conversion process (unless _allow_errors is true)...
void clear_start_frame()
Removes the value previously set by set_start_frame().
void clear_output_frame_rate()
Removes the value previously set by set_output_frame_rate().
bool has_frame_inc() const
Returns true if the frame increment has been explicitly specified via set_frame_inc(), or false if the ending frame should be implicit based on the source.
bool has_start_frame() const
Returns true if the starting frame has been explicitly specified via set_start_frame(), or false if the starting frame should be implicit based on the source.
bool has_neutral_frame() const
Returns true if the neutral frame has been explicitly specified via set_neutral_frame(), or false otherwise.
EggData * get_egg_data()
Returns the EggData structure.
double get_neutral_frame() const
Returns the value set by a previous call to set_neutral_frame().
void set_neutral_frame(double neutral_frame)
Specifies the frame of animation to represent the neutral pose of the model.
This is the primary interface into all the egg data, and the root of the egg file structure...
const string & get_character_name() const
Returns the name of the character generated.
bool has_input_frame_rate() const
Returns true if the frame rate has been explicitly specified via set_input_frame_rate(), or false otherwise.
void set_character_name(const string &character_name)
Specifies the name of the character generated.
void set_start_frame(double start_frame)
Specifies the starting frame of the animation to convert, in the units specified by set_input_frame_r...
void clear_egg_data()
Sets the EggData to NULL and makes the converter invalid.
void set_end_frame(double end_frame)
Specifies the ending frame of the animation to convert, in the units specified by set_input_frame_rat...
void clear_error()
Resets the error flag to the no-error state.
The name of a file, such as a texture file or an Egg file.
double get_input_frame_rate() const
Returns the value set by a previous call to set_input_frame_rate().
AnimationConvert get_animation_convert() const
Returns how source animation will be converted into egg structures.
void set_path_replace(PathReplace *path_replace)
Replaces the PathReplace object (which specifies how to mangle paths from the source to the destinati...
void clear_neutral_frame()
Removes the value previously set by set_neutral_frame().
void set_animation_convert(AnimationConvert animation_convert)
Specifies how source animation will be converted into egg structures.
void set_egg_data(EggData *egg_data)
Sets the egg data that will be filled in when convert_file() is called.
double get_frame_inc() const
Returns the value set by a previous call to set_frame_inc().
double get_start_frame() const
Returns the value set by a previous call to set_start_frame().
PathReplace * get_path_replace()
Returns a pointer to the PathReplace object associated with this converter.
This encapsulates the user's command-line request to replace existing, incorrect pathnames to models ...
bool has_end_frame() const
Returns true if the ending frame has been explicitly specified via set_end_frame(), or false if the ending frame should be implicit based on the source.
void set_merge_externals(bool merge_externals)
Sets the merge_externals flag.
double get_output_frame_rate() const
Returns the value set by a previous call to set_output_frame_rate().
void set_output_frame_rate(double output_frame_rate)
Specifies the number of frames per second that the resulting animation should be played at...
bool get_merge_externals() const
Returns the current state of the merge_externals flag.
void clear_end_frame()
Removes the value previously set by set_end_frame().
static double get_default_frame_rate()
Returns the default frame rate if nothing is specified for input_frame_rate or output_frame_rate, and the animation package does not have an implicit frame rate.
void set_input_frame_rate(double input_frame_rate)
Specifies the number of frames per second that is represented by the "frame" unit in the animation pa...
bool has_output_frame_rate() const
Returns true if the frame rate has been explicitly specified via set_output_frame_rate(), or false otherwise.
Filename convert_model_path(const Filename &orig_filename)
Converts the indicated model filename to a relative or absolute or whatever filename, according to _path_replace.
double get_end_frame() const
Returns the value set by a previous call to set_end_frame().