1 // Copyright (C) 2007-2012 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>
28 #include <GEOMAlgo_KindOfShape.hxx>
29 #include <GEOMAlgo_KindOfName.hxx>
30 #include <GEOMAlgo_KindOfBounds.hxx>
31 #include <GEOMAlgo_KindOfClosed.hxx>
35 #include <Standard_Real.hxx>
40 //=======================================================================
41 //class : GEOMAlgo_ShapeInfo
43 //=======================================================================
44 class GEOMAlgo_ShapeInfo
51 virtual ~GEOMAlgo_ShapeInfo();
57 void SetType(const TopAbs_ShapeEnum aType) ;
60 TopAbs_ShapeEnum Type() const;
63 void SetNbSubShapes(const TopAbs_ShapeEnum aType,const Standard_Integer aNb) ;
66 Standard_Integer NbSubShapes(const TopAbs_ShapeEnum aType) const;
69 void SetKindOfShape(const GEOMAlgo_KindOfShape aT) ;
72 GEOMAlgo_KindOfShape KindOfShape() const;
75 void SetKindOfName(const GEOMAlgo_KindOfName aT) ;
78 GEOMAlgo_KindOfName KindOfName() const;
81 void SetKindOfBounds(const GEOMAlgo_KindOfBounds aT) ;
84 GEOMAlgo_KindOfBounds KindOfBounds() const;
87 void SetKindOfClosed(const GEOMAlgo_KindOfClosed aT) ;
90 GEOMAlgo_KindOfClosed KindOfClosed() const;
93 void SetLocation(const gp_Pnt& aP) ;
96 const gp_Pnt& Location() const;
99 void SetDirection(const gp_Dir& aD) ;
102 const gp_Dir& Direction() const;
105 void SetPosition(const gp_Ax2& aAx2) ;
108 void SetPosition(const gp_Ax3& aAx3) ;
111 const gp_Ax3& Position() const;
114 void SetPnt1(const gp_Pnt& aP) ;
117 const gp_Pnt& Pnt1() const;
120 void SetPnt2(const gp_Pnt& aP) ;
123 const gp_Pnt& Pnt2() const;
126 void SetRadius1(const Standard_Real aR) ;
129 Standard_Real Radius1() const;
132 void SetRadius2(const Standard_Real aR) ;
135 Standard_Real Radius2() const;
138 void SetLength(const Standard_Real aL) ;
141 Standard_Real Length() const;
144 void SetWidth(const Standard_Real aW) ;
147 Standard_Real Width() const;
150 void SetHeight(const Standard_Real aH) ;
153 Standard_Real Height() const;
160 void DumpVertex() const;
163 void DumpEdge() const;
166 void DumpWire() const;
169 void DumpFace() const;
172 void DumpShell() const;
175 void DumpSolid() const;
178 void DumpCompSolid() const;
181 void DumpCompound() const;
184 TopAbs_ShapeEnum myType;
185 Standard_Integer myNbSubShapes[9];
186 GEOMAlgo_KindOfShape myKindOfShape;
187 GEOMAlgo_KindOfName myKindOfName;
188 GEOMAlgo_KindOfBounds myKindOfBounds;
189 GEOMAlgo_KindOfClosed myKindOfClosed;
193 Standard_Real myRadius1;
194 Standard_Real myRadius2;
195 Standard_Real myLength;
196 Standard_Real myWidth;
197 Standard_Real myHeight;
200 Standard_Integer myNbTypes;