Panda3D
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Types | Protected Member Functions | Protected Attributes

SoftToEggConverter Class Reference

This class supervises the construction of an EggData structure from a single Softimage file, or from the data already in th cout << "egg name = " << eggFilename << endl;e global Softimage model space. More...

#include "softToEggConverter.h"

Inheritance diagram for SoftToEggConverter:
SomethingToEggConverter

List of all members.

Public Types

typedef pvector< EggSAnimData * > MorphTable
enum  TransformType {
  TT_invalid, TT_all, TT_model, TT_dcs,
  TT_none
}

Public Member Functions

 SoftToEggConverter (const string &program_name="")
 SoftToEggConverter (const SoftToEggConverter &copy)
void clear_egg_data ()
 Sets the EggData to NULL and makes the converter invalid.
void clear_end_frame ()
 Removes the value previously set by set_end_frame().
void clear_error ()
 Resets the error flag to the no-error state.
void clear_frame_inc ()
 Removes the value previously set by set_frame_inc().
void clear_input_frame_rate ()
 Removes the value previously set by set_input_frame_rate().
void clear_neutral_frame ()
 Removes the value previously set by set_neutral_frame().
void clear_output_frame_rate ()
 Removes the value previously set by set_output_frame_rate().
void clear_start_frame ()
 Removes the value previously set by set_start_frame().
void close_api ()
 Closes the Soft API, if it was previously opened.
virtual bool convert_file (const Filename &filename)
 Handles the reading of the input file and converting it to egg.
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.
bool convert_soft (bool from_selection)
 Fills up the egg_data structure according to the global soft model data.
bool DoGetopts (int &argc, char **&argv)
 Calls getopt() to parse the command-line switches.
EggSAnimDatafind_morph_table (char *name)
 Given a tablename, it either creates a new eggSAnimData structure (if doesn't exist) or locates it.
SoftNodeDescfind_node (string name)
 Returns the English name of the file type this converter supports.
int * FindClosestTriVert (EggVertexPool *vpool, SAA_DVector *vertices, int numVert)
 Given an egg vertex pool, map each vertex therein to a vertex within an array of SAA model vertices of size numVert.
virtual string get_additional_extensions () const
 Returns a space-separated list of extension, in addition to the one returned by get_extension(), that are recognized by this converter.
AnimationConvert get_animation_convert () const
 Returns how source animation will be converted into egg structures.
const string & get_character_name () const
 Returns the name of the character generated.
EggDataget_egg_data ()
 Returns the EggData structure.
double get_end_frame () const
 Returns the value set by a previous call to set_end_frame().
virtual string get_extension () const
 Returns the common extension of the file type this converter supports.
double get_frame_inc () const
 Returns the value set by a previous call to set_frame_inc().
double get_input_frame_rate () const
 Returns the value set by a previous call to set_input_frame_rate().
virtual DistanceUnit get_input_units ()
 This may be called after convert_file() has been called and returned true, indicating a successful conversion.
bool get_merge_externals () const
 Returns the current state of the merge_externals flag.
virtual string get_name () const
 Returns the English name of the file type this converter supports.
double get_neutral_frame () const
 Returns the value set by a previous call to set_neutral_frame().
double get_output_frame_rate () const
 Returns the value set by a previous call to set_output_frame_rate().
PathReplaceget_path_replace ()
 Returns a pointer to the PathReplace object associated with this converter.
const PathReplaceget_path_replace () const
 Returns a pointer to the PathReplace object associated with this converter.
double get_start_frame () const
 Returns the value set by a previous call to set_start_frame().
char * GetTextureName (SAA_Scene *scene, SAA_Elem *texture)
 Given a texture element, return texture name with given tex_path.
bool had_error () const
 Returns true if an error was detected during the conversion process (unless _allow_errors is true), false otherwise.
bool handle_external_reference (EggGroupNode *egg_parent, const Filename &ref_filename)
 Handles an external reference in the source file.
bool HandleGetopts (int &idx, int argc, char **argv)
 increment idx based on what kind of option parsed Supported options are as follows: r:d:s:m:t:P:b:e:f:T:S:M:A:N:v:o:FhknpaxiucCD
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.
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_input_frame_rate () const
 Returns true if the frame rate has been explicitly specified via set_input_frame_rate(), or false otherwise.
bool has_neutral_frame () const
 Returns true if the neutral frame has been explicitly specified via set_neutral_frame(), or false otherwise.
bool has_output_frame_rate () const
 Returns true if the frame rate has been explicitly specified via set_output_frame_rate(), or false otherwise.
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.
void Help ()
 Displays the "what is this program" message, along with the usage message.
virtual SomethingToEggConvertermake_copy ()
 Allocates and returns a new copy of the converter.
bool open_api ()
 Attempts to open the Soft API if it was not already open, and returns true if successful, or false if there is an error.
void set_animation_convert (AnimationConvert animation_convert)
 Specifies how source animation will be converted into egg structures.
void set_character_name (const string &character_name)
 Specifies the name of the character generated.
void set_egg_data (EggData *egg_data)
 Sets the egg data that will be filled in when convert_file() is called.
void set_end_frame (double end_frame)
 Specifies the ending frame of the animation to convert, in the units specified by set_input_frame_rate().
void set_frame_inc (double frame_inc)
 Specifies the increment between frames to extract.
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 package.
void set_merge_externals (bool merge_externals)
 Sets the merge_externals flag.
void set_neutral_frame (double neutral_frame)
 Specifies the frame of animation to represent the neutral pose of the model.
void set_output_frame_rate (double output_frame_rate)
 Specifies the number of frames per second that the resulting animation should be played at.
void set_path_replace (PathReplace *path_replace)
 Replaces the PathReplace object (which specifies how to mangle paths from the source to the destination egg file) with a new one.
void set_start_frame (double start_frame)
 Specifies the starting frame of the animation to convert, in the units specified by set_input_frame_rate().
void ShowOpts ()
 Displays the valid options.
virtual bool supports_compressed () const
 Returns true if this file type can transparently load compressed files (with a .pz extension), false otherwise.
void Usage ()
 Displays the usage message.

Static Public Member Functions

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.
static TransformType string_transform_type (const string &arg)
 Returns the TransformType value corresponding to the indicated string, or TT_invalid.

Public Attributes

bool _allow_errors
char _commandLine [4096]
const char * _commandName
char * _getopts
MorphTable _morph_table
bool _polygon_output
double _polygon_tolerance
EggTextureCollection _textures
TransformType _transform_type
SoftNodeTree _tree
int anim_end
int anim_rate
int anim_start
char * animFileName
char * database_name
char * eggFileName
char * eggGroupName
int flatten
bool foundRoot
bool geom_as_joint
bool has_morph
int ignore_tex_offsets
bool make_anim
bool make_dart
bool make_duv
bool make_morph
bool make_nurbs
bool make_poly
bool make_pose
bool make_soft
char * model_name
EggTablemorph_node
int nurbs_step
int pose_frame
char * rsrc_path
SAA_Scene scene
char * scene_name
char * search_prefix
int shift_textures
char * tex_filename
char * tex_path
int use_prefix
int verbose

Protected Types

enum  ControlFlags {
  CF_start_frame = 0x0001, CF_end_frame = 0x0002, CF_frame_inc = 0x0004, CF_neutral_frame = 0x0008,
  CF_input_frame_rate = 0x0010, CF_output_frame_rate = 0x0020
}

Protected Member Functions

 PT (PathReplace) _path_replace
 PT (EggData) _egg_data

Protected Attributes

AnimationConvert _animation_convert
string _character_name
int _control_flags
double _end_frame
bool _error
double _frame_inc
double _input_frame_rate
bool _merge_externals
double _neutral_frame
double _output_frame_rate
double _start_frame

Detailed Description

This class supervises the construction of an EggData structure from a single Softimage file, or from the data already in th cout << "egg name = " << eggFilename << endl;e global Softimage model space.

Definition at line 53 of file softToEggConverter.h.


Member Function Documentation

void SomethingToEggConverter::clear_egg_data ( ) [inline, inherited]

Sets the EggData to NULL and makes the converter invalid.

Definition at line 485 of file somethingToEggConverter.I.

References SomethingToEggConverter::set_egg_data().

void SomethingToEggConverter::clear_end_frame ( ) [inline, inherited]

Removes the value previously set by set_end_frame().

Definition at line 227 of file somethingToEggConverter.I.

void SomethingToEggConverter::clear_error ( ) [inline, inherited]
void SomethingToEggConverter::clear_frame_inc ( ) [inline, inherited]

Removes the value previously set by set_frame_inc().

Definition at line 282 of file somethingToEggConverter.I.

void SomethingToEggConverter::clear_input_frame_rate ( ) [inline, inherited]

Removes the value previously set by set_input_frame_rate().

Definition at line 385 of file somethingToEggConverter.I.

void SomethingToEggConverter::clear_neutral_frame ( ) [inline, inherited]

Removes the value previously set by set_neutral_frame().

Definition at line 331 of file somethingToEggConverter.I.

void SomethingToEggConverter::clear_output_frame_rate ( ) [inline, inherited]

Removes the value previously set by set_output_frame_rate().

Definition at line 436 of file somethingToEggConverter.I.

void SomethingToEggConverter::clear_start_frame ( ) [inline, inherited]

Removes the value previously set by set_start_frame().

Definition at line 174 of file somethingToEggConverter.I.

void SoftToEggConverter::close_api ( )

Closes the Soft API, if it was previously opened.

Caution! Soft appears to call exit() when its API is closed.

Definition at line 724 of file softToEggConverter.cxx.

bool SoftToEggConverter::convert_file ( const Filename filename) [virtual]

Handles the reading of the input file and converting it to egg.

Returns true if successful, false otherwise.

This is designed to be as generic as possible, generally in support of run-time loading. Also see convert_soft().

Implements SomethingToEggConverter.

Definition at line 548 of file softToEggConverter.cxx.

References convert_soft(), Filename::get_basename_wo_extension(), and open_api().

Filename SomethingToEggConverter::convert_model_path ( const Filename orig_filename) [inline, inherited]

Converts the indicated model filename to a relative or absolute or whatever filename, according to _path_replace.

Definition at line 507 of file somethingToEggConverter.I.

Referenced by XFileMaterial::apply_to_egg(), and CLwoSurface::check_texture().

bool SoftToEggConverter::convert_soft ( bool  from_selection)

Fills up the egg_data structure according to the global soft model data.

Returns true if successful, false if there is an error. If from_selection is true, the converted geometry is based on that which is selected; otherwise, it is the entire Soft scene.

Definition at line 570 of file softToEggConverter.cxx.

References SoftNodeTree::build_complete_hierarchy(), EggTextureCollection::clear(), Filename::get_dirname(), SomethingToEggConverter::get_egg_data(), SoftNodeTree::GetRootName(), and SomethingToEggConverter::set_egg_data().

Referenced by convert_file().

bool SoftToEggConverter::DoGetopts ( int &  argc,
char **&  argv 
)

Calls getopt() to parse the command-line switches.

Calls HandleGetopts() to interpret each switch. Returns true if the parsing was successful; false if there was an error. Adjusts argc and argv to remove the switches from the parameter list.

Definition at line 217 of file softToEggConverter.cxx.

References HandleGetopts(), and Usage().

EggSAnimData * SoftToEggConverter::find_morph_table ( char *  name)

Given a tablename, it either creates a new eggSAnimData structure (if doesn't exist) or locates it.

Definition at line 752 of file softToEggConverter.cxx.

References EggGroupNode::add_child().

Referenced by SoftNodeDesc::make_linear_morph_table(), and SoftNodeDesc::make_weighted_morph_table().

SoftNodeDesc * SoftToEggConverter::find_node ( string  name)

Returns the English name of the file type this converter supports.

Definition at line 494 of file softToEggConverter.cxx.

References SoftNodeTree::get_node().

int * SoftToEggConverter::FindClosestTriVert ( EggVertexPool vpool,
SAA_DVector *  vertices,
int  numVert 
)

Given an egg vertex pool, map each vertex therein to a vertex within an array of SAA model vertices of size numVert.

Mapping is done by closest proximity.

Definition at line 1579 of file softToEggConverter.cxx.

References EggVertexPool::begin(), EggVertexPool::end(), EggVertex::get_external_index(), EggVertex::get_pos3(), and EggVertexPool::size().

string SomethingToEggConverter::get_additional_extensions ( ) const [virtual, inherited]

Returns a space-separated list of extension, in addition to the one returned by get_extension(), that are recognized by this converter.

Reimplemented in MayaToEggConverter.

Definition at line 88 of file somethingToEggConverter.cxx.

Referenced by LoaderFileTypePandatool::get_additional_extensions().

AnimationConvert SomethingToEggConverter::get_animation_convert ( ) const [inline, inherited]

Returns how source animation will be converted into egg structures.

Definition at line 98 of file somethingToEggConverter.I.

Referenced by MayaToEggConverter::convert_maya(), and MayaNodeTree::get_egg_group().

const string & SomethingToEggConverter::get_character_name ( ) const [inline, inherited]

Returns the name of the character generated.

See set_character_name().

Definition at line 122 of file somethingToEggConverter.I.

double SomethingToEggConverter::get_default_frame_rate ( ) [inline, static, inherited]

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.

Definition at line 450 of file somethingToEggConverter.I.

EggData * SomethingToEggConverter::get_egg_data ( ) [inline, inherited]
double SomethingToEggConverter::get_end_frame ( ) const [inline, inherited]

Returns the value set by a previous call to set_end_frame().

It is an error to call this if has_end_frame() returns false.

Definition at line 215 of file somethingToEggConverter.I.

References SomethingToEggConverter::has_end_frame().

Referenced by MayaToEggConverter::convert_maya().

string SoftToEggConverter::get_extension ( ) const [virtual]

Returns the common extension of the file type this converter supports.

Implements SomethingToEggConverter.

Definition at line 483 of file softToEggConverter.cxx.

double SomethingToEggConverter::get_frame_inc ( ) const [inline, inherited]

Returns the value set by a previous call to set_frame_inc().

It is an error to call this if has_frame_inc() returns false.

Definition at line 270 of file somethingToEggConverter.I.

References SomethingToEggConverter::has_frame_inc().

Referenced by MayaToEggConverter::convert_maya().

double SomethingToEggConverter::get_input_frame_rate ( ) const [inline, inherited]

Returns the value set by a previous call to set_input_frame_rate().

It is an error to call this if has_input_frame_rate() returns false.

Definition at line 373 of file somethingToEggConverter.I.

References SomethingToEggConverter::has_input_frame_rate().

Referenced by MayaToEggConverter::convert_maya().

DistanceUnit SomethingToEggConverter::get_input_units ( ) [virtual, inherited]

This may be called after convert_file() has been called and returned true, indicating a successful conversion.

It will return the distance units represented by the converted egg file, if known, or DU_invalid if not known.

Reimplemented in FltToEggConverter, and MayaToEggConverter.

Definition at line 114 of file somethingToEggConverter.cxx.

bool SomethingToEggConverter::get_merge_externals ( ) const [inline, inherited]

Returns the current state of the merge_externals flag.

See set_merge_externals().

Definition at line 474 of file somethingToEggConverter.I.

string SoftToEggConverter::get_name ( ) const [virtual]

Returns the English name of the file type this converter supports.

Implements SomethingToEggConverter.

Definition at line 472 of file softToEggConverter.cxx.

double SomethingToEggConverter::get_neutral_frame ( ) const [inline, inherited]

Returns the value set by a previous call to set_neutral_frame().

It is an error to call this if has_neutral_frame() returns false.

Definition at line 319 of file somethingToEggConverter.I.

References SomethingToEggConverter::has_neutral_frame().

double SomethingToEggConverter::get_output_frame_rate ( ) const [inline, inherited]

Returns the value set by a previous call to set_output_frame_rate().

It is an error to call this if has_output_frame_rate() returns false.

Definition at line 424 of file somethingToEggConverter.I.

References SomethingToEggConverter::has_output_frame_rate().

Referenced by MayaToEggConverter::convert_maya().

PathReplace * SomethingToEggConverter::get_path_replace ( ) [inline, inherited]

Returns a pointer to the PathReplace object associated with this converter.

If the converter is non-const, this returns a non-const pointer, which can be adjusted.

Definition at line 61 of file somethingToEggConverter.I.

const PathReplace * SomethingToEggConverter::get_path_replace ( ) const [inline, inherited]

Returns a pointer to the PathReplace object associated with this converter.

If the converter is non-const, this returns a non-const pointer, which can be adjusted.

Definition at line 74 of file somethingToEggConverter.I.

double SomethingToEggConverter::get_start_frame ( ) const [inline, inherited]

Returns the value set by a previous call to set_start_frame().

It is an error to call this if has_start_frame() returns false.

Definition at line 162 of file somethingToEggConverter.I.

References SomethingToEggConverter::has_start_frame().

Referenced by MayaToEggConverter::convert_maya().

char * SoftToEggConverter::GetTextureName ( SAA_Scene *  scene,
SAA_Elem *  texture 
)

Given a texture element, return texture name with given tex_path.

Definition at line 505 of file softToEggConverter.cxx.

Referenced by SoftNodeDesc::load_nurbs_model(), and SoftNodeDesc::load_poly_model().

bool SomethingToEggConverter::had_error ( ) const [inline, inherited]

Returns true if an error was detected during the conversion process (unless _allow_errors is true), false otherwise.

Definition at line 36 of file somethingToEggConverter.I.

Referenced by XFileToEggConverter::convert_file(), VRMLToEggConverter::convert_file(), DXFToEggConverter::convert_file(), FltToEggConverter::convert_flt(), LwoToEggConverter::convert_lwo(), and MayaToEggConverter::convert_maya().

bool SomethingToEggConverter::handle_external_reference ( EggGroupNode egg_parent,
const Filename ref_filename 
) [inherited]

Handles an external reference in the source file.

If the merge_externals flag is true (see set_merge_externals()), this causes the named file to be read in and converted, and the converted egg geometry is parented to egg_parent. Otherwise, only a reference to a similarly named egg file is parented to egg_parent.

The parameters orig_filename and searchpath are as those passed to convert_model_path().

Returns true on success, false on failure.

Definition at line 135 of file somethingToEggConverter.cxx.

References EggGroupNode::add_child(), SomethingToEggConverter::get_egg_data(), EggData::set_coordinate_system(), SomethingToEggConverter::set_egg_data(), and EggGroupNode::steal_children().

bool SoftToEggConverter::HandleGetopts ( int &  idx,
int  argc,
char **  argv 
)

increment idx based on what kind of option parsed Supported options are as follows: r:d:s:m:t:P:b:e:f:T:S:M:A:N:v:o:FhknpaxiucCD

Definition at line 248 of file softToEggConverter.cxx.

References Help().

Referenced by DoGetopts().

bool SomethingToEggConverter::has_end_frame ( ) const [inline, inherited]

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.

Definition at line 203 of file somethingToEggConverter.I.

Referenced by MayaToEggConverter::convert_maya(), and SomethingToEggConverter::get_end_frame().

bool SomethingToEggConverter::has_frame_inc ( ) const [inline, inherited]

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.

Definition at line 258 of file somethingToEggConverter.I.

Referenced by MayaToEggConverter::convert_maya(), and SomethingToEggConverter::get_frame_inc().

bool SomethingToEggConverter::has_input_frame_rate ( ) const [inline, inherited]

Returns true if the frame rate has been explicitly specified via set_input_frame_rate(), or false otherwise.

Definition at line 361 of file somethingToEggConverter.I.

Referenced by MayaToEggConverter::convert_maya(), and SomethingToEggConverter::get_input_frame_rate().

bool SomethingToEggConverter::has_neutral_frame ( ) const [inline, inherited]

Returns true if the neutral frame has been explicitly specified via set_neutral_frame(), or false otherwise.

Definition at line 307 of file somethingToEggConverter.I.

Referenced by SomethingToEggConverter::get_neutral_frame().

bool SomethingToEggConverter::has_output_frame_rate ( ) const [inline, inherited]

Returns true if the frame rate has been explicitly specified via set_output_frame_rate(), or false otherwise.

Definition at line 412 of file somethingToEggConverter.I.

Referenced by MayaToEggConverter::convert_maya(), and SomethingToEggConverter::get_output_frame_rate().

bool SomethingToEggConverter::has_start_frame ( ) const [inline, inherited]

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.

Definition at line 150 of file somethingToEggConverter.I.

Referenced by MayaToEggConverter::convert_maya(), and SomethingToEggConverter::get_start_frame().

void SoftToEggConverter::Help ( )

Displays the "what is this program" message, along with the usage message.

Should be overridden in base classes to describe the current program.

Definition at line 138 of file softToEggConverter.cxx.

References Usage().

Referenced by HandleGetopts().

SomethingToEggConverter * SoftToEggConverter::make_copy ( ) [virtual]

Allocates and returns a new copy of the converter.

Implements SomethingToEggConverter.

Definition at line 461 of file softToEggConverter.cxx.

bool SoftToEggConverter::open_api ( )

Attempts to open the Soft API if it was not already open, and returns true if successful, or false if there is an error.

Definition at line 654 of file softToEggConverter.cxx.

References Usage().

Referenced by convert_file().

void SomethingToEggConverter::set_animation_convert ( AnimationConvert  animation_convert) [inline, inherited]

Specifies how source animation will be converted into egg structures.

The default is AC_none, which means animation tables will be ignored. This is only meaningful for converters that understand animation.

Definition at line 87 of file somethingToEggConverter.I.

Referenced by SomethingToEgg::apply_parameters().

void SomethingToEggConverter::set_character_name ( const string &  character_name) [inline, inherited]

Specifies the name of the character generated.

This name should match between all the model and channel egg files for a particular character and its associated animations.

Definition at line 111 of file somethingToEggConverter.I.

Referenced by SomethingToEgg::apply_parameters().

void SomethingToEggConverter::set_egg_data ( EggData egg_data) [inherited]

Sets the egg data that will be filled in when convert_file() is called.

This must be called before convert_file().

Definition at line 76 of file somethingToEggConverter.cxx.

Referenced by SomethingToEggConverter::clear_egg_data(), convert_soft(), and SomethingToEggConverter::handle_external_reference().

void SomethingToEggConverter::set_end_frame ( double  end_frame) [inline, inherited]

Specifies the ending frame of the animation to convert, in the units specified by set_input_frame_rate().

If this is unspecified, the ending frame is taken from the source, for instance from the last frame of the animation slider.

Definition at line 189 of file somethingToEggConverter.I.

Referenced by SomethingToEgg::apply_parameters().

void SomethingToEggConverter::set_frame_inc ( double  frame_inc) [inline, inherited]

Specifies the increment between frames to extract.

This is the amount to increment the time slider (in units of internal_frame_rate) between extracting each frame. If this is not specified, the default is taken from the animation package, or 1.0 if the animation package does not specified a frame increment.

Definition at line 244 of file somethingToEggConverter.I.

Referenced by SomethingToEgg::apply_parameters().

void SomethingToEggConverter::set_input_frame_rate ( double  input_frame_rate) [inline, inherited]

Specifies the number of frames per second that is represented by the "frame" unit in the animation package.

If this is omitted, it is taken from whatever the file header indicates. Some animation packages do not encode a frame rate, in which case the default if this is omitted is the same as the output frame rate.

Definition at line 348 of file somethingToEggConverter.I.

Referenced by SomethingToEgg::apply_parameters().

void SomethingToEggConverter::set_merge_externals ( bool  merge_externals) [inline, inherited]

Sets the merge_externals flag.

When this is true, external references within the source file are read in and merged directly; otherwise, only a reference to a similarly-named egg file is inserted.

Definition at line 463 of file somethingToEggConverter.I.

void SomethingToEggConverter::set_neutral_frame ( double  neutral_frame) [inline, inherited]

Specifies the frame of animation to represent the neutral pose of the model.

Definition at line 294 of file somethingToEggConverter.I.

Referenced by SomethingToEgg::apply_parameters().

void SomethingToEggConverter::set_output_frame_rate ( double  output_frame_rate) [inline, inherited]

Specifies the number of frames per second that the resulting animation should be played at.

If this is omitted, it is taken to be the same as the input frame rate.

Definition at line 399 of file somethingToEggConverter.I.

Referenced by SomethingToEgg::apply_parameters().

void SomethingToEggConverter::set_path_replace ( PathReplace path_replace) [inline, inherited]

Replaces the PathReplace object (which specifies how to mangle paths from the source to the destination egg file) with a new one.

Definition at line 48 of file somethingToEggConverter.I.

Referenced by SomethingToEgg::apply_parameters().

void SomethingToEggConverter::set_start_frame ( double  start_frame) [inline, inherited]

Specifies the starting frame of the animation to convert, in the units specified by set_input_frame_rate().

If this is unspecified, the starting frame is taken from the source, for instance from the first frame of the animation slider.

Definition at line 136 of file somethingToEggConverter.I.

Referenced by SomethingToEgg::apply_parameters().

void SoftToEggConverter::ShowOpts ( )

Displays the valid options.

Should be extended in base classes to show additional options relevant to the current program.

Definition at line 172 of file softToEggConverter.cxx.

Referenced by Usage().

SoftToEggConverter::TransformType SoftToEggConverter::string_transform_type ( const string &  arg) [static]

Returns the TransformType value corresponding to the indicated string, or TT_invalid.

Definition at line 2200 of file softToEggConverter.cxx.

bool SomethingToEggConverter::supports_compressed ( ) const [virtual, inherited]

Returns true if this file type can transparently load compressed files (with a .pz extension), false otherwise.

Reimplemented in DXFToEggConverter, FltToEggConverter, LwoToEggConverter, VRMLToEggConverter, and XFileToEggConverter.

Definition at line 100 of file somethingToEggConverter.cxx.

Referenced by LoaderFileTypePandatool::supports_compressed().

void SoftToEggConverter::Usage ( )

Displays the usage message.

Definition at line 153 of file softToEggConverter.cxx.

References ShowOpts().

Referenced by DoGetopts(), Help(), and open_api().


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations