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";
This is the primary interface into all the egg data, and the root of the egg file structure.
set_coordinate_system
Changes the coordinate system of the EggData.
Defines a reference to another egg file which should be inserted at this point.
A base class for nodes in the hierarchy that are not leaf nodes.
EggNode * add_child(EggNode *node)
Adds the indicated child to the group and returns it.
void steal_children(EggGroupNode &other)
Moves all the children from the other node to this one.
The name of a file, such as a texture file or an Egg file.
void set_extension(const std::string &s)
Replaces the file extension.
Specifies parameters that may be passed to the loader.
A basic node of the scene graph or data graph.
This encapsulates the user's command-line request to replace existing, incorrect pathnames to models ...
This is a base class for a family of converter classes that manage a conversion from some file type t...
virtual DistanceUnit get_input_units()
This may be called after convert_file() has been called and returned true, indicating a successful co...
virtual bool supports_compressed() const
Returns true if this file type can transparently load compressed files (with a .pz extension),...
EggData * get_egg_data()
Returns the EggData structure.
bool handle_external_reference(EggGroupNode *egg_parent, const Filename &ref_filename)
Handles an external reference in the source file.
virtual std::string get_additional_extensions() const
Returns a space-separated list of extension, in addition to the one returned by get_extension(),...
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...
void set_egg_data(EggData *egg_data)
Sets the egg data that will be filled in when convert_file() is called.
void clear_egg_data()
Sets the EggData to NULL and makes the converter invalid.
DistanceUnit
This enumerated type lists all the kinds of units we're likely to come across in model conversion pro...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PT(PandaNode) SomethingToEggConverter
Reads the input file and directly produces a ready-to-render model file as a PandaNode.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.