0027961: Visualization - remove unused and no more working OpenGl_AVIWriter
[occt.git] / src / HLRBRep / HLRBRep_TheInterferenceOfInterCSurf.hxx
CommitLineData
42cf5bc1 1// Created on: 1992-10-14
2// Created by: Christophe MARION
3// Copyright (c) 1992-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 _HLRBRep_TheInterferenceOfInterCSurf_HeaderFile
18#define _HLRBRep_TheInterferenceOfInterCSurf_HeaderFile
19
20#include <Standard.hxx>
21#include <Standard_DefineAlloc.hxx>
22#include <Standard_Handle.hxx>
23
24#include <Standard_Boolean.hxx>
25#include <Standard_Integer.hxx>
26#include <Intf_Interference.hxx>
27#include <Intf_Array1OfLin.hxx>
28#include <Standard_Real.hxx>
29class HLRBRep_ThePolygonOfInterCSurf;
30class HLRBRep_ThePolygonToolOfInterCSurf;
31class HLRBRep_ThePolyhedronOfInterCSurf;
32class HLRBRep_ThePolyhedronToolOfInterCSurf;
33class gp_Lin;
34class Bnd_BoundSortBox;
35class gp_Pnt;
36class gp_XYZ;
37
38
39
40class HLRBRep_TheInterferenceOfInterCSurf : public Intf_Interference
41{
42public:
43
44 DEFINE_STANDARD_ALLOC
45
46
36b9ff75 47 //! Constructs an empty interference between Polygon and
48 //! Polyhedron.
42cf5bc1 49 Standard_EXPORT HLRBRep_TheInterferenceOfInterCSurf();
50
36b9ff75 51 //! Constructs and computes an interference between the Polygon
52 //! and the Polyhedron.
42cf5bc1 53 Standard_EXPORT HLRBRep_TheInterferenceOfInterCSurf(const HLRBRep_ThePolygonOfInterCSurf& thePolyg, const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh);
54
36b9ff75 55 //! Constructs and computes an interference between the
56 //! Straight Line and the Polyhedron.
42cf5bc1 57 Standard_EXPORT HLRBRep_TheInterferenceOfInterCSurf(const gp_Lin& theLin, const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh);
58
36b9ff75 59 //! Constructs and computes an interference between the
60 //! Straight Lines and the Polyhedron.
42cf5bc1 61 Standard_EXPORT HLRBRep_TheInterferenceOfInterCSurf(const Intf_Array1OfLin& theLins, const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh);
62
36b9ff75 63 //! Computes an interference between the Polygon and the
64 //! Polyhedron.
42cf5bc1 65 Standard_EXPORT void Perform (const HLRBRep_ThePolygonOfInterCSurf& thePolyg, const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh);
66
36b9ff75 67 //! Computes an interference between the Straight Line and the
68 //! Polyhedron.
42cf5bc1 69 Standard_EXPORT void Perform (const gp_Lin& theLin, const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh);
70
36b9ff75 71 //! Computes an interference between the Straight Lines and
72 //! the Polyhedron.
42cf5bc1 73 Standard_EXPORT void Perform (const Intf_Array1OfLin& theLins, const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh);
74
36b9ff75 75 //! Constructs and computes an interference between the Polygon
76 //! and the Polyhedron.
42cf5bc1 77 Standard_EXPORT HLRBRep_TheInterferenceOfInterCSurf(const HLRBRep_ThePolygonOfInterCSurf& thePolyg, const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh, Bnd_BoundSortBox& theBoundSB);
78
36b9ff75 79 //! Constructs and computes an interference between the
80 //! Straight Line and the Polyhedron.
42cf5bc1 81 Standard_EXPORT HLRBRep_TheInterferenceOfInterCSurf(const gp_Lin& theLin, const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh, Bnd_BoundSortBox& theBoundSB);
82
36b9ff75 83 //! Constructs and computes an interference between the
84 //! Straight Lines and the Polyhedron.
42cf5bc1 85 Standard_EXPORT HLRBRep_TheInterferenceOfInterCSurf(const Intf_Array1OfLin& theLins, const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh, Bnd_BoundSortBox& theBoundSB);
86
36b9ff75 87 //! Computes an interference between the Polygon and the
88 //! Polyhedron.
42cf5bc1 89 Standard_EXPORT void Perform (const HLRBRep_ThePolygonOfInterCSurf& thePolyg, const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh, Bnd_BoundSortBox& theBoundSB);
90
36b9ff75 91 //! Computes an interference between the Straight Line and the
92 //! Polyhedron.
42cf5bc1 93 Standard_EXPORT void Perform (const gp_Lin& theLin, const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh, Bnd_BoundSortBox& theBoundSB);
94
36b9ff75 95 //! Computes an interference between the Straight Lines and
96 //! the Polyhedron.
42cf5bc1 97 Standard_EXPORT void Perform (const Intf_Array1OfLin& theLins, const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh, Bnd_BoundSortBox& theBoundSB);
98
36b9ff75 99 //! Compares the boundings between the segment of <thePolyg> and
100 //! the facets of <thePolyh>.
42cf5bc1 101 Standard_EXPORT void Interference (const HLRBRep_ThePolygonOfInterCSurf& thePolyg, const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh, Bnd_BoundSortBox& theBoundSB);
102
36b9ff75 103 //! Compares the boundings between the segment of <thePolyg> and
104 //! the facets of <thePolyh>.
42cf5bc1 105 Standard_EXPORT void Interference (const HLRBRep_ThePolygonOfInterCSurf& thePolyg, const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh);
106
107
108
109
110protected:
111
112
113
114
115
116private:
117
118
36b9ff75 119 //! Computes the intersection between the segment <BegO><EndO>
120 //! and the triangle <TTri> of <thePolyh>.
42cf5bc1 121 Standard_EXPORT void Intersect (const gp_Pnt& BegO, const gp_Pnt& EndO, const Standard_Boolean Infinite, const Standard_Integer TTri, const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh);
122
36b9ff75 123 //! Computes the intersection between the segment <BegO><EndO>
124 //! and the triangle <TTri> of <thePolyh>.
42cf5bc1 125 Standard_EXPORT void Intersect (const gp_Pnt& BegO, const gp_Pnt& EndO, const Standard_Boolean Infinite, const Standard_Integer TTri, const HLRBRep_ThePolyhedronOfInterCSurf& thePolyh, const gp_XYZ& TriNormal, const Standard_Real TriDp, const Standard_Real dBegTri, const Standard_Real dEndTri);
126
127
128 Standard_Boolean BeginOfClosedPolygon;
129 Standard_Integer iLin;
130
131
132};
133
134
135
136
137
138
139
140#endif // _HLRBRep_TheInterferenceOfInterCSurf_HeaderFile