![]() |
QCAD
Open Source 2D CAD
|
Defines interface for writing low level DXF constructs to a file. More...
#include <dl_writer.h>
Public Member Functions | |
void | color (int col=256) const |
void | comment (const char *text) const |
Comment. | |
void | coord (int gc, double x, double y, double z=0) const |
void | coordTriplet (int gc, const double *value) const |
DL_Writer (DL_Codes::version version) | |
virtual void | dxfBool (int gc, bool value) const |
Can be overwritten by the implementing class to write a bool value to the file. | |
void | dxfEOF () const |
End of the DXF 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 | dxfInt (int gc, int value) const =0 |
Must be overwritten by the implementing class to write an int value to the file. | |
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 | 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 std::string &value) const =0 |
Must be overwritten by the implementing class to write a string to the file. | |
void | entity (const char *entTypeName) const |
Entity. | |
void | entityAttributes (const DL_Attributes &attrib) const |
Attributes of an entity. | |
unsigned long | getNextHandle () const |
unsigned long | handle (int gc=5) const |
Writes a unique handle and returns it. | |
void | linetype (const char *lt) const |
void | linetypeScale (double scale) const |
void | lineWeight (int lw) const |
void | resetHandle () const |
void | section (const char *name) const |
Generic section for section 'name'. | |
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 | sectionBlocks () const |
Section BLOCKS. | |
void | sectionClasses () const |
Section CLASSES. | |
void | sectionEnd () const |
End of a section. | |
void | sectionEntities () const |
Section ENTITIES. | |
void | sectionHeader () const |
Section HEADER. | |
void | sectionObjects () const |
Section OBJECTS. | |
void | sectionTables () const |
Section TABLES. | |
void | subClass (const char *sub) const |
Subclass. | |
void | table (const char *name, int num, int h=0) const |
Generic table for table 'name' with 'num' entries: | |
void | tableAppid (int num) const |
Table for application id. | |
void | tableAppidEntry (unsigned long int h=0) const |
Appid (must be in the TABLES section APPID). | |
void | tableEnd () const |
End of a table. | |
void | tableLayerEntry (unsigned long int h=0) const |
Layer (must be in the TABLES section LAYER). | |
void | tableLayers (int num) const |
Table for layers. | |
void | tableLinetypeEntry (unsigned long int h=0) const |
Line type (must be in the TABLES section LTYPE). | |
void | tableLinetypes (int num) const |
Table for line types. | |
void | tableStyle (int num) const |
Table for text style. | |
virtual | ~DL_Writer () |
Protected Attributes | |
unsigned long | m_handle |
unsigned long | modelSpaceHandle |
unsigned long | paperSpace0Handle |
unsigned long | paperSpaceHandle |
DL_Codes::version | version |
DXF version to be created. | |
Defines interface for writing low level DXF constructs to a file.
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.
|
inline |
version | DXF version. Defaults to DL_VERSION_2002. |
|
inlinevirtual |
|
inline |
|
inline |
Comment.
999 text
|
inline |
|
inline |
|
inlinevirtual |
Can be overwritten by the implementing class to write a bool value to the file.
gc | Group code. |
value | The bool value. |
|
inline |
End of the DXF file.
0 EOF
|
pure virtual |
Must be overwritten by the implementing class to write an int value (hex) to the file.
gc | Group code. |
value | The int value. |
Implemented in DL_WriterA.
|
pure virtual |
Must be overwritten by the implementing class to write an int value to the file.
gc | Group code. |
value | The int value. |
Implemented in DL_WriterA.
|
pure virtual |
Must be overwritten by the implementing class to write a real value to the file.
gc | Group code. |
value | The real value. |
Implemented in DL_WriterA.
|
pure virtual |
Must be overwritten by the implementing class to write a string to the file.
gc | Group code. |
value | The string. |
Implemented in DL_WriterA.
|
pure virtual |
Must be overwritten by the implementing class to write a string to the file.
gc | Group code. |
value | The string. |
Implemented in DL_WriterA.
|
inline |
Entity.
0 entTypeName
|
inline |
Attributes of an entity.
8 layer 62 color 39 width 6 linetype
|
inline |
|
inline |
Writes a unique handle and returns it.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Generic section for section 'name'.
0 SECTION 2 name
|
inline |
Block (must be in the section BLOCKS).
0 BLOCK
|
inline |
End of Block (must be in the section BLOCKS).
0 ENDBLK
|
inline |
Section BLOCKS.
0 SECTION 2 BLOCKS
|
inline |
Section CLASSES.
0 SECTION 2 CLASSES
|
inline |
End of a section.
0 ENDSEC
|
inline |
Section ENTITIES.
0 SECTION 2 ENTITIES
|
inline |
Section HEADER.
0 SECTION 2 HEADER
|
inline |
Section OBJECTS.
0 SECTION 2 OBJECTS
|
inline |
Section TABLES.
0 SECTION 2 TABLES
|
inline |
Subclass.
|
inline |
Generic table for table 'name' with 'num' entries:
0 TABLE 2 name 70 num
|
inline |
Table for application id.
num | Number of registered applications in total. |
0 TABLE 2 APPID 70 num
|
inline |
Appid (must be in the TABLES section APPID).
0 APPID
|
inline |
End of a table.
0 ENDTAB
|
inline |
Layer (must be in the TABLES section LAYER).
0 LAYER
|
inline |
Table for layers.
num | Number of layers in total. |
0 TABLE 2 LAYER 70 num
|
inline |
Line type (must be in the TABLES section LTYPE).
0 LTYPE
|
inline |
Table for line types.
num | Number of line types in total. |
0 TABLE 2 LTYPE 70 num
|
inline |
Table for text style.
num | Number of text styles. |
0 TABLE 2 STYLE 70 num
|
mutableprotected |
|
mutableprotected |
|
mutableprotected |
|
mutableprotected |
|
protected |
DXF version to be created.