15 #ifndef DAETOEGGCONVERTER_H 16 #define DAETOEGGCONVERTER_H 18 #include "pandatoolbase.h" 19 #include "somethingToEggConverter.h" 21 #include "eggMaterial.h" 22 #include "eggTexture.h" 24 #include "eggNurbsCurve.h" 26 #include "pre_fcollada_include.h" 28 #include "FCDocument/FCDocument.h" 29 #include "FCDocument/FCDTransform.h" 30 #include "FCDocument/FCDEntityInstance.h" 31 #include "FCDocument/FCDControllerInstance.h" 32 #include "FCDocument/FCDGeometryMesh.h" 33 #include "FCDocument/FCDGeometrySpline.h" 34 #include "FCDocument/FCDMaterial.h" 35 #include "FMath/FMMatrix44.h" 37 #include "daeMaterials.h" 38 #include "daeCharacter.h" 60 bool _invert_transparency;
66 FCDocument* _document;
67 FUErrorSimpleHandler* _error_handler;
71 Characters _characters;
74 void process_node(
EggGroupNode *parent,
const FCDSceneNode* node,
bool forced =
false);
75 void process_instance(
EggGroup *parent,
const FCDEntityInstance* instance);
76 void process_mesh(
EggGroup *parent,
const FCDGeometryMesh* mesh,
78 void process_spline(
EggGroup *parent,
const string group_name, FCDGeometrySpline* geometry_spline);
79 void process_spline(
EggGroup *parent,
const FCDSpline* spline);
80 void process_controller(
EggGroup *parent,
const FCDControllerInstance* instance);
81 void process_extra(
EggGroup *group,
const FCDExtra* extra);
83 static LMatrix4d convert_matrix(
const FMMatrix44& matrix);
84 void apply_transform(
EggGroup *to,
const FCDTransform* from);
virtual string get_name() const
Returns the English name of the file type this converter supports.
This is a 4-by-4 transform matrix.
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...
This class supervises the construction of an EggData structure from a DAE file.
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.
virtual DistanceUnit get_input_units()
This may be called after convert_file() has been called and returned true, indicating a successful co...
virtual string get_extension() const
Returns the common extension of the file type this converter supports.
This is a base class for a family of converter classes that manage a conversion from some file type t...