Panda3D
Public Member Functions | Protected Member Functions | Protected Attributes
DXFToEggConverter Class Reference

This class supervises the construction of an EggData structure from a DXF file. More...

#include "dxfToEggConverter.h"

Inheritance diagram for DXFToEggConverter:
SomethingToEggConverter DXFFile MemoryBase

List of all members.

Public Member Functions

 DXFToEggConverter (const DXFToEggConverter &copy)
virtual bool convert_file (const Filename &filename)
 Handles the reading of the input file and converting it to egg.
virtual string get_extension () const
 Returns the common extension of the file type this converter supports.
virtual string get_name () const
 Returns the English name of the file type this converter supports.
virtual SomethingToEggConvertermake_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.

Protected Member Functions

virtual void done_entity ()
 If the entity is a polygon, creates the corresponding egg polygon.
virtual void error ()
 A hook for user code, if desired.
virtual DXFLayernew_layer (const string &name)

Protected Attributes

bool _error

Detailed Description

This class supervises the construction of an EggData structure from a DXF file.

Definition at line 28 of file dxfToEggConverter.h.


Member Function Documentation

bool DXFToEggConverter::convert_file ( const Filename filename) [virtual]

Handles the reading of the input file and converting it to egg.

Returns true if successful, false otherwise.

Implements SomethingToEggConverter.

Definition at line 101 of file dxfToEggConverter.cxx.

References SomethingToEggConverter::clear_error(), SomethingToEggConverter::had_error(), and DXFFile::process().

void DXFToEggConverter::done_entity ( ) [protected, virtual]

If the entity is a polygon, creates the corresponding egg polygon.

Reimplemented from DXFFile.

Definition at line 129 of file dxfToEggConverter.cxx.

References DXFFile::ocs_2_wcs().

void DXFToEggConverter::error ( ) [protected, virtual]

A hook for user code, if desired.

This function is called when some unexpected error occurs while reading the DXF file.

Reimplemented from DXFFile.

Definition at line 173 of file dxfToEggConverter.cxx.

string DXFToEggConverter::get_extension ( ) const [virtual]

Returns the common extension of the file type this converter supports.

Implements SomethingToEggConverter.

Definition at line 77 of file dxfToEggConverter.cxx.

string DXFToEggConverter::get_name ( ) const [virtual]

Returns the English name of the file type this converter supports.

Implements SomethingToEggConverter.

Definition at line 66 of file dxfToEggConverter.cxx.

Allocates and returns a new copy of the converter.

Implements SomethingToEggConverter.

Definition at line 54 of file dxfToEggConverter.cxx.

bool DXFToEggConverter::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 89 of file dxfToEggConverter.cxx.


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations