1 -- Created on: 1997-02-10
2 -- Created by: Odile Olivier
3 -- Copyright (c) 1997-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
9 -- under the terms of the GNU Lesser General Public 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 -- SAV : OCC218 06/03/02 : Add(...) overloaded to take into account arrow & text
20 class XYZAxisPresentation from DsgPrs
21 ---Purpose: A framework for displaying the axes of an XYZ trihedron.
24 Presentation from Prs3d,
25 LineAspect from Prs3d,
28 ArrowAspect from Prs3d,
34 aPresentation: Presentation from Prs3d;
35 anLineAspect : LineAspect from Prs3d;
37 aVal : Real from Standard;
38 aText : CString from Standard;
39 aPfirst : Pnt from gp;
40 aPlast : Pnt from gp);
42 ---Purpose: Draws each axis of a trihedron displayed in the
43 -- presentation aPresentation and with lines shown by
44 -- the values of aLineAspect. Each axis is defined by:
45 -- - the first and last points aPfirst and aPlast
46 -- - the direction aDir and
47 -- - the value aVal which provides a value for length.
48 -- The value for length is provided so that the trihedron
49 -- can vary in length relative to the scale of shape display.
50 -- Each axis will be identified as X, Y, or Z by the text aText.
54 aPresentation : Presentation from Prs3d;
55 aLineAspect : LineAspect from Prs3d;
56 anArrowAspect : ArrowAspect from Prs3d;
57 aTextAspect : TextAspect from Prs3d;
59 aVal : Real from Standard;
60 aText : CString from Standard;
61 aPfirst : Pnt from gp;
62 aPlast : Pnt from gp);
64 ---Purpose: draws the presentation X ,Y ,Z axis
66 end XYZAxisPresentation;