Warnings on vc14 were eliminated
[occt.git] / src / TopOpeBRep / TopOpeBRep_EdgesFiller.hxx
CommitLineData
42cf5bc1 1// Created on: 1994-10-12
2// Created by: Jean Yves LEBEY
3// Copyright (c) 1994-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 _TopOpeBRep_EdgesFiller_HeaderFile
18#define _TopOpeBRep_EdgesFiller_HeaderFile
19
20#include <Standard.hxx>
21#include <Standard_DefineAlloc.hxx>
22#include <Standard_Handle.hxx>
23
24#include <TopoDS_Edge.hxx>
25#include <TopoDS_Face.hxx>
26#include <TopOpeBRepDS_PDataStructure.hxx>
27#include <TopOpeBRep_PEdgesIntersector.hxx>
28#include <TopOpeBRepDS_ListOfInterference.hxx>
29#include <Standard_Integer.hxx>
30#include <Standard_Boolean.hxx>
31#include <TopOpeBRepDS_ListIteratorOfListOfInterference.hxx>
32#include <TopOpeBRepDS_Kind.hxx>
33#include <Standard_Real.hxx>
34#include <TopOpeBRepDS_Config.hxx>
35class TopOpeBRepDS_HDataStructure;
36class TopoDS_Shape;
37class TopOpeBRep_EdgesIntersector;
38class TopOpeBRep_Point2d;
39class TopOpeBRepDS_Transition;
40class TopOpeBRepDS_Interference;
41class TopoDS_Edge;
42
43
44//! Fills a TopOpeBRepDS_DataStructure with Edge/Edge
45//! instersection data described by TopOpeBRep_EdgesIntersector.
46class TopOpeBRep_EdgesFiller
47{
48public:
49
50 DEFINE_STANDARD_ALLOC
51
52
53 Standard_EXPORT TopOpeBRep_EdgesFiller();
54
55 Standard_EXPORT void Insert (const TopoDS_Shape& E1, const TopoDS_Shape& E2, TopOpeBRep_EdgesIntersector& EI, const Handle(TopOpeBRepDS_HDataStructure)& HDS);
56
57 Standard_EXPORT void Face (const Standard_Integer I, const TopoDS_Shape& F);
58
59 Standard_EXPORT const TopoDS_Shape& Face (const Standard_Integer I) const;
60
61
62
63
64protected:
65
66
67
68
69
70private:
71
72
73 Standard_EXPORT Standard_Boolean GetGeometry (TopOpeBRepDS_ListIteratorOfListOfInterference& IT, const TopOpeBRep_Point2d& P, Standard_Integer& G, TopOpeBRepDS_Kind& K) const;
74
75 Standard_EXPORT Standard_Boolean MakeGeometry (const TopOpeBRep_Point2d& P, Standard_Integer& G, TopOpeBRepDS_Kind& K) const;
76
77 Standard_EXPORT void SetShapeTransition (const TopOpeBRep_Point2d& P, TopOpeBRepDS_Transition& T1, TopOpeBRepDS_Transition& T2) const;
78
79 Standard_EXPORT Handle(TopOpeBRepDS_Interference) StorePI (const TopOpeBRep_Point2d& P, const TopOpeBRepDS_Transition& T, const Standard_Integer EI, const Standard_Integer PI, const Standard_Real p, const Standard_Integer IE);
80
81 Standard_EXPORT Handle(TopOpeBRepDS_Interference) StoreVI (const TopOpeBRep_Point2d& P, const TopOpeBRepDS_Transition& T, const Standard_Integer EI, const Standard_Integer VI, const Standard_Boolean VB, const TopOpeBRepDS_Config C, const Standard_Real p, const Standard_Integer IE);
82
83 Standard_EXPORT Standard_Boolean ToRecompute (const TopOpeBRep_Point2d& P, const Handle(TopOpeBRepDS_Interference)& I, const Standard_Integer IEmother);
84
85 Standard_EXPORT void StoreRecompute (const Handle(TopOpeBRepDS_Interference)& I, const Standard_Integer IEmother);
86
87 Standard_EXPORT void RecomputeInterferences (const TopoDS_Edge& E, TopOpeBRepDS_ListOfInterference& LOI);
88
89
90 TopoDS_Edge myE1;
91 TopoDS_Edge myE2;
92 TopoDS_Face myF1;
93 TopoDS_Face myF2;
94 Handle(TopOpeBRepDS_HDataStructure) myHDS;
95 TopOpeBRepDS_PDataStructure myPDS;
96 TopOpeBRep_PEdgesIntersector myPEI;
97 TopOpeBRepDS_ListOfInterference myLI1;
98 TopOpeBRepDS_ListOfInterference myLI2;
99
100
101};
102
103
104
105
106
107
108
109#endif // _TopOpeBRep_EdgesFiller_HeaderFile