Test for 0022778: Bug in BRepMesh
[occt.git] / src / Prs2d / Prs2d_Tolerance.cdl
CommitLineData
b311480e 1-- Created by: TCL
2-- Copyright (c) 2000-2012 OPEN CASCADE SAS
3--
4-- The content of this file is subject to the Open CASCADE Technology Public
5-- License Version 6.5 (the "License"). You may not use the content of this file
6-- except in compliance with the License. Please obtain a copy of the License
7-- at http://www.opencascade.org and read it completely before using this file.
8--
9-- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
10-- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
11--
12-- The Original Code and all software distributed under the License is
13-- distributed on an "AS IS" basis, without warranty of any kind, and the
14-- Initial Developer hereby disclaims all such warranties, including without
15-- limitation, any warranties of merchantability, fitness for a particular
16-- purpose or non-infringement. Please see the License for the specific terms
17-- and conditions governing the rights and limitations under the License.
18
7fd59977 19
20deferred class Tolerance from Prs2d inherits Line from Graphic2d
21
22 ---Purpose: Groups all the tolerances
23
24uses
25
26 GraphicObject from Graphic2d,
27 Drawer from Graphic2d,
28 Length from Quantity
29
30is
31
32 Initialize( aGO : GraphicObject from Graphic2d;
33 aX, aY : Real from Standard;
34 aLength : Real from Standard;
35 anAngle : Real from Standard );
36 ---Level: Public
37 ---Purpose: Creates a tolerance with the center in the point (<aX>, <aY>);
38 -- reference point is <aXPosition>, <aYPosition>
39 ---Category: Constructor
40
41 SetCoord( me: mutable; aX, aY: Real from Standard );
42 ---Level: Public
43 ---Purpose: Changes the coordinates of this tolerance
44
45 SetSize( me: mutable; aLen: Real from Standard );
46 ---Level: Public
47 ---Purpose: Defines the size of this one
48
49 Pick( me : mutable; X, Y: ShortReal from Standard;
50 aPrecision: ShortReal from Standard;
51 aDrawer: Drawer from Graphic2d )
52 returns Boolean from Standard is protected;
53 ---Level: Internal
54 ---Purpose: Returns Standard_True if the Tolerance is picked,
55 -- Standard_False if not.
56
57
58fields
59
60 myX : ShortReal from Standard is protected;
61 myY : ShortReal from Standard is protected;
62 myLength : ShortReal from Standard is protected;
63 myAngle : ShortReal from Standard is protected;
64
65friends
66
67 class ToleranceFrame from Prs2d
68
69end Tolerance from Prs2d;