29 return !_allow_errors && (_error || _path_replace->had_error());
38 _path_replace = path_replace;
68 _animation_convert = animation_convert;
76 return _animation_convert;
86 _character_name = character_name;
94 return _character_name;
105 _start_frame = start_frame;
106 _control_flags |= CF_start_frame;
116 return (_control_flags & CF_start_frame) != 0;
135 _control_flags &= ~CF_start_frame;
146 _end_frame = end_frame;
147 _control_flags |= CF_end_frame;
157 return (_control_flags & CF_end_frame) != 0;
176 _control_flags &= ~CF_end_frame;
188 _frame_inc = frame_inc;
189 _control_flags |= CF_frame_inc;
199 return (_control_flags & CF_frame_inc) != 0;
218 _control_flags &= ~CF_frame_inc;
227 _neutral_frame = neutral_frame;
228 _control_flags |= CF_neutral_frame;
237 return (_control_flags & CF_neutral_frame) != 0;
247 return _neutral_frame;
255 _neutral_frame = 0.0;
256 _control_flags &= ~CF_neutral_frame;
268 _input_frame_rate = input_frame_rate;
269 _control_flags |= CF_input_frame_rate;
278 return (_control_flags & CF_input_frame_rate) != 0;
288 return _input_frame_rate;
296 _input_frame_rate = 0.0;
297 _control_flags &= ~CF_input_frame_rate;
307 _output_frame_rate = output_frame_rate;
308 _control_flags |= CF_output_frame_rate;
317 return (_control_flags & CF_output_frame_rate) != 0;
327 return _output_frame_rate;
335 _output_frame_rate = 0.0;
336 _control_flags &= ~CF_output_frame_rate;
356 _merge_externals = merge_externals;
365 return _merge_externals;
390 return _path_replace->convert_path(orig_filename);
void set_character_name(const std::string &character_name)
Specifies the name of the character generated.
void clear_input_frame_rate()
Removes the value previously set by set_input_frame_rate().
AnimationConvert
This enumerated type lists the methods by which animation from an animation package might be represen...
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(),...
bool has_start_frame() const
Returns true if the starting frame has been explicitly specified via set_start_frame(),...
bool has_neutral_frame() const
Returns true if the neutral frame has been explicitly specified via set_neutral_frame(),...
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.
bool has_input_frame_rate() const
Returns true if the frame rate has been explicitly specified via set_input_frame_rate(),...
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...
const std::string & get_character_name() const
Returns the name of the character generated.
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(),...
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,...
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(),...
Filename convert_model_path(const Filename &orig_filename)
Converts the indicated model filename to a relative or absolute or whatever filename,...
double get_end_frame() const
Returns the value set by a previous call to set_end_frame().