1 -- Created on: 1999-08-31
2 -- Created by: Pavel DURANDIN
3 -- Copyright (c) 1999 Matra Datavision
4 -- Copyright (c) 1999-2014 OPEN CASCADE SAS
6 -- This file is part of Open CASCADE Technology software library.
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.
14 -- Alternatively, this file may be used under the terms of Open CASCADE
15 -- commercial license or contractual agreement.
17 private class Tool from ShapeUpgrade inherits TShared from MMgt
19 ---Purpose: Tool is a root class for splitting classes
20 -- Provides context for recording changes, basic
21 -- precision value and limit (minimal and maximal)
22 -- values for tolerances
26 ReShape from ShapeBuild
30 Create returns Tool from ShapeUpgrade;
31 ---Purpose: Empty constructor
33 Set (me: mutable; tool: Tool from ShapeUpgrade);
34 ---Purpose: Copy all fields from another Root object
36 SetContext (me: mutable; context : ReShape from ShapeBuild);
37 ---Purpose: Sets context
40 Context (me) returns ReShape from ShapeBuild;
41 ---Purpose: Returns context
44 SetPrecision (me: mutable; preci: Real);
45 ---Purpose: Sets basic precision value
48 Precision (me) returns Real;
49 ---Purpose: Returns basic precision value
52 SetMinTolerance (me: mutable; mintol: Real);
53 ---Purpose: Sets minimal allowed tolerance
56 MinTolerance (me) returns Real;
57 ---Purpose: Returns minimal allowed tolerance
60 SetMaxTolerance (me: mutable; maxtol: Real);
61 ---Purpose: Sets maximal allowed tolerance
64 MaxTolerance (me) returns Real;
65 ---Purpose: Returns maximal allowed tolerance
68 LimitTolerance (me; toler: Real) returns Real;
69 ---Purpose: Returns tolerance limited by [myMinTol,myMaxTol]
74 myContext : ReShape from ShapeBuild;
75 myPrecision: Real; -- basic precision
76 myMinTol : Real; -- minimal allowed tolerance
77 myMaxTol : Real; -- maximal allowed tolerance