0022048: Visualization, AIS_InteractiveContext - single object selection should alway...
[occt.git] / src / TopOpeBRepDS / TopOpeBRepDS_GapFiller.hxx
CommitLineData
42cf5bc1 1// Created on: 1998-08-18
2// Created by: Yves FRICAUD
3// Copyright (c) 1998-1999 Matra Datavision
4// Copyright (c) 1999-2014 OPEN CASCADE SAS
5//
6// This file is part of Open CASCADE Technology software library.
7//
8// This library is free software; you can redistribute it and/or modify it under
9// the terms of the GNU Lesser General Public License version 2.1 as published
10// by the Free Software Foundation, with special exception defined in the file
11// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12// distribution for complete text of the license and disclaimer of any warranty.
13//
14// Alternatively, this file may be used under the terms of Open CASCADE
15// commercial license or contractual agreement.
16
17#ifndef _TopOpeBRepDS_GapFiller_HeaderFile
18#define _TopOpeBRepDS_GapFiller_HeaderFile
19
20#include <Standard.hxx>
21#include <Standard_DefineAlloc.hxx>
22#include <Standard_Handle.hxx>
23
24#include <TopOpeBRepDS_ListOfInterference.hxx>
25#include <Standard_Boolean.hxx>
26#include <TColStd_MapOfInteger.hxx>
27class TopOpeBRepDS_HDataStructure;
28class TopOpeBRepDS_GapTool;
29class TopOpeBRepDS_Association;
30class TopOpeBRepDS_Interference;
31class TopoDS_Shape;
32class TopoDS_Face;
33class TopoDS_Edge;
34
35
36
37class TopOpeBRepDS_GapFiller
38{
39public:
40
41 DEFINE_STANDARD_ALLOC
42
43
44 Standard_EXPORT TopOpeBRepDS_GapFiller(const Handle(TopOpeBRepDS_HDataStructure)& HDS);
45
46 Standard_EXPORT void Perform();
47
48 //! Recherche parmi l'ensemble des points d'Interference
49 //! la Liste <LI> des points qui correspondent au point d'indice <Index>
50 Standard_EXPORT void FindAssociatedPoints (const Handle(TopOpeBRepDS_Interference)& I, TopOpeBRepDS_ListOfInterference& LI);
51
52 //! Enchaine les sections via les points d'Interferences deja
53 //! associe; Renvoit dans <L> les points extremites des Lignes.
54 //! Methodes pour construire la liste des Points qui
55 //! peuvent correspondre a une Point donne.
56 Standard_EXPORT Standard_Boolean CheckConnexity (TopOpeBRepDS_ListOfInterference& LI);
57
58 Standard_EXPORT void AddPointsOnShape (const TopoDS_Shape& S, TopOpeBRepDS_ListOfInterference& LI);
59
60 //! Methodes pour reduire la liste des Points qui
61 //! peuvent correspondre a une Point donne.
62 Standard_EXPORT void AddPointsOnConnexShape (const TopoDS_Shape& F, const TopOpeBRepDS_ListOfInterference& LI);
63
64 Standard_EXPORT void FilterByFace (const TopoDS_Face& F, TopOpeBRepDS_ListOfInterference& LI);
65
66 Standard_EXPORT void FilterByEdge (const TopoDS_Edge& E, TopOpeBRepDS_ListOfInterference& LI);
67
68 Standard_EXPORT void FilterByIncidentDistance (const TopoDS_Face& F, const Handle(TopOpeBRepDS_Interference)& I, TopOpeBRepDS_ListOfInterference& LI);
69
70 //! Return TRUE si I a ete obtenu par une intersection
71 //! avec <F>.
72 Standard_EXPORT Standard_Boolean IsOnFace (const Handle(TopOpeBRepDS_Interference)& I, const TopoDS_Face& F) const;
73
74 //! Return TRUE si I ou une de ses representaions a
75 //! pour support <E>.
76 //! Methodes de reconstructions des geometries des point
77 //! et des courbes de section
78 Standard_EXPORT Standard_Boolean IsOnEdge (const Handle(TopOpeBRepDS_Interference)& I, const TopoDS_Edge& E) const;
79
80 Standard_EXPORT void BuildNewGeometries();
81
82 Standard_EXPORT void ReBuildGeom (const Handle(TopOpeBRepDS_Interference)& I1, TColStd_MapOfInteger& Done);
83
84
85
86
87protected:
88
89
90
91
92
93private:
94
95
96
97 Handle(TopOpeBRepDS_HDataStructure) myHDS;
98 Handle(TopOpeBRepDS_GapTool) myGapTool;
99 Handle(TopOpeBRepDS_Association) myAsso;
100
101
102};
103
104
105
106
107
108
109
110#endif // _TopOpeBRepDS_GapFiller_HeaderFile