Debian Codegraph @

libs/qCC_io/extern/dxflib/src/dl_extrusion.h

raw symbols SCIP
1 /****************************************************************************
2 ** Copyright (C) 2001-2013 RibbonSoft, GmbH. All rights reserved.
3 **
4 ** This file is part of the dxflib project.
5 **
6 ** This file is free software; you can redistribute it and/or modify
7 ** it under the terms of the GNU General Public License as published by
8 ** the Free Software Foundation; either version 2 of the License, or
9 ** (at your option) any later version.
10 **
11 ** Licensees holding valid dxflib Professional Edition licenses may use
12 ** this file in accordance with the dxflib Commercial License
13 ** Agreement provided with the Software.
14 **
15 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
16 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
17 **
18 ** See http://www.ribbonsoft.com for further details.
19 **
20 ** Contact [email protected] if any conditions of this licensing are
21 ** not clear to you.
22 **
23 **********************************************************************/
24
25 #ifndef DL_EXTRUSION_H
26 #define DL_EXTRUSION_Hcxx . . $ `libs/qCC_io/extern/dxflib/src/dl_extrusion.h:26:9`!
27
28 #include "dl_global.h"cxx . . $ `<file>/libs/qCC_io/extern/dxflib/src/dl_global.h`/
29
30 #include <math.h>
31
32
33 /**
34 * Extrusion direction.
35 *
36 * @author Andrew Mustun
37 */
38 class DXFLIB_EXPORTcxx . . $ `/build/tmp.dLA5QBHzaL/package/libs/qCC_io/extern/dxflib/src/dl_global.h:12:12`! DL_Extrusioncxx . . $ DL_Extrusion# {
39
40 public:
41
42 /**
43 * Default constructor.
44 */
45 DL_Extrusioncxx . . $ DL_Extrusion#DL_Extrusion(49f6e7a06ebc5aa8).() {
46 directioncxx . . $ DL_Extrusion#direction. = new double[3];
47 setDirectioncxx . . $ DL_Extrusion#setDirection(98dd472ac7e5c3d4).(0.0, 0.0, 1.0);
48 setElevationcxx . . $ DL_Extrusion#setElevation(ba8836b59fb42830).(0.0);
49 }
50
51
52 /**
53 * Destructor.
54 */
55 ~cxx . . $ DL_Extrusion#`~DL_Extrusion`(49f6e7a06ebc5aa8).DL_Extrusioncxx . . $ DL_Extrusion#() {
56 delete[] directioncxx . . $ DL_Extrusion#direction. ;
57 }
58
59
60 /**
61 * Constructor for DXF extrusion.
62 *
63 * @param direction Vector of axis along which the entity shall be extruded
64 * this is also the Z axis of the Entity coordinate system
65 * @param elevation Distance of the entities XY plane from the origin of the
66 * world coordinate system
67 */
68 DL_Extrusioncxx . . $ DL_Extrusion#DL_Extrusion(52a61fa14d44b641).(double dx, double dy, double dz, double elevation) {
69 directioncxx . . $ DL_Extrusion#direction. = new double[3];
70 setDirectioncxx . . $ DL_Extrusion#setDirection(98dd472ac7e5c3d4).(dx, dy, dz);
71 setElevationcxx . . $ DL_Extrusion#setElevation(ba8836b59fb42830).(elevation);
72 }
73
74
75
76 /**
77 * Sets the direction vector.
78 */
79 void setDirectioncxx . . $ DL_Extrusion#setDirection(98dd472ac7e5c3d4).(double dx, double dy, double dz) {
80 directioncxx . . $ DL_Extrusion#direction.[0]=dx;
81 directioncxx . . $ DL_Extrusion#direction.[1]=dy;
82 directioncxx . . $ DL_Extrusion#direction.[2]=dz;
83 }
84
85
86
87 /**
88 * @return direction vector.
89 */
90 double* getDirectioncxx . . $ DL_Extrusion#getDirection(a4716f499a5a0bc6).() const {
91 return directioncxx . . $ DL_Extrusion#direction.;
92 }
93
94
95
96 /**
97 * @return direction vector.
98 */
99 void getDirectioncxx . . $ DL_Extrusion#getDirection(b0764271c3b728b7).(double dir[]) const {
100 dir[0]=directioncxx . . $ DL_Extrusion#direction.[0];
101 dir[1]=directioncxx . . $ DL_Extrusion#direction.[1];
102 dir[2]=directioncxx . . $ DL_Extrusion#direction.[2];
103 }
104
105
106
107 /**
108 * Sets the elevation.
109 */
110 void setElevationcxx . . $ DL_Extrusion#setElevation(ba8836b59fb42830).(double elevation) {
111 this->elevationcxx . . $ DL_Extrusion#elevation. = elevation;
112 }
113
114
115
116 /**
117 * @return Elevation.
118 */
119 double getElevationcxx . . $ DL_Extrusion#getElevation(21b6c25e127938e2).() const {
120 return elevationcxx . . $ DL_Extrusion#elevation.;
121 }
122
123
124
125 /**
126 * Copies extrusion (deep copies) from another extrusion object.
127 */
128 DL_Extrusioncxx . . $ DL_Extrusion# operatorcxx . . $ DL_Extrusion#`operator=`(5c377d5ecd9050de). = (const DL_Extrusioncxx . . $ DL_Extrusion#& extru) {
129 setDirectioncxx . . $ DL_Extrusion#setDirection(98dd472ac7e5c3d4).(extru.directioncxx . . $ DL_Extrusion#direction.[0], extru.directioncxx . . $ DL_Extrusion#direction.[1], extru.directioncxx . . $ DL_Extrusion#direction.[2]);
130 setElevationcxx . . $ DL_Extrusion#setElevation(ba8836b59fb42830).(extru.elevationcxx . . $ DL_Extrusion#elevation.);
131
132 return *this;
133 }
134
135
136
137 private:
138 double *directioncxx . . $ DL_Extrusion#direction.;
139 double elevationcxx . . $ DL_Extrusion#elevation.;
140 };
141
142 #endif
143