0024162: Eliminate CLang compiler warning
[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-2012 OPEN CASCADE SAS
5 --
6 -- The content of this file is subject to the Open CASCADE Technology Public
7 -- License Version 6.5 (the "License"). You may not use the content of this file
8 -- except in compliance with the License. Please obtain a copy of the License
9 -- at http://www.opencascade.org and read it completely before using this file.
10 --
11 -- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
12 -- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
13 --
14 -- The Original Code and all software distributed under the License is
15 -- distributed on an "AS IS" basis, without warranty of any kind, and the
16 -- Initial Developer hereby disclaims all such warranties, including without
17 -- limitation, any warranties of merchantability, fitness for a particular
18 -- purpose or non-infringement. Please see the License for the specific terms
19 -- and conditions governing the rights and limitations under the License.
20
21
22 --  SAV : OCC218 06/03/02 : Add(...) overloaded to take into account arrow & text
23 --                          aspects.
24
25 class XYZAxisPresentation from DsgPrs
26         ---Purpose: A framework for displaying the axes of an XYZ trihedron.
27 uses
28
29     Presentation from Prs3d,
30     LineAspect   from Prs3d,
31     Pnt          from gp,
32     Dir          from gp,
33     ArrowAspect from Prs3d,
34     TextAspect from Prs3d
35
36 is
37
38     Add(myclass;
39         aPresentation: Presentation from Prs3d;
40         anLineAspect : LineAspect from Prs3d;
41         aDir         : Dir from gp;
42         aVal         : Real from Standard;
43         aText        : CString from Standard;
44         aPfirst      : Pnt    from gp;
45         aPlast       : Pnt    from gp);
46          
47         ---Purpose: Draws each axis of a trihedron displayed in the
48         -- presentation aPresentation and with lines shown by
49         -- the values of aLineAspect. Each axis is defined by:
50         -- -   the first and last points aPfirst and aPlast
51         -- -   the direction aDir and
52         -- -   the value aVal which provides a value for length.
53         --  The value for length is provided so that the trihedron
54         -- can vary in length relative to the scale of shape display.
55         -- Each axis will be identified as X, Y, or Z by the text aText.
56
57
58     Add(myclass;
59         aPresentation : Presentation from Prs3d;
60         aLineAspect   : LineAspect from Prs3d;
61         anArrowAspect : ArrowAspect from Prs3d;
62         aTextAspect   : TextAspect from Prs3d;
63         aDir          : Dir from gp;
64         aVal          : Real from Standard;
65         aText         : CString from Standard;
66         aPfirst       : Pnt    from gp;
67         aPlast        : Pnt    from gp);
68          
69         ---Purpose: draws the presentation X ,Y ,Z axis
70
71 end XYZAxisPresentation;