15 #ifndef XFILETOEGGCONVERTER_H 16 #define XFILETOEGGCONVERTER_H 18 #include "pandatoolbase.h" 19 #include "xFileAnimationSet.h" 21 #include "somethingToEggConverter.h" 22 #include "eggTextureCollection.h" 23 #include "eggMaterialCollection.h" 27 #include "pointerTo.h" 85 const string &joint_name, FrameData &table);
86 bool convert_animation_key(
XFileDataNode *obj,
const string &joint_name,
88 bool set_animation_frame(
const string &joint_name, FrameData &table,
89 int frame,
int key_type,
93 bool create_polygons();
94 bool create_hierarchy();
100 int _ticks_per_second;
101 int _total_tick_deltas;
108 AnimationSets _animation_sets;
EggGroup * get_dart_node() const
Returns the root of the joint hierarchy, if _make_char is true, or NULL otherwise.
EggGroup * find_joint(const string &joint_name)
This is called by set_animation_frame, for the purposes of building the frame data for the animationâ€...
void close()
Finalizes and closes the file previously opened via convert_file().
This is a collection of polygons; i.e.
virtual bool supports_compressed() const
Returns true if this file type can transparently load compressed files (with a .pz extension)...
A base class for nodes in the hierarchy that are not leaf nodes.
This is a collection of materials by MRef name.
Defines a texture map that may be applied to geometry.
virtual string get_name() const
Returns the English name of the file type this converter supports.
This represents a tree of EggTables, corresponding to Animation entries in the X file.
This is a collection of textures by TRef name.
EggMaterial * create_unique_material(const EggMaterial ©)
Returns an EggMaterial pointer whose properties match that of the the given EggMaterial, except for the mref name.
The main glue of the egg hierarchy, this corresponds to the <Group>, <Instance>, and <Joint> type nod...
void strip_nodes(TypeHandle t)
Removes all groups of the given type.
virtual bool convert_file(const Filename &filename)
Handles the reading of the input file and converting it to egg.
The name of a file, such as a texture file or an Egg file.
virtual string get_extension() const
Returns the common extension of the file type this converter supports.
This represents an X file "material", which consists of a color, lighting, and/or texture specificati...
This is an abstract base class for an XFileNode which is also an XFileDataObject. ...
This represents the complete contents of an X file (file.x) in memory.
EggTexture * create_unique_texture(const EggTexture ©)
Returns an EggTexture pointer whose properties match that of the the given EggTexture, except for the tref name.
TypeHandle is the identifier used to differentiate C++ class types.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
This is a base class for a family of converter classes that manage a conversion from some file type t...
The abstract base class for a number of different types of data elements that may be stored in the X ...
virtual SomethingToEggConverter * make_copy()
Allocates and returns a new copy of the converter.