1 // File generated by CPPExt (Value)
3 // Copyright (C) 1991 - 2000 by
4 // Matra Datavision SA. All rights reserved.
6 // Copyright (C) 2001 - 2004 by
7 // Open CASCADE SA. All rights reserved.
9 // This file is part of the Open CASCADE Technology software.
11 // This software may be distributed and/or modified under the terms and
12 // conditions of the Open CASCADE Public License as defined by Open CASCADE SA
13 // and appearing in the file LICENSE included in the packaging of this file.
15 // This software is distributed on an "AS IS" basis, without warranty of any
16 // kind, and Open CASCADE SA hereby disclaims all such warranties,
17 // including without limitation, any warranties of merchantability, fitness
18 // for a particular purpose or non-infringement. Please see the License for
19 // the specific terms and conditions governing rights and limitations under the
22 #ifndef _GEOMAlgo_FinderShapeOn1_HeaderFile
23 #define _GEOMAlgo_FinderShapeOn1_HeaderFile
25 #ifndef _Handle_Geom_Surface_HeaderFile
26 #include <Handle_Geom_Surface.hxx>
28 #ifndef _TopAbs_ShapeEnum_HeaderFile
29 #include <TopAbs_ShapeEnum.hxx>
31 #ifndef _GEOMAlgo_State_HeaderFile
32 #include <GEOMAlgo_State.hxx>
34 #ifndef _Standard_Integer_HeaderFile
35 #include <Standard_Integer.hxx>
37 #ifndef _GeomAdaptor_Surface_HeaderFile
38 #include <GeomAdaptor_Surface.hxx>
40 #ifndef _TopTools_ListOfShape_HeaderFile
41 #include <TopTools_ListOfShape.hxx>
43 #ifndef _GEOMAlgo_IndexedDataMapOfShapeState_HeaderFile
44 #include <GEOMAlgo_IndexedDataMapOfShapeState.hxx>
46 #ifndef _GEOMAlgo_ShapeAlgo_HeaderFile
47 #include <GEOMAlgo_ShapeAlgo.hxx>
50 class TopTools_ListOfShape;
52 class GEOMAlgo_ListOfPnt;
54 class GEOMAlgo_IndexedDataMapOfShapeState;
57 #ifndef _Standard_HeaderFile
58 #include <Standard.hxx>
60 #ifndef _Standard_Macro_HeaderFile
61 #include <Standard_Macro.hxx>
64 class GEOMAlgo_FinderShapeOn1 : public GEOMAlgo_ShapeAlgo {
68 void* operator new(size_t,void* anAddress)
72 void* operator new(size_t size)
74 return Standard::Allocate(size);
76 void operator delete(void *anAddress)
78 if (anAddress) Standard::Free((Standard_Address&)anAddress);
82 Standard_EXPORT GEOMAlgo_FinderShapeOn1();
83 Standard_EXPORT virtual ~GEOMAlgo_FinderShapeOn1();
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 void SetNbPntsMin(const Standard_Integer aNb) ;
88 Standard_EXPORT Standard_Integer NbPntsMin() const;
89 Standard_EXPORT void SetNbPntsMax(const Standard_Integer aNb) ;
90 Standard_EXPORT Standard_Integer NbPntsMax() const;
91 Standard_EXPORT const Handle_Geom_Surface& Surface() const;
92 Standard_EXPORT TopAbs_ShapeEnum ShapeType() const;
93 Standard_EXPORT GEOMAlgo_State State() const;
94 Standard_EXPORT virtual void Perform() ;
95 Standard_EXPORT const TopTools_ListOfShape& Shapes() const;
96 Standard_EXPORT const GEOMAlgo_IndexedDataMapOfShapeState& MSS() const;
106 Standard_EXPORT virtual void CheckData() ;
107 Standard_EXPORT void ProcessVertices() ;
108 Standard_EXPORT void ProcessEdges() ;
109 Standard_EXPORT void ProcessFaces() ;
110 Standard_EXPORT void ProcessSolids() ;
111 Standard_EXPORT void InnerPoints(const TopoDS_Face& aF,GEOMAlgo_ListOfPnt& aLP) ;
112 Standard_EXPORT void InnerPoints(const TopoDS_Edge& aE,GEOMAlgo_ListOfPnt& aLP) ;
113 Standard_EXPORT void InnerPoints(const TopoDS_Edge& aE,const Standard_Integer aNbPnts,GEOMAlgo_ListOfPnt& aLP) ;
118 Handle_Geom_Surface mySurface;
119 TopAbs_ShapeEnum myShapeType;
120 GEOMAlgo_State myState;
121 Standard_Integer myNbPntsMin;
122 Standard_Integer myNbPntsMax;
123 GeomAdaptor_Surface myGAS;
124 TopTools_ListOfShape myLS;
125 GEOMAlgo_IndexedDataMapOfShapeState myMSS;
144 // other Inline functions and methods (like "C++: function call" methods)