Unit DXF_structs |
///////////////////////////////////////////////////////////////////////////// // DXF Objects/Entities/Layers etc // ŠJohn Biddiscombe // Rutherford Appleton Laboratory, UK // j.biddiscombe@rl.ac.uk // DXF code release 3.0 - July 1997 // // /////////////////////////////////////////////////////////////////////////////
Classes |
Arc_ - ///////////////////////////////////////////////////////////////////////////// Arc Definition /////////////////////////////////////////////////////////////////////////////
Attdef_ - ///////////////////////////////////////////////////////////////////////////// Attdef Definition /////////////////////////////////////////////////////////////////////////////
Attrib_ - ///////////////////////////////////////////////////////////////////////////// Attrib Definition /////////////////////////////////////////////////////////////////////////////
Block_ - ///////////////////////////////////////////////////////////////////////////// Block_ Definition - special case - not to be used like other entities Blocks should always appear in layer '0' I'm still not quite sure what to do with them - but here goes anyway.
Circle_ - ///////////////////////////////////////////////////////////////////////////// Circle Definition /////////////////////////////////////////////////////////////////////////////
DXF_Entity - ///////////////////////////////////////////////////////////////////////////// DXF_Entity - abstract base class - override where neccessary All DXF objects will become sub classes of this /////////////////////////////////////////////////////////////////////////////
DXF_Layer - ///////////////////////////////////////////////////////////////////////////// DXF_layer class definition A collection of entity lists.
DXF_Object - ///////////////////////////////////////////////////////////////////////////// DXF_Object class definition A Collection of DXF_Layers - eg a whole DXF file.
Entity_List -
Face3D_ - ///////////////////////////////////////////////////////////////////////////// Face3D_ Definition - Should be 3DFace but can't name a type starting with 3 /////////////////////////////////////////////////////////////////////////////
Insert_ - ///////////////////////////////////////////////////////////////////////////// Insert Definition (optionally contains attribs) /////////////////////////////////////////////////////////////////////////////
Line_ - ///////////////////////////////////////////////////////////////////////////// Line Definition /////////////////////////////////////////////////////////////////////////////
Point_ - ///////////////////////////////////////////////////////////////////////////// Point Definition /////////////////////////////////////////////////////////////////////////////
Polyclosed_ - ///////////////////////////////////////////////////////////////////////////// Polyclosed_ Definition (NOT AN AUTOCAD ENTITY TYPE) /////////////////////////////////////////////////////////////////////////////
Polyface_mesh_ - ///////////////////////////////////////////////////////////////////////////// Polyline_ (polyface vertex array mesh) Definition /////////////////////////////////////////////////////////////////////////////
Polygon_mesh_ - ///////////////////////////////////////////////////////////////////////////// Polyline_ (polygon MxN grid mesh) Definition /////////////////////////////////////////////////////////////////////////////
Polyline_ - ///////////////////////////////////////////////////////////////////////////// Polyline Definition /////////////////////////////////////////////////////////////////////////////
selection_lists - ///////////////////////////////////////////////////////////////////////////// Selection_lists class definition A collection of entity lists.
Solid_ - ///////////////////////////////////////////////////////////////////////////// Solid_ Definition /////////////////////////////////////////////////////////////////////////////
Text_ - ///////////////////////////////////////////////////////////////////////////// Text Definition /////////////////////////////////////////////////////////////////////////////
Functions |
Types |
attrlist
att_array
coord_convert
facelist
file_type
intlist
pattrlist
patt_array
pfacelist
pintlist
planar_eq
polyface
Constants |
BYLAYER
def_cols
DXF_Layer_Colours
max_attribs
max_my_attribs
max_vertices_per_polyline
Variables |
DXF_Obj_in_existence
entities_in_existence
Ent_lists_in_existence
layers_in_existence
Functions |
Types |
attrlist = array[0..0] of double;
att_array = array[0..0] of Attrib_;
coord_convert = function(P:Point3D; OCS:pMatrix) : TPoint of Objectnote the addition of base and scale factor for drawing blocks
facelist = array[0..0] of polyface;
file_type = (off,geo,pslg);
intlist = array[0..0] of integer;
pattrlist = ^attrlist
patt_array = ^att_array
pfacelist = ^facelist
pintlist = ^intlist
planar_eq = record
a : double;
b : double;
c : double;
d : double;
end;
polyface = record
nf : array[0..3] of integer;
end;
Constants |
Variables |