Panda3D
Public Member Functions | Protected Member Functions | Protected Attributes

EggCharacterFilter Class Reference

This is the base class for a family of programs that operate on a number of character models and their associated animation files together. More...

#include "eggCharacterFilter.h"

Inheritance diagram for EggCharacterFilter:
EggMultiFilter EggMultiBase EggBase ProgramBase EggOptchar EggRetargetAnim EggTopstrip

List of all members.

Public Member Functions

void add_fixrest_option ()

Protected Member Functions

virtual EggCharacterCollectionmake_collection ()
 Allocates and returns a new EggCharacterCollection structure.
virtual bool post_command_line ()
 This is called after the command line has been completely processed, and it gives the program a chance to do some last-minute processing and validation of the options and arguments.
virtual void write_eggs ()
 Writes out all of the egg files in the _eggs vector, to the output directory if one is specified, or over the input files if -inplace was specified.

Protected Attributes

EggCharacterCollection_collection
bool _force_initial_rest_frame

Detailed Description

This is the base class for a family of programs that operate on a number of character models and their associated animation files together.

It reads in a number of egg files, any combination of model files or character files which must all represent the same character skeleton, and maintains a single hierarchy of joints and sliders that may be operated on before writing the files back out.

Definition at line 36 of file eggCharacterFilter.h.


Member Function Documentation

EggCharacterCollection * EggCharacterFilter::make_collection ( ) [protected, virtual]

Allocates and returns a new EggCharacterCollection structure.

This is primarily intended as a hook so derived classes can customize the type of EggCharacterCollection object used to represent the character information.

Definition at line 123 of file eggCharacterFilter.cxx.

Referenced by post_command_line().

bool EggCharacterFilter::post_command_line ( ) [protected, virtual]

This is called after the command line has been completely processed, and it gives the program a chance to do some last-minute processing and validation of the options and arguments.

It should return true if everything is fine, false if there is an error.

Reimplemented from EggMultiFilter.

Definition at line 68 of file eggCharacterFilter.cxx.

References EggCharacterCollection::add_egg(), EggCharacterCollection::check_errors(), Filename::get_basename(), EggData::get_egg_filename(), make_collection(), and EggMultiFilter::post_command_line().

void EggCharacterFilter::write_eggs ( ) [protected, virtual]

Writes out all of the egg files in the _eggs vector, to the output directory if one is specified, or over the input files if -inplace was specified.

Reimplemented from EggMultiFilter.

Definition at line 101 of file eggCharacterFilter.cxx.

References EggCharacterCollection::get_character(), EggCharacterCollection::get_num_characters(), EggCharacterData::get_root_joint(), and EggJointData::optimize().


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