0031687: Draw Harness, ViewerTest - extend command vrenderparams with option updating...
[occt.git] / src / TopOpeBRepTool / TopOpeBRepTool_GeomTool.hxx
1 // Created on: 1993-06-24
2 // Created by: Jean Yves LEBEY
3 // Copyright (c) 1993-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 _TopOpeBRepTool_GeomTool_HeaderFile
18 #define _TopOpeBRepTool_GeomTool_HeaderFile
19
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Handle.hxx>
23
24 #include <TopOpeBRepTool_OutCurveType.hxx>
25 #include <Standard_Boolean.hxx>
26 #include <Standard_Real.hxx>
27 #include <Standard_Integer.hxx>
28
29
30
31 class TopOpeBRepTool_GeomTool 
32 {
33 public:
34
35   DEFINE_STANDARD_ALLOC
36
37   
38   //! Boolean flags <CompC3D>, <CompPC1>, <CompPC2>
39   //! indicate whether  the  corresponding result curves
40   //! <C3D>, <PC1>, <PC2> of MakeCurves method  must or not
41   //! be computed from an intersection line <L>.
42   //! When  the line <L> is a walking one, <TypeC3D> is the
43   //! kind  of the 3D curve <C3D>  to  compute  :
44   //! - BSPLINE1 to compute  a BSpline of  degree 1 on the
45   //! walking   points  of  <L>,
46   //! - APPROX  to build  an  approximation curve on the
47   //! walking points of <L>.
48   Standard_EXPORT TopOpeBRepTool_GeomTool(const TopOpeBRepTool_OutCurveType TypeC3D = TopOpeBRepTool_BSPLINE1, const Standard_Boolean CompC3D = Standard_True, const Standard_Boolean CompPC1 = Standard_True, const Standard_Boolean CompPC2 = Standard_True);
49   
50   Standard_EXPORT void Define (const TopOpeBRepTool_OutCurveType TypeC3D, const Standard_Boolean CompC3D, const Standard_Boolean CompPC1, const Standard_Boolean CompPC2);
51   
52   Standard_EXPORT void Define (const TopOpeBRepTool_OutCurveType TypeC3D);
53   
54   Standard_EXPORT void DefineCurves (const Standard_Boolean CompC3D);
55   
56   Standard_EXPORT void DefinePCurves1 (const Standard_Boolean CompPC1);
57   
58   Standard_EXPORT void DefinePCurves2 (const Standard_Boolean CompPC2);
59   
60   Standard_EXPORT void Define (const TopOpeBRepTool_GeomTool& GT);
61   
62   Standard_EXPORT void GetTolerances (Standard_Real& tol3d, Standard_Real& tol2d) const;
63   
64   Standard_EXPORT void SetTolerances (const Standard_Real tol3d, const Standard_Real tol2d);
65   
66   Standard_EXPORT Standard_Integer NbPntMax() const;
67   
68   Standard_EXPORT void SetNbPntMax (const Standard_Integer NbPntMax);
69   
70   Standard_EXPORT TopOpeBRepTool_OutCurveType TypeC3D() const;
71   
72   Standard_EXPORT Standard_Boolean CompC3D() const;
73   
74   Standard_EXPORT Standard_Boolean CompPC1() const;
75   
76   Standard_EXPORT Standard_Boolean CompPC2() const;
77
78
79
80
81 protected:
82
83
84
85   TopOpeBRepTool_OutCurveType myTypeC3D;
86   Standard_Boolean myCompC3D;
87   Standard_Boolean myCompPC1;
88   Standard_Boolean myCompPC2;
89
90
91 private:
92
93
94
95   Standard_Real myTol3d;
96   Standard_Real myTol2d;
97   Standard_Integer myNbPntMax;
98
99
100 };
101
102
103
104
105
106
107
108 #endif // _TopOpeBRepTool_GeomTool_HeaderFile