0027961: Visualization - remove unused and no more working OpenGl_AVIWriter
[occt.git] / src / Extrema / Extrema_ExtSS.hxx
1 // Created on: 1991-02-21
2 // Created by: Isabelle GRIGNON
3 // Copyright (c) 1991-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 _Extrema_ExtSS_HeaderFile
18 #define _Extrema_ExtSS_HeaderFile
19
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Handle.hxx>
23
24 #include <Adaptor3d_SurfacePtr.hxx>
25 #include <Standard_Boolean.hxx>
26 #include <Extrema_ExtElSS.hxx>
27 #include <Extrema_SequenceOfPOnSurf.hxx>
28 #include <Standard_Real.hxx>
29 #include <TColStd_SequenceOfReal.hxx>
30 #include <GeomAbs_SurfaceType.hxx>
31 #include <Standard_Integer.hxx>
32 class StdFail_NotDone;
33 class Standard_OutOfRange;
34 class Standard_TypeMismatch;
35 class Adaptor3d_Surface;
36 class Extrema_POnSurf;
37
38
39 //! It calculates all the extremum distances
40 //! between two surfaces.
41 //! These distances can be minimum or maximum.
42 class Extrema_ExtSS 
43 {
44 public:
45
46   DEFINE_STANDARD_ALLOC
47
48   
49   Standard_EXPORT Extrema_ExtSS();
50   
51   //! It calculates all the distances between S1 and S2.
52   Standard_EXPORT Extrema_ExtSS(const Adaptor3d_Surface& S1, const Adaptor3d_Surface& S2, const Standard_Real TolS1, const Standard_Real TolS2);
53   
54   //! It calculates all the distances between S1 and S2.
55   Standard_EXPORT Extrema_ExtSS(const Adaptor3d_Surface& S1, const Adaptor3d_Surface& S2, const Standard_Real Uinf1, const Standard_Real Usup1, const Standard_Real Vinf1, const Standard_Real Vsup1, const Standard_Real Uinf2, const Standard_Real Usup2, const Standard_Real Vinf2, const Standard_Real Vsup2, const Standard_Real TolS1, const Standard_Real TolS2);
56   
57   //! Initializes the fields of the algorithm.
58   Standard_EXPORT void Initialize (const Adaptor3d_Surface& S2, const Standard_Real Uinf2, const Standard_Real Usup2, const Standard_Real Vinf2, const Standard_Real Vsup2, const Standard_Real TolS1);
59   
60   //! Computes the distances.
61   //! An exception is raised if the fieds have not been
62   //! initialized.
63   Standard_EXPORT void Perform (const Adaptor3d_Surface& S1, const Standard_Real Uinf1, const Standard_Real Usup1, const Standard_Real Vinf1, const Standard_Real Vsup1, const Standard_Real TolS1);
64   
65   //! Returns True if the distances are found.
66   Standard_EXPORT Standard_Boolean IsDone() const;
67   
68   //! Returns True if the curve is on a parallel surface.
69   Standard_EXPORT Standard_Boolean IsParallel() const;
70   
71   //! Returns the number of extremum distances.
72   Standard_EXPORT Standard_Integer NbExt() const;
73   
74   //! Returns the value of the Nth resulting square distance.
75   Standard_EXPORT Standard_Real SquareDistance (const Standard_Integer N) const;
76   
77   //! Returns the point of the Nth resulting distance.
78   Standard_EXPORT void Points (const Standard_Integer N, Extrema_POnSurf& P1, Extrema_POnSurf& P2) const;
79
80
81
82
83 protected:
84
85
86
87
88
89 private:
90
91   
92   Standard_EXPORT Adaptor3d_SurfacePtr Bidon() const;
93
94
95   Adaptor3d_SurfacePtr myS2;
96   Standard_Boolean myDone;
97   Standard_Boolean myIsPar;
98   Extrema_ExtElSS myExtElSS;
99   Extrema_SequenceOfPOnSurf myPOnS1;
100   Extrema_SequenceOfPOnSurf myPOnS2;
101   Standard_Real myuinf1;
102   Standard_Real myusup1;
103   Standard_Real myvinf1;
104   Standard_Real myvsup1;
105   Standard_Real myuinf2;
106   Standard_Real myusup2;
107   Standard_Real myvinf2;
108   Standard_Real myvsup2;
109   Standard_Real mytolS1;
110   Standard_Real mytolS2;
111   TColStd_SequenceOfReal mySqDist;
112   GeomAbs_SurfaceType myStype;
113
114
115 };
116
117
118
119
120
121
122
123 #endif // _Extrema_ExtSS_HeaderFile