1 // Copyright (C) 2005 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
4 // This library is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU Lesser General Public
6 // License as published by the Free Software Foundation; either
7 // version 2.1 of the License.
9 // This library is distributed in the hope that it will be useful
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 // Lesser General Public License for more details.
14 // You should have received a copy of the GNU Lesser General Public
15 // License along with this library; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 #ifndef _GEOMAlgo_FinderShapeOn_HeaderFile
21 #define _GEOMAlgo_FinderShapeOn_HeaderFile
23 #ifndef _Handle_Geom_Surface_HeaderFile
24 #include <Handle_Geom_Surface.hxx>
26 #ifndef _TopAbs_ShapeEnum_HeaderFile
27 #include <TopAbs_ShapeEnum.hxx>
29 #ifndef _GEOMAlgo_State_HeaderFile
30 #include <GEOMAlgo_State.hxx>
32 #ifndef _TopoDS_Shape_HeaderFile
33 #include <TopoDS_Shape.hxx>
35 #ifndef _TopTools_ListOfShape_HeaderFile
36 #include <TopTools_ListOfShape.hxx>
38 #ifndef _TopTools_DataMapOfShapeShape_HeaderFile
39 #include <TopTools_DataMapOfShapeShape.hxx>
41 #ifndef _GEOMAlgo_IndexedDataMapOfShapeState_HeaderFile
42 #include <GEOMAlgo_IndexedDataMapOfShapeState.hxx>
44 #ifndef _Standard_Boolean_HeaderFile
45 #include <Standard_Boolean.hxx>
47 #ifndef _GEOMAlgo_ShapeAlgo_HeaderFile
48 #include <GEOMAlgo_ShapeAlgo.hxx>
51 class TopTools_ListOfShape;
53 class TopTools_DataMapOfShapeShape;
56 #ifndef _Standard_HeaderFile
57 #include <Standard.hxx>
59 #ifndef _Standard_Macro_HeaderFile
60 #include <Standard_Macro.hxx>
63 class GEOMAlgo_FinderShapeOn : public GEOMAlgo_ShapeAlgo {
67 void* operator new(size_t,void* anAddress)
71 void* operator new(size_t size)
73 return Standard::Allocate(size);
75 void operator delete(void *anAddress)
77 if (anAddress) Standard::Free((Standard_Address&)anAddress);
81 Standard_EXPORT GEOMAlgo_FinderShapeOn();
82 Standard_EXPORT virtual ~GEOMAlgo_FinderShapeOn();
83 Standard_EXPORT virtual void Perform() ;
84 Standard_EXPORT void SetSurface(const Handle(Geom_Surface)& aS) ;
85 Standard_EXPORT void SetShapeType(const TopAbs_ShapeEnum aST) ;
86 Standard_EXPORT void SetState(const GEOMAlgo_State aSF) ;
87 Standard_EXPORT const Handle_Geom_Surface& Surface() const;
88 Standard_EXPORT TopAbs_ShapeEnum ShapeType() const;
89 Standard_EXPORT GEOMAlgo_State State() const;
90 Standard_EXPORT const TopTools_ListOfShape& Shapes() const;
91 Standard_EXPORT static void CopySource(const TopoDS_Shape& aS,TopTools_DataMapOfShapeShape& aImages,TopTools_DataMapOfShapeShape& aOriginals,TopoDS_Shape& aSC) ;
101 Standard_EXPORT virtual void CheckData() ;
102 Standard_EXPORT void MakeArgument1() ;
103 Standard_EXPORT void MakeArgument2() ;
104 Standard_EXPORT void Find() ;
105 Standard_EXPORT void Find(const TopoDS_Shape& aS) ;
106 Standard_EXPORT void FindVertices() ;
111 Handle_Geom_Surface mySurface;
112 TopAbs_ShapeEnum myShapeType;
113 GEOMAlgo_State myState;
116 TopTools_ListOfShape myLS;
117 TopTools_DataMapOfShapeShape myImages;
118 GEOMAlgo_IndexedDataMapOfShapeState myMSS;
119 Standard_Boolean myIsAnalytic;
138 // other Inline functions and methods (like "C++: function call" methods)