22 SomethingToEggConverter::
23 SomethingToEggConverter() {
24 _allow_errors =
false;
26 _path_replace->_path_store = PS_absolute;
27 _animation_convert = AC_none;
32 _input_frame_rate = 0.0;
33 _output_frame_rate = 0.0;
35 _merge_externals =
false;
43 SomethingToEggConverter::
45 _allow_errors(copy._allow_errors),
46 _path_replace(copy._path_replace),
47 _merge_externals(copy._merge_externals)
56 SomethingToEggConverter::
57 ~SomethingToEggConverter() {
137 if (_merge_externals) {
143 if (!ext->convert_file(ref_filename)) {
145 nout <<
"Unable to read external reference: " << ref_filename <<
"\n";
void set_extension(const std::string &s)
Replaces the file extension.
A basic node of the scene graph or data graph.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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...
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.
DistanceUnit
This enumerated type lists all the kinds of units we're likely to come across in model conversion pro...
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual std::string get_additional_extensions() const
Returns a space-separated list of extension, in addition to the one returned by get_extension(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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.
set_coordinate_system
Changes the coordinate system of the EggData.
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.
PT(PandaNode) SomethingToEggConverter
Reads the input file and directly produces a ready-to-render model file as a PandaNode.
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),...