15 #include "dxfToEggConverter.h" 16 #include "dxfToEggLayer.h" 45 ~DXFToEggConverter() {
104 if (_egg_data->get_coordinate_system() == CS_default) {
105 _egg_data->set_coordinate_system(CS_zup_right);
118 new_layer(
const string &name) {
128 void DXFToEggConverter::
130 if (_entity == EN_polyline) {
134 if ((_flags & PF_3d) == 0) {
139 if (_flags & PF_closed) {
141 nassertv(_layer!=NULL);
145 nassertv(_layer!=NULL);
149 }
else if (_entity == EN_3dface) {
160 nassertv(_layer!=NULL);
172 void DXFToEggConverter::
This represents a "layer" as read from the DXF file.
virtual string get_name() const
Returns the English name of the file type this converter supports.
bool had_error() const
Returns true if an error was detected during the conversion process (unless _allow_errors is true)...
EggData * get_egg_data()
Returns the EggData structure.
virtual bool supports_compressed() const
Returns true if this file type can transparently load compressed files (with a .pz extension)...
The specialization of DXFLayer used by DXFToEggConverter.
void clear_error()
Resets the error flag to the no-error state.
The name of a file, such as a texture file or an Egg file.
virtual string get_extension() const
Returns the common extension of the file type this converter supports.
virtual bool convert_file(const Filename &filename)
Handles the reading of the input file and converting it to egg.
virtual SomethingToEggConverter * make_copy()
Allocates and returns a new copy of the converter.
Stored within DXFFile, this is the basic Vertex data of a DXF file.
void ocs_2_wcs()
Assuming the current entity is a planar-based entity, for instance, a 2-d polygon (as opposed to a 3-...
void process(Filename filename)
Opens the indicated filename and reads it as a DXF file.
This is a base class for a family of converter classes that manage a conversion from some file type t...
This class supervises the construction of an EggData structure from a DXF file.