33 #include <dime/Basic.h>
34 #include <dime/util/Array.h>
35 #include <dime/util/Linear.h>
36 #include <dime/Base.h>
37 #include <dime/Layer.h>
54 dimeModel(
const bool usememhandler =
false);
63 int countRecords()
const;
65 bool traverseEntities(dimeCallback callback,
66 void *userdata = NULL,
67 bool traverseBlocksSection =
false,
68 bool explodeInserts =
true,
69 bool traversePolylineVertices =
false);
71 const char *addReference(
const char *
const name,
void *
id);
72 void *findReference(
const char *
const name)
const;
73 const char *findRefStringPtr(
const char *
const name)
const;
74 void removeReference(
const char *
const name);
77 int getNumLayers()
const;
78 const class dimeLayer *getLayer(
const int idx)
const;
79 const class dimeLayer *getLayer(
const char *
const layername)
const;
80 const class dimeLayer *addLayer(
const char *
const layername,
81 const int16 colnum = 7,
82 const int16 flags = 0);
84 const char * getDxfVersion()
const;
86 static const char *getVersionString();
87 static void getVersion(
int &major,
int &minor);
88 const char *addBlock(
const char *
const blockname,
dimeBlock *
const block);
89 class dimeBlock *findBlock(
const char *
const blockname);
91 class dimeSection *findSection(
const char *
const sectionname);
92 const class dimeSection *findSection(
const char *
const sectionname)
const;
94 int getNumSections()
const;
96 void insertSection(
dimeSection *
const section,
const int idx = -1);
97 void removeSection(
const int idx);
99 void registerHandle(
const int handle);
100 void registerHandle(
const char *
const handle);
101 int getUniqueHandle();
102 const char *getUniqueHandle(
char *buf,
const int bufsize);
117 #endif // ! DIME_MODEL_H
The dimeDict class is internal / private.
Definition: Dict.h:49
The dimeBlocksSection class handles a BLOCKS section.
Definition: BlocksSection.h:36
The dimeMemHandler class is a special-purpose memory manager.
Definition: MemHandler.h:35
The dimeEntity class is the superclass of all entity classes.
Definition: Entity.h:57
The dimeModel class organizes a model.
Definition: Model.h:51
The dimeEntitiesSection class handles an ENTITIES section.
Definition: EntitiesSection.h:36
The dimeRecord class is the superclass of all record classes.
Definition: Record.h:40
The dimeBlock class handles a BLOCK entity.
Definition: Block.h:42
The dimeSection class is the superclass for all section classes.
Definition: Section.h:40
The dimeOutput class handles writing of DXF and DXB files.
Definition: Output.h:38
The dimeLayer class handles layers.
Definition: Layer.h:35