summaryrefslogtreecommitdiff
path: root/src/Prs2d/Prs2d_Tolerance.cdl
blob: 15a2d9d539c2029597fb004398921a2f6f86aa52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
-- File      : Prs2d_Tolerance.cdl
-- Created   : October 2000
-- Author    : TCL
---Copyright : Matra Datavision 2000

deferred class Tolerance from Prs2d inherits Line from Graphic2d

	---Purpose: Groups all the tolerances
	
uses

	GraphicObject from Graphic2d,
	Drawer        from Graphic2d,
	Length	      from Quantity

is
	
	Initialize( aGO                    : GraphicObject from Graphic2d;
		        aX, aY                 : Real          from Standard;
			    aLength                : Real          from Standard;
                anAngle                : Real          from Standard );
	---Level: Public
	---Purpose: Creates a tolerance with the center in the point (<aX>, <aY>); 
	--          reference point is <aXPosition>, <aYPosition>
	---Category: Constructor

    SetCoord( me: mutable; aX, aY: Real from Standard );
    ---Level: Public
    ---Purpose: Changes the coordinates of this tolerance

    SetSize( me: mutable; aLen: Real from Standard );
    ---Level: Public
    ---Purpose: Defines the size of this one

    Pick( me : mutable; X, Y: ShortReal from Standard;
		  aPrecision: ShortReal from Standard;
		  aDrawer: Drawer from Graphic2d )
	returns Boolean from Standard is protected;
	---Level: Internal
	---Purpose: Returns Standard_True if the Tolerance is picked,
	--	        Standard_False if not.


fields

   myX      : ShortReal from Standard is protected;
   myY      : ShortReal from Standard is protected;
   myLength : ShortReal from Standard is protected;
   myAngle  : ShortReal from Standard is protected;

friends

   class ToleranceFrame from Prs2d
    
end Tolerance from Prs2d;