0024530: TKMesh - remove unused package IntPoly
[occt.git] / src / DsgPrs / DsgPrs_XYZAxisPresentation.cdl
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
5 --
6 -- This file is part of Open CASCADE Technology software library.
7 --
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.
13 --
14 -- Alternatively, this file may be used under the terms of Open CASCADE
15 -- commercial license or contractual agreement.
16
17 --  SAV : OCC218 06/03/02 : Add(...) overloaded to take into account arrow & text
18 --                          aspects.
19
20 class XYZAxisPresentation from DsgPrs
21         ---Purpose: A framework for displaying the axes of an XYZ trihedron.
22 uses
23
24     Presentation from Prs3d,
25     LineAspect   from Prs3d,
26     Pnt          from gp,
27     Dir          from gp,
28     ArrowAspect from Prs3d,
29     TextAspect from Prs3d
30
31 is
32
33     Add(myclass;
34         aPresentation: Presentation from Prs3d;
35         anLineAspect : LineAspect from Prs3d;
36         aDir         : Dir from gp;
37         aVal         : Real from Standard;
38         aText        : CString from Standard;
39         aPfirst      : Pnt    from gp;
40         aPlast       : Pnt    from gp);
41          
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.
51
52
53     Add(myclass;
54         aPresentation : Presentation from Prs3d;
55         aLineAspect   : LineAspect from Prs3d;
56         anArrowAspect : ArrowAspect from Prs3d;
57         aTextAspect   : TextAspect from Prs3d;
58         aDir          : Dir from gp;
59         aVal          : Real from Standard;
60         aText         : CString from Standard;
61         aPfirst       : Pnt    from gp;
62         aPlast        : Pnt    from gp);
63          
64         ---Purpose: draws the presentation X ,Y ,Z axis
65
66 end XYZAxisPresentation;