14 #ifndef DAETOEGGCONVERTER_H 15 #define DAETOEGGCONVERTER_H 27 #include <FCDocument/FCDocument.h> 28 #include <FCDocument/FCDTransform.h> 29 #include <FCDocument/FCDEntityInstance.h> 30 #include <FCDocument/FCDControllerInstance.h> 31 #include <FCDocument/FCDGeometryMesh.h> 32 #include <FCDocument/FCDGeometrySpline.h> 33 #include <FCDocument/FCDMaterial.h> 34 #include <FMath/FMMatrix44.h> 52 virtual std::string
get_name()
const;
58 bool _invert_transparency;
61 std::string _unit_name;
64 FCDocument* _document;
65 FUErrorSimpleHandler* _error_handler;
72 void process_node(
EggGroupNode *parent,
const FCDSceneNode* node,
bool forced =
false);
73 void process_instance(
EggGroup *parent,
const FCDEntityInstance* instance);
74 void process_mesh(
EggGroup *parent,
const FCDGeometryMesh* mesh,
76 void process_spline(
EggGroup *parent,
const std::string group_name, FCDGeometrySpline* geometry_spline);
77 void process_spline(
EggGroup *parent,
const FCDSpline* spline);
78 void process_controller(
EggGroup *parent,
const FCDControllerInstance* instance);
79 void process_extra(
EggGroup *group,
const FCDExtra* extra);
81 static LMatrix4d convert_matrix(
const FMMatrix44& matrix);
82 void apply_transform(
EggGroup *to,
const FCDTransform* from);
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual std::string get_name() const
Returns the English name of the file type this converter supports.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual SomethingToEggConverter * make_copy()
Allocates and returns a new copy of the converter.
A base class for nodes in the hierarchy that are not leaf nodes.
virtual bool convert_file(const Filename &filename)
Handles the reading of the input file and converting it to egg.
Class representing an animated character.
This class is seperated from the converter file because otherwise it would get too big and needlessly...
DistanceUnit
This enumerated type lists all the kinds of units we're likely to come across in model conversion pro...
This is our own Panda specialization on the default STL vector.
This class supervises the construction of an EggData structure from a DAE file.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
The main glue of the egg hierarchy, this corresponds to the <Group>, <Instance>, and <Joint> type nod...
The name of a file, such as a texture file or an Egg file.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual DistanceUnit get_input_units()
This may be called after convert_file() has been called and returned true, indicating a successful co...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual std::string get_extension() const
Returns the common extension of the file type this converter supports.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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.