1 // Copyright (C) 2007-2023 CEA/DEN, EDF R&D, OPEN CASCADE
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.
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.
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
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 #ifndef _GEOMAlgo_ShapeInfo_HeaderFile
22 #define _GEOMAlgo_ShapeInfo_HeaderFile
24 #include <Standard.hxx>
25 #include <Standard_Macro.hxx>
26 #include <TopAbs_ShapeEnum.hxx>
27 #include <Standard_Integer.hxx>
33 #include <Standard_Real.hxx>
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>
43 //=======================================================================
44 //class : GEOMAlgo_ShapeInfo
46 //=======================================================================
47 class GEOMAlgo_ShapeInfo
54 virtual ~GEOMAlgo_ShapeInfo();
60 void SetType(const TopAbs_ShapeEnum aType) ;
63 TopAbs_ShapeEnum Type() const;
66 void SetNbSubShapes(const TopAbs_ShapeEnum aType,
67 const Standard_Integer aNb) ;
70 Standard_Integer NbSubShapes(const TopAbs_ShapeEnum aType) const;
73 void SetKindOfShape(const GEOMAlgo_KindOfShape aT) ;
76 GEOMAlgo_KindOfShape KindOfShape() const;
79 void SetKindOfName(const GEOMAlgo_KindOfName aT) ;
82 GEOMAlgo_KindOfName KindOfName() const;
85 void SetKindOfBounds(const GEOMAlgo_KindOfBounds aT) ;
88 GEOMAlgo_KindOfBounds KindOfBounds() const;
91 void SetKindOfClosed(const GEOMAlgo_KindOfClosed aT) ;
94 GEOMAlgo_KindOfClosed KindOfClosed() const;
97 void SetKindOfDef(const GEOMAlgo_KindOfDef aT) ;
100 GEOMAlgo_KindOfDef KindOfDef() const;
103 void SetLocation(const gp_Pnt& aP) ;
106 const gp_Pnt& Location() const;
109 void SetDirection(const gp_Dir& aD) ;
112 const gp_Dir& Direction() const;
115 void SetPosition(const gp_Ax2& aAx2) ;
118 void SetPosition(const gp_Ax3& aAx3) ;
121 const gp_Ax3& Position() const;
124 void SetPnt1(const gp_Pnt& aP) ;
127 const gp_Pnt& Pnt1() const;
130 void SetPnt2(const gp_Pnt& aP) ;
133 const gp_Pnt& Pnt2() const;
136 void SetRadius1(const Standard_Real aR) ;
139 Standard_Real Radius1() const;
142 void SetRadius2(const Standard_Real aR) ;
145 Standard_Real Radius2() const;
148 void SetLength(const Standard_Real aL) ;
151 Standard_Real Length() const;
154 void SetWidth(const Standard_Real aW) ;
157 Standard_Real Width() const;
160 void SetHeight(const Standard_Real aH) ;
163 Standard_Real Height() const;
170 void DumpVertex() const;
173 void DumpEdge() const;
176 void DumpWire() const;
179 void DumpFace() const;
182 void DumpShell() const;
185 void DumpSolid() const;
188 void DumpCompSolid() const;
191 void DumpCompound() const;
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;
204 Standard_Real myRadius1;
205 Standard_Real myRadius2;
206 Standard_Real myLength;
207 Standard_Real myWidth;
208 Standard_Real myHeight;
211 Standard_Integer myNbTypes;