Version: 8.3.0
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
GEOMAlgo_ShapeInfo.hxx
Go to the documentation of this file.
1
// Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE
2
//
3
// This library is free software; you can redistribute it and/or
4
// modify it under the terms of the GNU Lesser General Public
5
// License as published by the Free Software Foundation; either
6
// version 2.1 of the License, or (at your option) any later version.
7
//
8
// This library is distributed in the hope that it will be useful,
9
// but WITHOUT ANY WARRANTY; without even the implied warranty of
10
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
// Lesser General Public License for more details.
12
//
13
// You should have received a copy of the GNU Lesser General Public
14
// License along with this library; if not, write to the Free Software
15
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16
//
17
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18
//
19
20
21
#ifndef _GEOMAlgo_ShapeInfo_HeaderFile
22
#define _GEOMAlgo_ShapeInfo_HeaderFile
23
24
#include <Standard.hxx>
25
#include <Standard_Macro.hxx>
26
#include <TopAbs_ShapeEnum.hxx>
27
#include <Standard_Integer.hxx>
28
29
30
#include <gp_Pnt.hxx>
31
#include <gp_Dir.hxx>
32
#include <gp_Ax3.hxx>
33
#include <Standard_Real.hxx>
34
#include <gp_Ax2.hxx>
35
36
#include <
GEOMAlgo_KindOfShape.hxx
>
37
#include <
GEOMAlgo_KindOfName.hxx
>
38
#include <
GEOMAlgo_KindOfBounds.hxx
>
39
#include <
GEOMAlgo_KindOfClosed.hxx
>
40
#include <
GEOMAlgo_KindOfDef.hxx
>
41
42
43
//=======================================================================
44
//class : GEOMAlgo_ShapeInfo
45
//purpose :
46
//=======================================================================
47
class
GEOMAlgo_ShapeInfo
48
{
49
public
:
50
Standard_EXPORT
51
GEOMAlgo_ShapeInfo
();
52
53
Standard_EXPORT
54
virtual
~GEOMAlgo_ShapeInfo
();
55
56
Standard_EXPORT
57
void
Reset
() ;
58
59
Standard_EXPORT
60
void
SetType
(
const
TopAbs_ShapeEnum aType) ;
61
62
Standard_EXPORT
63
TopAbs_ShapeEnum
Type
()
const
;
64
65
Standard_EXPORT
66
void
SetNbSubShapes
(
const
TopAbs_ShapeEnum aType,
67
const
Standard_Integer aNb) ;
68
69
Standard_EXPORT
70
Standard_Integer
NbSubShapes
(
const
TopAbs_ShapeEnum aType)
const
;
71
72
Standard_EXPORT
73
void
SetKindOfShape
(
const
GEOMAlgo_KindOfShape
aT) ;
74
75
Standard_EXPORT
76
GEOMAlgo_KindOfShape
KindOfShape
()
const
;
77
78
Standard_EXPORT
79
void
SetKindOfName
(
const
GEOMAlgo_KindOfName
aT) ;
80
81
Standard_EXPORT
82
GEOMAlgo_KindOfName
KindOfName
()
const
;
83
84
Standard_EXPORT
85
void
SetKindOfBounds
(
const
GEOMAlgo_KindOfBounds
aT) ;
86
87
Standard_EXPORT
88
GEOMAlgo_KindOfBounds
KindOfBounds
()
const
;
89
90
Standard_EXPORT
91
void
SetKindOfClosed
(
const
GEOMAlgo_KindOfClosed
aT) ;
92
93
Standard_EXPORT
94
GEOMAlgo_KindOfClosed
KindOfClosed
()
const
;
95
96
Standard_EXPORT
97
void
SetKindOfDef
(
const
GEOMAlgo_KindOfDef
aT) ;
98
99
Standard_EXPORT
100
GEOMAlgo_KindOfDef
KindOfDef
()
const
;
101
102
Standard_EXPORT
103
void
SetLocation
(
const
gp_Pnt& aP) ;
104
105
Standard_EXPORT
106
const
gp_Pnt&
Location
()
const
;
107
108
Standard_EXPORT
109
void
SetDirection
(
const
gp_Dir& aD) ;
110
111
Standard_EXPORT
112
const
gp_Dir&
Direction
()
const
;
113
114
Standard_EXPORT
115
void
SetPosition
(
const
gp_Ax2& aAx2) ;
116
117
Standard_EXPORT
118
void
SetPosition
(
const
gp_Ax3& aAx3) ;
119
120
Standard_EXPORT
121
const
gp_Ax3&
Position
()
const
;
122
123
Standard_EXPORT
124
void
SetPnt1
(
const
gp_Pnt& aP) ;
125
126
Standard_EXPORT
127
const
gp_Pnt&
Pnt1
()
const
;
128
129
Standard_EXPORT
130
void
SetPnt2
(
const
gp_Pnt& aP) ;
131
132
Standard_EXPORT
133
const
gp_Pnt&
Pnt2
()
const
;
134
135
Standard_EXPORT
136
void
SetRadius1
(
const
Standard_Real aR) ;
137
138
Standard_EXPORT
139
Standard_Real
Radius1
()
const
;
140
141
Standard_EXPORT
142
void
SetRadius2
(
const
Standard_Real aR) ;
143
144
Standard_EXPORT
145
Standard_Real
Radius2
()
const
;
146
147
Standard_EXPORT
148
void
SetLength
(
const
Standard_Real aL) ;
149
150
Standard_EXPORT
151
Standard_Real
Length
()
const
;
152
153
Standard_EXPORT
154
void
SetWidth
(
const
Standard_Real aW) ;
155
156
Standard_EXPORT
157
Standard_Real
Width
()
const
;
158
159
Standard_EXPORT
160
void
SetHeight
(
const
Standard_Real aH) ;
161
162
Standard_EXPORT
163
Standard_Real
Height
()
const
;
164
165
Standard_EXPORT
166
void
Dump
()
const
;
167
168
protected
:
169
Standard_EXPORT
170
void
DumpVertex
()
const
;
171
172
Standard_EXPORT
173
void
DumpEdge
()
const
;
174
175
Standard_EXPORT
176
void
DumpWire
()
const
;
177
178
Standard_EXPORT
179
void
DumpFace
()
const
;
180
181
Standard_EXPORT
182
void
DumpShell
()
const
;
183
184
Standard_EXPORT
185
void
DumpSolid
()
const
;
186
187
Standard_EXPORT
188
void
DumpCompSolid
()
const
;
189
190
Standard_EXPORT
191
void
DumpCompound
()
const
;
192
193
194
TopAbs_ShapeEnum
myType
;
195
Standard_Integer
myNbSubShapes
[9];
196
GEOMAlgo_KindOfShape
myKindOfShape
;
197
GEOMAlgo_KindOfName
myKindOfName
;
198
GEOMAlgo_KindOfBounds
myKindOfBounds
;
199
GEOMAlgo_KindOfClosed
myKindOfClosed
;
200
GEOMAlgo_KindOfDef
myKindOfDef
;
201
gp_Pnt
myLocation
;
202
gp_Dir
myDirection
;
203
gp_Ax3
myPosition
;
204
Standard_Real
myRadius1
;
205
Standard_Real
myRadius2
;
206
Standard_Real
myLength
;
207
Standard_Real
myWidth
;
208
Standard_Real
myHeight
;
209
gp_Pnt
myPnt1
;
210
gp_Pnt
myPnt2
;
211
Standard_Integer
myNbTypes
;
212
};
213
#endif
src
GEOMAlgo
GEOMAlgo_ShapeInfo.hxx
Copyright © 2007-2017 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS