QCAD
Open Source 2D CAD
test_creationclass.h
Go to the documentation of this file.
1 
5 /*****************************************************************************
6 ** $Id: test_creationclass.h 8865 2008-02-04 18:54:02Z andrew $
7 **
8 ** This is part of the dxflib library
9 ** Copyright (C) 2001 Andrew Mustun
10 **
11 ** This program is free software; you can redistribute it and/or modify
12 ** it under the terms of the GNU Library General Public License as
13 ** published by the Free Software Foundation.
14 **
15 ** This program is distributed in the hope that it will be useful,
16 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
17 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 ** GNU Library General Public License for more details.
19 **
20 ** You should have received a copy of the GNU Library General Public License
21 ** along with this program; if not, write to the Free Software
22 ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 ******************************************************************************/
24 
25 #ifndef TEST_CREATIONCLASS_H
26 #define TEST_CREATIONCLASS_H
27 
28 #include "dl_creationadapter.h"
29 
30 
31 
40 public:
42 
43  virtual void addLayer(const DL_LayerData& data);
44  virtual void addPoint(const DL_PointData& data);
45  virtual void addLine(const DL_LineData& data);
46  virtual void addArc(const DL_ArcData& data);
47  virtual void addCircle(const DL_CircleData& data);
48  virtual void addPolyline(const DL_PolylineData& data);
49  virtual void addVertex(const DL_VertexData& data);
50  virtual void add3dFace(const DL_3dFaceData& data);
51 
52  void printAttributes();
53 };
54 
55 #endif
An abstract adapter class for receiving DXF events when a DXF file is being read. ...
Definition: dl_creationadapter.h:39
Circle Data.
Definition: dl_entities.h:352
virtual void addCircle(const DL_CircleData &data)
Sample implementation of the method which handles circle entities.
Definition: test_creationclass.cpp:76
virtual void addPoint(const DL_PointData &data)
Sample implementation of the method which handles point entities.
Definition: test_creationclass.cpp:48
Line Data.
Definition: dl_entities.h:221
virtual void add3dFace(const DL_3dFaceData &data)
Called for every 3dface start.
Definition: test_creationclass.cpp:105
virtual void addArc(const DL_ArcData &data)
Sample implementation of the method which handles arc entities.
Definition: test_creationclass.cpp:66
virtual void addLine(const DL_LineData &data)
Sample implementation of the method which handles line entities.
Definition: test_creationclass.cpp:57
virtual void addLayer(const DL_LayerData &data)
Sample implementation of the method which handles layers.
Definition: test_creationclass.cpp:40
Polyline Data.
Definition: dl_entities.h:382
Point Data.
Definition: dl_entities.h:197
Arc Data.
Definition: dl_entities.h:315
Trace Data / solid data / 3d face data.
Definition: dl_entities.h:444
virtual void addVertex(const DL_VertexData &data)
Sample implementation of the method which handles vertices.
Definition: test_creationclass.cpp:97
void printAttributes()
Definition: test_creationclass.cpp:115
This class takes care of the entities read from the file.
Definition: test_creationclass.h:39
Layer Data.
Definition: dl_entities.h:36
Vertex Data.
Definition: dl_entities.h:416
virtual void addPolyline(const DL_PolylineData &data)
Sample implementation of the method which handles polyline entities.
Definition: test_creationclass.cpp:87
Test_CreationClass()
Default constructor.
Definition: test_creationclass.cpp:34