1 // Copyright (C) 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
\r
3 // This library is free software; you can redistribute it and/or
\r
4 // modify it under the terms of the GNU Lesser General Public
\r
5 // License as published by the Free Software Foundation; either
\r
6 // version 2.1 of the License.
\r
8 // This library is distributed in the hope that it will be useful,
\r
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
\r
11 // Lesser General Public License for more details.
\r
13 // You should have received a copy of the GNU Lesser General Public
\r
14 // License along with this library; if not, write to the Free Software
\r
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
\r
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
\r
21 #ifndef _GEOMAlgo_ShapeInfo_HeaderFile
\r
22 #define _GEOMAlgo_ShapeInfo_HeaderFile
\r
24 #include <Standard.hxx>
\r
25 #include <Standard_Macro.hxx>
\r
26 #include <TopAbs_ShapeEnum.hxx>
\r
27 #include <Standard_Integer.hxx>
\r
28 #include <GEOMAlgo_KindOfShape.hxx>
\r
29 #include <GEOMAlgo_KindOfName.hxx>
\r
30 #include <GEOMAlgo_KindOfBounds.hxx>
\r
31 #include <GEOMAlgo_KindOfClosed.hxx>
\r
32 #include <gp_Pnt.hxx>
\r
33 #include <gp_Dir.hxx>
\r
34 #include <gp_Ax3.hxx>
\r
35 #include <Standard_Real.hxx>
\r
36 #include <gp_Ax2.hxx>
\r
40 //=======================================================================
\r
41 //class : GEOMAlgo_ShapeInfo
\r
43 //=======================================================================
\r
44 class GEOMAlgo_ShapeInfo
\r
48 GEOMAlgo_ShapeInfo();
\r
51 virtual ~GEOMAlgo_ShapeInfo();
\r
57 void SetType(const TopAbs_ShapeEnum aType) ;
\r
60 TopAbs_ShapeEnum Type() const;
\r
63 void SetNbSubShapes(const TopAbs_ShapeEnum aType,const Standard_Integer aNb) ;
\r
66 Standard_Integer NbSubShapes(const TopAbs_ShapeEnum aType) const;
\r
69 void SetKindOfShape(const GEOMAlgo_KindOfShape aT) ;
\r
72 GEOMAlgo_KindOfShape KindOfShape() const;
\r
75 void SetKindOfName(const GEOMAlgo_KindOfName aT) ;
\r
78 GEOMAlgo_KindOfName KindOfName() const;
\r
81 void SetKindOfBounds(const GEOMAlgo_KindOfBounds aT) ;
\r
84 GEOMAlgo_KindOfBounds KindOfBounds() const;
\r
87 void SetKindOfClosed(const GEOMAlgo_KindOfClosed aT) ;
\r
90 GEOMAlgo_KindOfClosed KindOfClosed() const;
\r
93 void SetLocation(const gp_Pnt& aP) ;
\r
96 const gp_Pnt& Location() const;
\r
99 void SetDirection(const gp_Dir& aD) ;
\r
102 const gp_Dir& Direction() const;
\r
105 void SetPosition(const gp_Ax2& aAx2) ;
\r
108 void SetPosition(const gp_Ax3& aAx3) ;
\r
111 const gp_Ax3& Position() const;
\r
114 void SetPnt1(const gp_Pnt& aP) ;
\r
117 const gp_Pnt& Pnt1() const;
\r
120 void SetPnt2(const gp_Pnt& aP) ;
\r
123 const gp_Pnt& Pnt2() const;
\r
126 void SetRadius1(const Standard_Real aR) ;
\r
129 Standard_Real Radius1() const;
\r
132 void SetRadius2(const Standard_Real aR) ;
\r
135 Standard_Real Radius2() const;
\r
138 void SetLength(const Standard_Real aL) ;
\r
141 Standard_Real Length() const;
\r
144 void SetWidth(const Standard_Real aW) ;
\r
147 Standard_Real Width() const;
\r
150 void SetHeight(const Standard_Real aH) ;
\r
153 Standard_Real Height() const;
\r
160 void DumpVertex() const;
\r
163 void DumpEdge() const;
\r
166 void DumpWire() const;
\r
169 void DumpFace() const;
\r
172 void DumpShell() const;
\r
175 void DumpSolid() const;
\r
178 void DumpCompSolid() const;
\r
181 void DumpCompound() const;
\r
184 TopAbs_ShapeEnum myType;
\r
185 Standard_Integer myNbSubShapes[9];
\r
186 GEOMAlgo_KindOfShape myKindOfShape;
\r
187 GEOMAlgo_KindOfName myKindOfName;
\r
188 GEOMAlgo_KindOfBounds myKindOfBounds;
\r
189 GEOMAlgo_KindOfClosed myKindOfClosed;
\r
191 gp_Dir myDirection;
\r
193 Standard_Real myRadius1;
\r
194 Standard_Real myRadius2;
\r
195 Standard_Real myLength;
\r
196 Standard_Real myWidth;
\r
197 Standard_Real myHeight;
\r
200 Standard_Integer myNbTypes;
\r