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