Go to the documentation of this file.
14 #ifndef XFILETOEGGCONVERTER_H
15 #define XFILETOEGGCONVERTER_H
48 virtual std::string
get_name()
const;
64 std::string _char_name;
83 const std::string &joint_name,
FrameData &table);
84 bool convert_animation_key(
XFileDataNode *obj,
const std::string &joint_name,
86 bool set_animation_frame(
const std::string &joint_name,
FrameData &table,
87 int frame,
int key_type,
91 bool create_polygons();
92 bool create_hierarchy();
98 int _ticks_per_second;
99 int _total_tick_deltas;
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.
This is a collection of materials by MRef name.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A base class for nodes in the hierarchy that are not leaf nodes.
This represents the complete contents of an X file (file.x) in memory.
This is a collection of polygons; i.e.
virtual bool convert_file(const Filename &filename)
Handles the reading of the input file and converting it to egg.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void strip_nodes(TypeHandle t)
Removes all groups of the given type.
This is a base class for a family of converter classes that manage a conversion from some file type t...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void close()
Finalizes and closes the file previously opened via convert_file().
EggTexture * create_unique_texture(const EggTexture ©)
Returns an EggTexture pointer whose properties match that of the the given EggTexture,...
EggGroup * find_joint(const std::string &joint_name)
This is called by set_animation_frame, for the purposes of building the frame data for the animation–...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Defines a texture map that may be applied to geometry.
virtual std::string get_name() const
Returns the English name of the file type this converter supports.
This is an abstract base class for an XFileNode which is also an XFileDataObject.
This represents a tree of EggTables, corresponding to Animation entries in the X file.
EggMaterial * create_unique_material(const EggMaterial ©)
Returns an EggMaterial pointer whose properties match that of the the given EggMaterial,...
This represents an X file "material", which consists of a color, lighting, and/or texture specificati...
The main glue of the egg hierarchy, this corresponds to the <Group>, <Instance>, and <Joint> type nod...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is a collection of textures by TRef name.
virtual bool supports_compressed() const
Returns true if this file type can transparently load compressed files (with a .pz extension),...
virtual std::string get_extension() const
Returns the common extension of the file type this converter supports.
The name of a file, such as a texture file or an Egg file.
EggGroup * get_dart_node() const
Returns the root of the joint hierarchy, if _make_char is true, or NULL otherwise.