1 // Copyright (C) 2007-2013 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.
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>
42 //=======================================================================
43 //class : GEOMAlgo_ShapeInfo
45 //=======================================================================
46 class GEOMAlgo_ShapeInfo
53 virtual ~GEOMAlgo_ShapeInfo();
59 void SetType(const TopAbs_ShapeEnum aType) ;
62 TopAbs_ShapeEnum Type() const;
65 void SetNbSubShapes(const TopAbs_ShapeEnum aType,const Standard_Integer aNb) ;
68 Standard_Integer NbSubShapes(const TopAbs_ShapeEnum aType) const;
71 void SetKindOfShape(const GEOMAlgo_KindOfShape aT) ;
74 GEOMAlgo_KindOfShape KindOfShape() const;
77 void SetKindOfName(const GEOMAlgo_KindOfName aT) ;
80 GEOMAlgo_KindOfName KindOfName() const;
83 void SetKindOfBounds(const GEOMAlgo_KindOfBounds aT) ;
86 GEOMAlgo_KindOfBounds KindOfBounds() const;
89 void SetKindOfClosed(const GEOMAlgo_KindOfClosed aT) ;
92 GEOMAlgo_KindOfClosed KindOfClosed() const;
95 void SetLocation(const gp_Pnt& aP) ;
98 const gp_Pnt& Location() const;
101 void SetDirection(const gp_Dir& aD) ;
104 const gp_Dir& Direction() const;
107 void SetPosition(const gp_Ax2& aAx2) ;
110 void SetPosition(const gp_Ax3& aAx3) ;
113 const gp_Ax3& Position() const;
116 void SetPnt1(const gp_Pnt& aP) ;
119 const gp_Pnt& Pnt1() const;
122 void SetPnt2(const gp_Pnt& aP) ;
125 const gp_Pnt& Pnt2() const;
128 void SetRadius1(const Standard_Real aR) ;
131 Standard_Real Radius1() const;
134 void SetRadius2(const Standard_Real aR) ;
137 Standard_Real Radius2() const;
140 void SetLength(const Standard_Real aL) ;
143 Standard_Real Length() const;
146 void SetWidth(const Standard_Real aW) ;
149 Standard_Real Width() const;
152 void SetHeight(const Standard_Real aH) ;
155 Standard_Real Height() const;
162 void DumpVertex() const;
165 void DumpEdge() const;
168 void DumpWire() const;
171 void DumpFace() const;
174 void DumpShell() const;
177 void DumpSolid() const;
180 void DumpCompSolid() const;
183 void DumpCompound() const;
186 TopAbs_ShapeEnum myType;
187 Standard_Integer myNbSubShapes[9];
188 GEOMAlgo_KindOfShape myKindOfShape;
189 GEOMAlgo_KindOfName myKindOfName;
190 GEOMAlgo_KindOfBounds myKindOfBounds;
191 GEOMAlgo_KindOfClosed myKindOfClosed;
195 Standard_Real myRadius1;
196 Standard_Real myRadius2;
197 Standard_Real myLength;
198 Standard_Real myWidth;
199 Standard_Real myHeight;
202 Standard_Integer myNbTypes;