#include <dl_writer.h>
Inheritance diagram for DL_Writer:
Public Member Functions | |
DL_Writer (DL_Codes::version version) | |
version DXF version. | |
void | section (const char *name) const |
Generic section for section 'name'. | |
void | sectionHeader () const |
Section HEADER. | |
void | sectionTables () const |
Section TABLES. | |
void | sectionBlocks () const |
Section BLOCKS. | |
void | sectionEntities () const |
Section ENTITIES. | |
void | sectionClasses () const |
Section CLASSES. | |
void | sectionObjects () const |
Section OBJECTS. | |
void | sectionEnd () const |
End of a section. | |
void | table (const char *name, int num, int handle) const |
Generic table for table 'name' with 'num' entries:. | |
void | tableLayers (int num) const |
Table for layers. | |
void | tableLineTypes (int num) const |
Table for line types. | |
void | tableAppid (int num) const |
Table for application id. | |
void | tableEnd () const |
End of a table. | |
void | dxfEOF () const |
End of the DXF file. | |
void | comment (const char *text) const |
Comment. | |
void | entity (const char *entTypeName) const |
Entity. | |
void | entityAttributes (const DL_Attributes &attrib) const |
Attributes of an entity. | |
void | subClass (const char *sub) const |
Subclass. | |
void | tableLayerEntry (unsigned long int h=0) const |
Layer (must be in the TABLES section LAYER). | |
void | tableLineTypeEntry (unsigned long int h=0) const |
Line type (must be in the TABLES section LTYPE). | |
void | tableAppidEntry (unsigned long int h=0) const |
Appid (must be in the TABLES section APPID). | |
void | sectionBlockEntry (unsigned long int h=0) const |
Block (must be in the section BLOCKS). | |
void | sectionBlockEntryEnd (unsigned long int h=0) const |
End of Block (must be in the section BLOCKS). | |
void | color (int col=256) const |
void | lineType (const char *lt) const |
void | lineTypeScale (double scale) const |
void | lineWeight (int lw) const |
void | coord (int gc, double x, double y, double z=0) const |
void | coordTriplet (int gc, const double *value) const |
void | resetHandle () const |
unsigned long | handle (int gc=5) const |
Writes a unique handle and returns it. | |
unsigned long | getNextHandle () const |
unsigned long | incHandle () const |
Increases handle, so that the handle returned remains available. | |
void | setModelSpaceHandle (unsigned long h) |
Sets the handle of the model space. | |
unsigned long | getModelSpaceHandle () |
void | setPaperSpaceHandle (unsigned long h) |
Sets the handle of the paper space. | |
unsigned long | getPaperSpaceHandle () |
void | setPaperSpace0Handle (unsigned long h) |
Sets the handle of the paper space 0. | |
unsigned long | getPaperSpace0Handle () |
virtual void | dxfReal (int gc, double value) const =0 |
Must be overwritten by the implementing class to write a real value to the file. | |
virtual void | dxfInt (int gc, int value) const =0 |
Must be overwritten by the implementing class to write an int value to the file. | |
virtual void | dxfHex (int gc, int value) const =0 |
Must be overwritten by the implementing class to write an int value (hex) to the file. | |
virtual void | dxfString (int gc, const char *value) const =0 |
Must be overwritten by the implementing class to write a string to the file. | |
virtual void | dxfString (int gc, const string &value) const =0 |
Must be overwritten by the implementing class to write a string to the file. | |
Protected Attributes | |
unsigned long | m_handle |
unsigned long | modelSpaceHandle |
unsigned long | paperSpaceHandle |
unsigned long | paperSpace0Handle |
DL_Codes::version | version |
DXF version to be created. |
Implementation is defined in derived classes that write to binary or ASCII files.
Implements functions that write higher level constructs in terms of the low level ones.
|
version DXF version. Defaults to VER_2002. |
|
Comment.
999 text |
|
End of the DXF file.
0 EOF |
|
Must be overwritten by the implementing class to write an int value (hex) to the file.
Implemented in DL_WriterA. |
|
Must be overwritten by the implementing class to write an int value to the file.
Implemented in DL_WriterA. |
|
Must be overwritten by the implementing class to write a real value to the file.
Implemented in DL_WriterA. |
|
Must be overwritten by the implementing class to write a string to the file.
Implemented in DL_WriterA. |
|
Must be overwritten by the implementing class to write a string to the file.
Implemented in DL_WriterA. |
|
Entity.
0 entTypeName
|
|
Attributes of an entity.
8 layer 62 color 39 width 6 linetype |
|
|
|
Generic section for section 'name'.
0 SECTION 2 name |
|
Block (must be in the section BLOCKS).
0 BLOCK |
|
End of Block (must be in the section BLOCKS).
0 ENDBLK |
|
Section BLOCKS.
0 SECTION 2 BLOCKS |
|
Section CLASSES.
0 SECTION 2 CLASSES |
|
End of a section.
0 ENDSEC |
|
Section ENTITIES.
0 SECTION 2 ENTITIES |
|
Section HEADER.
0 SECTION 2 HEADER |
|
Section OBJECTS.
0 SECTION 2 OBJECTS |
|
Section TABLES.
0 SECTION 2 TABLES |
|
Sets the handle of the model space. Entities refer to this handle. |
|
Sets the handle of the paper space 0. Some special blocks refer to this handle. |
|
Sets the handle of the paper space. Some special blocks refer to this handle. |
|
Generic table for table 'name' with 'num' entries:.
0 TABLE 2 name 70 num |
|
Table for application id.
0 TABLE 2 APPID 70 num |
|
Appid (must be in the TABLES section APPID).
0 APPID |
|
End of a table.
0 ENDTAB |
|
Layer (must be in the TABLES section LAYER).
0 LAYER |
|
Table for layers.
0 TABLE 2 LAYER 70 num |
|
Line type (must be in the TABLES section LTYPE).
0 LTYPE |
|
Table for line types.
0 TABLE 2 LTYPE 70 num |