Panda3D
|
This class supervises the construction of an EggData structure from the data represented by the FltHeader. More...
#include "fltToEggConverter.h"
Public Member Functions | |
FltToEggConverter (const FltToEggConverter ©) | |
virtual bool | convert_file (const Filename &filename) |
Handles the reading of the input file and converting it to egg. | |
bool | convert_flt (const FltHeader *flt_header) |
Fills up the egg_data structure according to the indicated lwo structure. | |
virtual string | get_extension () const |
Returns the common extension of the file type this converter supports. | |
virtual DistanceUnit | get_input_units () |
This may be called after convert_file() has been called and returned true, indicating a successful conversion. | |
virtual string | get_name () const |
Returns the English name of the file type this converter supports. | |
virtual SomethingToEggConverter * | make_copy () |
Allocates and returns a new copy of the converter. | |
virtual bool | supports_compressed () const |
Returns true if this file type can transparently load compressed files (with a .pz extension), false otherwise. | |
Public Attributes | |
bool | _compose_transforms |
This class supervises the construction of an EggData structure from the data represented by the FltHeader.
Reading and writing the egg and flt structures is left to the user.
Definition at line 52 of file fltToEggConverter.h.
bool FltToEggConverter::convert_file | ( | const Filename & | filename | ) | [virtual] |
Handles the reading of the input file and converting it to egg.
Returns true if successful, false otherwise.
This is designed to be as generic as possible, generally in support of run-time loading. Command-line converters may choose to use convert_flt() instead, as it provides more control.
Implements SomethingToEggConverter.
Definition at line 131 of file fltToEggConverter.cxx.
References convert_flt().
bool FltToEggConverter::convert_flt | ( | const FltHeader * | flt_header | ) |
Fills up the egg_data structure according to the indicated lwo structure.
Definition at line 169 of file fltToEggConverter.cxx.
References SomethingToEggConverter::clear_error(), and SomethingToEggConverter::had_error().
Referenced by convert_file().
string FltToEggConverter::get_extension | ( | ) | const [virtual] |
Returns the common extension of the file type this converter supports.
Implements SomethingToEggConverter.
Definition at line 102 of file fltToEggConverter.cxx.
DistanceUnit FltToEggConverter::get_input_units | ( | ) | [virtual] |
This may be called after convert_file() has been called and returned true, indicating a successful conversion.
It will return the distance units represented by the converted egg file, if known, or DU_invalid if not known.
Reimplemented from SomethingToEggConverter.
Definition at line 158 of file fltToEggConverter.cxx.
string FltToEggConverter::get_name | ( | ) | const [virtual] |
Returns the English name of the file type this converter supports.
Implements SomethingToEggConverter.
Definition at line 91 of file fltToEggConverter.cxx.
SomethingToEggConverter * FltToEggConverter::make_copy | ( | ) | [virtual] |
Allocates and returns a new copy of the converter.
Implements SomethingToEggConverter.
Definition at line 79 of file fltToEggConverter.cxx.
bool FltToEggConverter::supports_compressed | ( | ) | const [virtual] |
Returns true if this file type can transparently load compressed files (with a .pz extension), false otherwise.
Reimplemented from SomethingToEggConverter.
Definition at line 114 of file fltToEggConverter.cxx.