blob: ef07ea849f19216aeb56382b41d83792bcc3761a (
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
56
|
-- File: DsgPrs_XYZAxisPresentation.cdl
-- Created: Mon Feb 10 14:50:11 1997
-- Author: Odile Olivier
-- <odl@sacadox.paris1.matra-dtv.fr>
---Copyright: Matra Datavision 1997
-- SAV : OCC218 06/03/02 : Add(...) overloaded to take into account arrow & text
-- aspects.
class XYZAxisPresentation from DsgPrs
---Purpose: A framework for displaying the axes of an XYZ trihedron.
uses
Presentation from Prs3d,
LineAspect from Prs3d,
Pnt from gp,
Dir from gp,
ArrowAspect from Prs3d,
TextAspect from Prs3d
is
Add(myclass;
aPresentation: Presentation from Prs3d;
anLineAspect : LineAspect from Prs3d;
aDir : Dir from gp;
aVal : Real from Standard;
aText : CString from Standard;
aPfirst : Pnt from gp;
aPlast : Pnt from gp);
---Purpose: Draws each axis of a trihedron displayed in the
-- presentation aPresentation and with lines shown by
-- the values of aLineAspect. Each axis is defined by:
-- - the first and last points aPfirst and aPlast
-- - the direction aDir and
-- - the value aVal which provides a value for length.
-- The value for length is provided so that the trihedron
-- can vary in length relative to the scale of shape display.
-- Each axis will be identified as X, Y, or Z by the text aText.
Add(myclass;
aPresentation : Presentation from Prs3d;
aLineAspect : LineAspect from Prs3d;
anArrowAspect : ArrowAspect from Prs3d;
aTextAspect : TextAspect from Prs3d;
aDir : Dir from gp;
aVal : Real from Standard;
aText : CString from Standard;
aPfirst : Pnt from gp;
aPlast : Pnt from gp);
---Purpose: draws the presentation X ,Y ,Z axis
end XYZAxisPresentation;
|