15 #include "somethingToEggConverter.h" 18 #include "eggExternalReference.h" 25 SomethingToEggConverter::
26 SomethingToEggConverter() {
27 _allow_errors =
false;
29 _path_replace->_path_store = PS_absolute;
30 _animation_convert = AC_none;
35 _input_frame_rate = 0.0;
36 _output_frame_rate = 0.0;
38 _merge_externals =
false;
48 SomethingToEggConverter::
50 _allow_errors(copy._allow_errors),
51 _path_replace(copy._path_replace),
52 _merge_externals(copy._merge_externals)
63 SomethingToEggConverter::
64 ~SomethingToEggConverter() {
167 if (_merge_externals) {
173 if (!ext->convert_file(ref_filename)) {
175 nout <<
"Unable to read external reference: " << ref_filename <<
"\n";
void set_extension(const string &s)
Replaces the file extension.
A basic node of the scene graph or data graph.
virtual bool supports_convert_to_node(const LoaderOptions &options) const
Returns true if this converter can directly convert the model type to internal Panda memory structure...
virtual string get_additional_extensions() const
Returns a space-separated list of extension, in addition to the one returned by get_extension(), that are recognized by this converter.
Specifies parameters that may be passed to the loader.
A base class for nodes in the hierarchy that are not leaf nodes.
bool handle_external_reference(EggGroupNode *egg_parent, const Filename &ref_filename)
Handles an external reference in the source file.
EggData * get_egg_data()
Returns the EggData structure.
This is the primary interface into all the egg data, and the root of the egg file structure...
void set_coordinate_system(CoordinateSystem coordsys)
Changes the coordinate system of the EggData.
void clear_egg_data()
Sets the EggData to NULL and makes the converter invalid.
The name of a file, such as a texture file or an Egg file.
void steal_children(EggGroupNode &other)
Moves all the children from the other node to this one.
void set_egg_data(EggData *egg_data)
Sets the egg data that will be filled in when convert_file() is called.
EggNode * add_child(EggNode *node)
Adds the indicated child to the group and returns it.
This encapsulates the user's command-line request to replace existing, incorrect pathnames to models ...
Defines a reference to another egg file which should be inserted at this point.
virtual DistanceUnit get_input_units()
This may be called after convert_file() has been called and returned true, indicating a successful co...
This is a base class for a family of converter classes that manage a conversion from some file type t...
virtual bool supports_compressed() const
Returns true if this file type can transparently load compressed files (with a .pz extension)...