0031687: Draw Harness, ViewerTest - extend command vrenderparams with option updating...
[occt.git] / src / ShapeCustom / ShapeCustom_RestrictionParameters.hxx
CommitLineData
42cf5bc1 1// Created on: 2000-05-22
2// Created by: data exchange team
3// Copyright (c) 2000-2014 OPEN CASCADE SAS
4//
5// This file is part of Open CASCADE Technology software library.
6//
7// This library is free software; you can redistribute it and/or modify it under
8// the terms of the GNU Lesser General Public License version 2.1 as published
9// by the Free Software Foundation, with special exception defined in the file
10// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11// distribution for complete text of the license and disclaimer of any warranty.
12//
13// Alternatively, this file may be used under the terms of Open CASCADE
14// commercial license or contractual agreement.
15
16#ifndef _ShapeCustom_RestrictionParameters_HeaderFile
17#define _ShapeCustom_RestrictionParameters_HeaderFile
18
19#include <Standard.hxx>
20#include <Standard_Type.hxx>
21
22#include <Standard_Integer.hxx>
23#include <Standard_Boolean.hxx>
25e59720 24#include <Standard_Transient.hxx>
42cf5bc1 25
26
27class ShapeCustom_RestrictionParameters;
25e59720 28DEFINE_STANDARD_HANDLE(ShapeCustom_RestrictionParameters, Standard_Transient)
42cf5bc1 29
30//! This class is axuluary tool which contains parameters for
31//! BSplineRestriction class.
25e59720 32class ShapeCustom_RestrictionParameters : public Standard_Transient
42cf5bc1 33{
34
35public:
36
37
38 //! Sets default parameters.
39 Standard_EXPORT ShapeCustom_RestrictionParameters();
40
41 //! Returns (modifiable) maximal degree of approximation.
42 Standard_Integer& GMaxDegree();
43
44 //! Returns (modifiable) maximal number of spans of
45 //! approximation.
46 Standard_Integer& GMaxSeg();
47
48 //! Sets flag for define if Plane converted to BSpline surface.
49 Standard_Boolean& ConvertPlane();
50
51 //! Sets flag for define if Bezier surface converted to BSpline
52 //! surface.
53 Standard_Boolean& ConvertBezierSurf();
54
55 //! Sets flag for define if surface of Revolution converted to
56 //! BSpline surface.
57 Standard_Boolean& ConvertRevolutionSurf();
58
59 //! Sets flag for define if surface of LinearExtrusion converted
60 //! to BSpline surface.
61 Standard_Boolean& ConvertExtrusionSurf();
62
63 //! Sets flag for define if Offset surface converted to BSpline
64 //! surface.
65 Standard_Boolean& ConvertOffsetSurf();
66
67 //! Sets flag for define if cylindrical surface converted to BSpline
68 //! surface.
69 Standard_Boolean& ConvertCylindricalSurf();
70
71 //! Sets flag for define if conical surface converted to BSpline
72 //! surface.
73 Standard_Boolean& ConvertConicalSurf();
74
75 //! Sets flag for define if toroidal surface converted to BSpline
76 //! surface.
77 Standard_Boolean& ConvertToroidalSurf();
78
79 //! Sets flag for define if spherical surface converted to BSpline
80 //! surface.
81 Standard_Boolean& ConvertSphericalSurf();
82
83 //! Sets Segment mode for surface. If Segment is True surface is
84 //! approximated in the bondaries of face lying on this surface.
85 Standard_Boolean& SegmentSurfaceMode();
86
87 //! Sets flag for define if 3d curve converted to BSpline curve.
88 Standard_Boolean& ConvertCurve3d();
89
90 //! Sets flag for define if Offset curve3d converted to BSpline
91 //! surface.
92 Standard_Boolean& ConvertOffsetCurv3d();
93
94 //! Returns (modifiable) flag for define if 2d curve converted
95 //! to BSpline curve.
96 Standard_Boolean& ConvertCurve2d();
97
98 //! Returns (modifiable) flag for define if Offset curve2d
99 //! converted to BSpline surface.
100 Standard_Boolean& ConvertOffsetCurv2d();
101
102
103
104
25e59720 105 DEFINE_STANDARD_RTTIEXT(ShapeCustom_RestrictionParameters,Standard_Transient)
42cf5bc1 106
107protected:
108
109
110
111
112private:
113
114
115 Standard_Integer myGMaxDegree;
116 Standard_Integer myGMaxSeg;
117 Standard_Boolean myConvPlane;
118 Standard_Boolean myConvConicalSurf;
119 Standard_Boolean myConvSphericalSurf;
120 Standard_Boolean myConvCylindricalSurf;
121 Standard_Boolean myConvToroidalSurf;
122 Standard_Boolean myConvBezierSurf;
123 Standard_Boolean myConvRevolSurf;
124 Standard_Boolean myConvExtrSurf;
125 Standard_Boolean myConvOffsetSurf;
126 Standard_Boolean mySegmentSurfaceMode;
127 Standard_Boolean myConvCurve3d;
128 Standard_Boolean myConvOffsetCurv3d;
129 Standard_Boolean myConvCurve2d;
130 Standard_Boolean myConvOffsetCurv2d;
131
132
133};
134
135
136#include <ShapeCustom_RestrictionParameters.lxx>
137
138
139
140
141
142#endif // _ShapeCustom_RestrictionParameters_HeaderFile