Go to the documentation of this file.
14 #ifndef EGGTOSOMETHINGCONVERTER_H
15 #define EGGTOSOMETHINGCONVERTER_H
51 INLINE
void set_output_coordinate_system(CoordinateSystem output_coordinate_system)
const;
52 INLINE CoordinateSystem get_output_coordinate_system()
const;
54 virtual std::string get_name()
const=0;
55 virtual std::string get_extension()
const=0;
59 virtual bool write_file(
const Filename &filename)=0;
64 CoordinateSystem _output_coordinate_system;
void clear_error()
Resets the error flag to the no-error state.
This is a base class for a family of converter classes that manage a conversion from egg format to so...
A base class for nodes in the hierarchy that are not leaf nodes.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void set_egg_data(EggData *egg_data)
Sets the egg data that will be filled in when convert_file() is called.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
DistanceUnit get_output_units() const
Returns the value supplied to set_output_units().
This is the primary interface into all the egg data, and the root of the egg file structure.
void set_output_units(DistanceUnit output_units)
Specifies the units that the EggData has already been scaled to.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual bool supports_compressed() const
Returns true if this file type can transparently save compressed files (with a .pz extension),...
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.
EggData * get_egg_data()
Returns the EggData structure.
void clear_egg_data()
Sets the EggData to NULL and makes the converter invalid.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
bool had_error() const
Returns true if an error was detected during the conversion process, false otherwise.
The name of a file, such as a texture file or an Egg file.
virtual std::string get_additional_extensions() const
Returns a space-separated list of extension, in addition to the one returned by get_extension(),...