![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
#include <dl_writer.h>

Public Member Functions | |
| DL_Writer (DL_Codes::version version) | |
| virtual | ~DL_Writer () |
| void | section (const char *name) const |
| void | sectionHeader () const |
| void | sectionTables () const |
| void | sectionBlocks () const |
| void | sectionEntities () const |
| void | sectionClasses () const |
| void | sectionObjects () const |
| void | sectionEnd () const |
| void | table (const char *name, int num, int h=0) const |
| void | tableLayers (int num) const |
| void | tableLinetypes (int num) const |
| void | tableAppid (int num) const |
| void | tableStyle (int num) const |
| void | tableEnd () const |
| void | dxfEOF () const |
| void | comment (const char *text) const |
| void | entity (const char *entTypeName) const |
| void | entityAttributes (const DL_Attributes &attrib) const |
| void | subClass (const char *sub) const |
| void | tableLayerEntry (unsigned long int h=0) const |
| void | tableLinetypeEntry (unsigned long int h=0) const |
| void | tableAppidEntry (unsigned long int h=0) const |
| void | sectionBlockEntry (unsigned long int h=0) const |
| void | sectionBlockEntryEnd (unsigned long int h=0) const |
| 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 |
| unsigned long | getNextHandle () const |
| unsigned long | incHandle () const |
| void | setModelSpaceHandle (unsigned long h) |
| unsigned long | getModelSpaceHandle () |
| void | setPaperSpaceHandle (unsigned long h) |
| unsigned long | getPaperSpaceHandle () |
| void | setPaperSpace0Handle (unsigned long h) |
| unsigned long | getPaperSpace0Handle () |
| virtual void | dxfReal (int gc, double value) const =0 |
| virtual void | dxfInt (int gc, int value) const =0 |
| virtual void | dxfBool (int gc, bool value) const |
| virtual void | dxfHex (int gc, int value) const =0 |
| virtual void | dxfString (int gc, const char *value) const =0 |
| virtual void | dxfString (int gc, const std::string &value) const =0 |
Protected Attributes | |
| unsigned long | m_handle |
| unsigned long | modelSpaceHandle |
| unsigned long | paperSpaceHandle |
| unsigned long | paperSpace0Handle |
| DL_Codes::version | version |
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.
Definition at line 55 of file dl_writer.h.
|
inline |
| version | DXF version. Defaults to DL_VERSION_2002. |
Definition at line 60 of file dl_writer.h.
References version.
|
inlinevirtual |
Definition at line 67 of file dl_writer.h.
|
inline |
Definition at line 463 of file dl_writer.h.
|
inline |
|
inline |
Definition at line 468 of file dl_writer.h.
Referenced by DL_Dxf::write3dFace(), DL_Dxf::writeArc(), DL_Dxf::writeBlock(), DL_Dxf::writeCircle(), DL_Dxf::writeEllipse(), DL_Dxf::writeLine(), DL_Dxf::writePoint(), DL_Dxf::writePolyline(), DL_Dxf::writeRay(), DL_Dxf::writeSolid(), DL_Dxf::writeTrace(), DL_Dxf::writeVertex(), and DL_Dxf::writeXLine().
|
inline |
Definition at line 474 of file dl_writer.h.
|
inlinevirtual |
Can be overwritten by the implementing class to write a bool value to the file.
| gc | Group code. |
| value | The bool value. |
Definition at line 552 of file dl_writer.h.
Referenced by DL_Dxf::writeHatchEdge(), and DL_Dxf::writeXRecord().
|
inline |
End of the DXF file.
0 EOF
Definition at line 272 of file dl_writer.h.
Referenced by main(), DxfProfilesExporter::SaveHorizontalProfiles(), DxfFilter::saveToFile(), DxfProfilesExporter::SaveVerticalProfiles(), and testWriting().
|
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
Definition at line 294 of file dl_writer.h.
References DL_VERSION_2000, and version.
Referenced by DL_Dxf::write3dFace(), DL_Dxf::writeArc(), DL_Dxf::writeAttribute(), DL_Dxf::writeCircle(), DL_Dxf::writeDimAligned(), DL_Dxf::writeDimAngular(), DL_Dxf::writeDimAngular3P(), DL_Dxf::writeDimDiametric(), DL_Dxf::writeDimLinear(), DL_Dxf::writeDimOrdinate(), DL_Dxf::writeDimRadial(), DL_Dxf::writeEllipse(), DL_Dxf::writeHatch1(), DL_Dxf::writeImage(), DL_Dxf::writeInsert(), DL_Dxf::writeLeader(), DL_Dxf::writeLine(), DL_Dxf::writeMText(), DL_Dxf::writePoint(), DL_Dxf::writePolyline(), DL_Dxf::writePolylineEnd(), DL_Dxf::writeRay(), DL_Dxf::writeSolid(), DL_Dxf::writeSpline(), DL_Dxf::writeText(), DL_Dxf::writeTrace(), DL_Dxf::writeVertex(), and DL_Dxf::writeXLine().
|
inline |
Attributes of an entity.
8 layer 62 color 39 width 6 linetype
Definition at line 315 of file dl_writer.h.
References DL_VERSION_2000, DL_Attributes::getColor(), DL_Attributes::getColor24(), DL_Attributes::getLayer(), DL_Attributes::getLinetype(), DL_Attributes::getLinetypeScale(), DL_Attributes::getWidth(), and version.
Referenced by DL_Dxf::write3dFace(), DL_Dxf::writeArc(), DL_Dxf::writeAttribute(), DL_Dxf::writeCircle(), DL_Dxf::writeDimAligned(), DL_Dxf::writeDimAngular(), DL_Dxf::writeDimAngular3P(), DL_Dxf::writeDimDiametric(), DL_Dxf::writeDimLinear(), DL_Dxf::writeDimOrdinate(), DL_Dxf::writeDimRadial(), DL_Dxf::writeEllipse(), DL_Dxf::writeHatch1(), DL_Dxf::writeImage(), DL_Dxf::writeInsert(), DL_Dxf::writeLeader(), DL_Dxf::writeLine(), DL_Dxf::writeMText(), DL_Dxf::writePoint(), DL_Dxf::writePolyline(), DL_Dxf::writeRay(), DL_Dxf::writeSolid(), DL_Dxf::writeSpline(), DL_Dxf::writeText(), DL_Dxf::writeTrace(), and DL_Dxf::writeXLine().
|
inline |
Definition at line 509 of file dl_writer.h.
|
inline |
Definition at line 496 of file dl_writer.h.
Referenced by DL_Dxf::writeDictionaryEntry(), and DL_Dxf::writeObjects().
|
inline |
Definition at line 525 of file dl_writer.h.
|
inline |
Definition at line 517 of file dl_writer.h.
|
inline |
Writes a unique handle and returns it.
Definition at line 487 of file dl_writer.h.
Referenced by DL_Dxf::writeBlockRecord(), DL_Dxf::writeObjects(), DL_Dxf::writeStyle(), and DL_Dxf::writeVPort().
|
inline |
Increases handle, so that the handle returned remains available.
Definition at line 501 of file dl_writer.h.
Referenced by DL_Dxf::writeDictionaryEntry(), and DL_Dxf::writeImage().
|
inline |
Definition at line 464 of file dl_writer.h.
|
inline |
Definition at line 465 of file dl_writer.h.
|
inline |
Definition at line 466 of file dl_writer.h.
|
inline |
Definition at line 482 of file dl_writer.h.
|
inline |
Generic section for section 'name'.
0 SECTION 2 name
Definition at line 78 of file dl_writer.h.
References name.
|
inline |
Block (must be in the section BLOCKS).
0 BLOCK
Definition at line 419 of file dl_writer.h.
References DL_VERSION_2000, and version.
Referenced by DL_Dxf::writeBlock().
|
inline |
End of Block (must be in the section BLOCKS).
0 ENDBLK
Definition at line 445 of file dl_writer.h.
References DL_VERSION_2000, and version.
Referenced by DL_Dxf::writeEndBlock().
|
inline |
Section BLOCKS
0 SECTION 2 BLOCKS
Definition at line 117 of file dl_writer.h.
Referenced by main(), DxfProfilesExporter::SaveHorizontalProfiles(), DxfFilter::saveToFile(), DxfProfilesExporter::SaveVerticalProfiles(), and testWriting().
|
inline |
|
inline |
End of a section.
0 ENDSEC
Definition at line 163 of file dl_writer.h.
Referenced by main(), DxfProfilesExporter::SaveHorizontalProfiles(), DxfFilter::saveToFile(), DxfProfilesExporter::SaveVerticalProfiles(), and testWriting().
|
inline |
Section ENTITIES
0 SECTION 2 ENTITIES
Definition at line 129 of file dl_writer.h.
Referenced by main(), DxfProfilesExporter::SaveHorizontalProfiles(), DxfFilter::saveToFile(), DxfProfilesExporter::SaveVerticalProfiles(), and testWriting().
|
inline |
Section HEADER
0 SECTION 2 HEADER
Definition at line 93 of file dl_writer.h.
Referenced by DL_Dxf::writeHeader().
|
inline |
|
inline |
Section TABLES
0 SECTION 2 TABLES
Definition at line 105 of file dl_writer.h.
Referenced by main(), DxfProfilesExporter::SaveHorizontalProfiles(), DxfFilter::saveToFile(), DxfProfilesExporter::SaveVerticalProfiles(), and testWriting().
|
inline |
Sets the handle of the model space. Entities refer to this handle.
Definition at line 507 of file dl_writer.h.
|
inline |
Sets the handle of the paper space 0. Some special blocks refer to this handle.
Definition at line 523 of file dl_writer.h.
|
inline |
Sets the handle of the paper space. Some special blocks refer to this handle.
Definition at line 515 of file dl_writer.h.
|
inline |
Subclass.
Definition at line 344 of file dl_writer.h.
|
inline |
Generic table for table 'name' with 'num' entries:
0 TABLE 2 name 70 num
Definition at line 177 of file dl_writer.h.
References DL_VERSION_2000, name, and version.
|
inline |
Table for application id.
| num | Number of registered applications in total. |
0
TABLE
2
APPID
70
num
Definition at line 237 of file dl_writer.h.
Referenced by main(), DxfProfilesExporter::SaveHorizontalProfiles(), DxfFilter::saveToFile(), DxfProfilesExporter::SaveVerticalProfiles(), and testWriting().
|
inline |
Appid (must be in the TABLES section APPID).
0 APPID
Definition at line 397 of file dl_writer.h.
References DL_VERSION_2000, and version.
Referenced by DxfProfilesExporter::SaveHorizontalProfiles(), DxfFilter::saveToFile(), DxfProfilesExporter::SaveVerticalProfiles(), and DL_Dxf::writeAppid().
|
inline |
End of a table.
0 ENDTAB
Definition at line 262 of file dl_writer.h.
Referenced by main(), DxfProfilesExporter::SaveHorizontalProfiles(), DxfFilter::saveToFile(), DxfProfilesExporter::SaveVerticalProfiles(), and testWriting().
|
inline |
Layer (must be in the TABLES section LAYER).
0 LAYER
Definition at line 354 of file dl_writer.h.
References DL_VERSION_2000, and version.
Referenced by DL_Dxf::writeLayer().
|
inline |
Table for layers.
| num | Number of layers in total. |
0
TABLE
2
LAYER
70
num
Definition at line 204 of file dl_writer.h.
Referenced by main(), DxfProfilesExporter::SaveHorizontalProfiles(), DxfFilter::saveToFile(), DxfProfilesExporter::SaveVerticalProfiles(), and testWriting().
|
inline |
Line type (must be in the TABLES section LTYPE).
0 LTYPE
Definition at line 375 of file dl_writer.h.
References DL_VERSION_2000, and version.
Referenced by DL_Dxf::writeLinetype().
|
inline |
Table for line types.
| num | Number of line types in total. |
0
TABLE
2
LTYPE
70
num
Definition at line 219 of file dl_writer.h.
Referenced by main(), DxfProfilesExporter::SaveHorizontalProfiles(), DxfFilter::saveToFile(), DxfProfilesExporter::SaveVerticalProfiles(), and testWriting().
|
inline |
Table for text style.
| num | Number of text styles. |
0
TABLE
2
STYLE
70
num
Definition at line 252 of file dl_writer.h.
Referenced by main(), DxfProfilesExporter::SaveHorizontalProfiles(), DxfFilter::saveToFile(), DxfProfilesExporter::SaveVerticalProfiles(), and testWriting().
|
mutableprotected |
Definition at line 582 of file dl_writer.h.
|
mutableprotected |
Definition at line 583 of file dl_writer.h.
|
mutableprotected |
Definition at line 585 of file dl_writer.h.
|
mutableprotected |
Definition at line 584 of file dl_writer.h.
|
protected |
DXF version to be created.
Definition at line 590 of file dl_writer.h.
Referenced by DL_WriterA::dxfReal().