|
QCAD
Open Source 2D CAD
|
Go to the documentation of this file.
37 #endif // _MSC_VER > 1000
67 paperSpace0Handle = 0;
82 void section(
const char* name)
const {
83 dxfString(0,
"SECTION");
97 void sectionHeader()
const {
111 void sectionTables()
const {
125 void sectionBlocks()
const {
139 void sectionEntities()
const {
153 void sectionClasses()
const {
167 void sectionObjects()
const {
179 void sectionEnd()
const {
180 dxfString(0,
"ENDSEC");
195 void table(
const char* name,
int num,
int h=0)
const {
196 dxfString(0,
"TABLE");
205 dxfString(100,
"AcDbSymbolTable");
223 void tableLayers(
int num)
const {
224 table(
"LAYER", num, 2);
240 void tableLinetypes(
int num)
const {
242 table(
"LTYPE", num, 5);
258 void tableAppid(
int num)
const {
259 table(
"APPID", num, 9);
275 void tableStyle(
int num)
const {
276 table(
"STYLE", num, 3);
287 void tableEnd()
const {
288 dxfString(0,
"ENDTAB");
299 void dxfEOF()
const {
311 void comment(
const char* text)
const {
312 dxfString(999, text);
325 void entity(
const char* entTypeName)
const {
326 dxfString(0, entTypeName);
366 std::transform(linetype.begin(), linetype.end(), linetype.begin(), ::toupper);
375 void subClass(
const char* sub)
const {
387 void tableLayerEntry(
unsigned long int h=0)
const {
388 dxfString(0,
"LAYER");
395 dxfString(100,
"AcDbSymbolTableRecord");
396 dxfString(100,
"AcDbLayerTableRecord");
408 void tableLinetypeEntry(
unsigned long int h=0)
const {
409 dxfString(0,
"LTYPE");
417 dxfString(100,
"AcDbSymbolTableRecord");
418 dxfString(100,
"AcDbLinetypeTableRecord");
430 void tableAppidEntry(
unsigned long int h=0)
const {
431 dxfString(0,
"APPID");
439 dxfString(100,
"AcDbSymbolTableRecord");
440 dxfString(100,
"AcDbRegAppTableRecord");
452 void sectionBlockEntry(
unsigned long int h=0)
const {
453 dxfString(0,
"BLOCK");
461 dxfString(100,
"AcDbEntity");
466 dxfString(100,
"AcDbBlockBegin");
478 void sectionBlockEntryEnd(
unsigned long int h=0)
const {
479 dxfString(0,
"ENDBLK");
487 dxfString(100,
"AcDbEntity");
492 dxfString(100,
"AcDbBlockEnd");
496 void color(
int col=256)
const {
499 void linetype(
const char *lt)
const {
502 void linetypeScale(
double scale)
const {
505 void lineWeight(
int lw)
const {
509 void coord(
int gc,
double x,
double y,
double z=0)
const {
515 void coordTriplet(
int gc,
const double* value)
const {
517 dxfReal(gc, *value++);
518 dxfReal(gc+10, *value++);
519 dxfReal(gc+20, *value++);
523 void resetHandle()
const {
530 unsigned long handle(
int gc=5)
const {
532 dxfHex(gc, m_handle);
539 unsigned long getNextHandle()
const {
550 virtual void dxfReal(
int gc,
double value)
const = 0;
559 virtual void dxfInt(
int gc,
int value)
const = 0;
568 virtual void dxfBool(
int gc,
bool value)
const {
569 dxfInt(gc, (
int)value);
579 virtual void dxfHex(
int gc,
int value)
const = 0;
588 virtual void dxfString(
int gc,
const char* value)
const = 0;
597 virtual void dxfString(
int gc,
const std::string& value)
const = 0;
600 mutable unsigned long m_handle;
601 mutable unsigned long modelSpaceHandle;
602 mutable unsigned long paperSpaceHandle;
603 mutable unsigned long paperSpace0Handle;
version
Version numbers for the DXF Format.
Definition: dl_codes.h:96
int getColor() const
Definition: dl_attributes.h:171
Defines interface for writing low level DXF constructs to a file.
Definition: dl_writer.h:58
void version()
Prints version information.
Definition: autostart.js:54
int getWidth() const
Definition: dl_attributes.h:194
double getLinetypeScale() const
Definition: dl_attributes.h:213
int getColor24() const
Definition: dl_attributes.h:180
Storing and passing around attributes.
Definition: dl_attributes.h:41
#define DXFLIB_EXPORT
Definition: dl_global.h:12
#define DL_VERSION_2000
Definition: dl_codes.h:378
std::string getLayer() const
Definition: dl_attributes.h:144
std::string getLinetype() const
Definition: dl_attributes.h:220
void scale(void e, void factor, void focusPoint)
Scales the given entity or shape by the given factor with the given focus point.
Definition: simple_modify.js:76