]> SALOME platform Git repositories - modules/geom.git/blob - src/GEOMAlgo_NEW/GEOMAlgo_ClsfBox.hxx
Salome HOME
Mantis issue 0021191: GlueEdges and GlueFaces problem with tolerance 1. A fix by...
[modules/geom.git] / src / GEOMAlgo_NEW / GEOMAlgo_ClsfBox.hxx
1 // Copyright (C) 2007-2011  CEA/DEN, EDF R&D, OPEN CASCADE\r
2 //\r
3 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,\r
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS\r
5 //\r
6 // This library is free software; you can redistribute it and/or\r
7 // modify it under the terms of the GNU Lesser General Public\r
8 // License as published by the Free Software Foundation; either\r
9 // version 2.1 of the License.\r
10 //\r
11 // This library is distributed in the hope that it will be useful,\r
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of\r
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\r
14 // Lesser General Public License for more details.\r
15 //\r
16 // You should have received a copy of the GNU Lesser General Public\r
17 // License along with this library; if not, write to the Free Software\r
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA\r
19 //\r
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com\r
21 //\r
22 \r
23 // File:        GEOMAlgo_ClsfBox.hxx\r
24 // Created:     Wed Nov 22 10:41:47 2006\r
25 // Author:      Peter KURNEV\r
26 //              <pkv@irinox>\r
27 //\r
28 #ifndef _GEOMAlgo_ClsfBox_HeaderFile\r
29 #define _GEOMAlgo_ClsfBox_HeaderFile\r
30 \r
31 #include <Standard.hxx>\r
32 #include <Standard_DefineHandle.hxx>\r
33 //#include <Handle_GEOMAlgo_ClsfBox.hxx>\r
34 #include <TopoDS_Shape.hxx>\r
35 #include <GeomAdaptor_Surface.hxx>\r
36 #include <GEOMAlgo_Clsf.hxx>\r
37 #include <Standard_Boolean.hxx>\r
38 #include <Handle_Geom_Curve.hxx>\r
39 #include <Handle_Geom_Surface.hxx>\r
40 #include <Geom_Curve.hxx>\r
41 #include <Geom_Surface.hxx>\r
42 \r
43 DEFINE_STANDARD_HANDLE(GEOMAlgo_ClsfBox, GEOMAlgo_Clsf)\r
44 \r
45 //=======================================================================\r
46 //function : GEOMAlgo_ClsfBox\r
47 //purpose  : \r
48 //=======================================================================\r
49 class GEOMAlgo_ClsfBox : public GEOMAlgo_Clsf \r
50 {\r
51  public:\r
52   Standard_EXPORT\r
53     GEOMAlgo_ClsfBox();\r
54   \r
55   Standard_EXPORT\r
56     virtual ~GEOMAlgo_ClsfBox();\r
57   \r
58   Standard_EXPORT\r
59     void SetBox(const TopoDS_Shape& aS) ;\r
60   \r
61   Standard_EXPORT\r
62     const TopoDS_Shape& Box() const;\r
63   \r
64   Standard_EXPORT\r
65     virtual  void Perform() ;\r
66   \r
67   Standard_EXPORT\r
68     virtual  void CheckData() ;\r
69   \r
70   Standard_EXPORT\r
71     virtual  Standard_Boolean CanBeON(const Handle(Geom_Curve)& aC) const;\r
72   \r
73   Standard_EXPORT\r
74     virtual  Standard_Boolean CanBeON(const Handle(Geom_Surface)& aST) const;\r
75   \r
76   DEFINE_STANDARD_RTTI(GEOMAlgo_ClsfBox)\r
77     \r
78  protected:\r
79   TopoDS_Shape myBox;\r
80   GeomAdaptor_Surface myGAS[6];\r
81 \r
82 \r
83 private: \r
84 \r
85 \r
86 \r
87 \r
88 };\r
89 \r
90 \r
91 \r
92 \r
93 \r
94 // other Inline functions and methods (like "C++: function call" methods)\r
95 \r
96 \r
97 #endif\r