1 -- Created on: 1993-07-30
2 -- Created by: Jean-Louis FRENKEL
3 -- Copyright (c) 1993-1999 Matra Datavision
4 -- Copyright (c) 1999-2012 OPEN CASCADE SAS
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.
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.
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.
23 class DatumAspect from Prs3d inherits CompositeAspect from Prs3d
24 ---Purpose: A framework to define the display of datums.
27 LineAspect from Prs3d,
31 Create returns mutable DatumAspect from Prs3d;
32 ---Purpose: An empty framework to define the display of datums.
34 FirstAxisAspect(me) returns mutable LineAspect from Prs3d;
35 ---Purpose: Returns the attributes for display of the first axis.
36 SecondAxisAspect(me) returns mutable LineAspect from Prs3d;
37 ---Purpose: Returns the attributes for display of the second axis.
38 ThirdAxisAspect(me) returns mutable LineAspect from Prs3d;
39 ---Purpose: Returns the attributes for display of the third axis.
40 SetDrawFirstAndSecondAxis(me:mutable ; draw: Boolean from Standard);
41 ---Purpose: Sets the DrawFirstAndSecondAxis attributes to active.
43 DrawFirstAndSecondAxis(me) returns Boolean from Standard;
44 ---Purpose: Returns true if the first and second axes can be drawn.
46 SetDrawThirdAxis(me:mutable; draw: Boolean from Standard);
47 ---Purpose: Sets the DrawThirdAxis attributes to active.
49 DrawThirdAxis(me) returns Boolean from Standard;
50 ---Purpose: Returns true if the third axis can be drawn.
51 SetAxisLength(me:mutable; L1,L2,L3: Real from Standard);
52 ---Purpose: Sets the lengths L1, L2 and L3 of the three axes.
54 FirstAxisLength(me) returns Length from Quantity;
55 --- Purpose: Returns the length of the displayed first axis.
57 SecondAxisLength(me) returns Length from Quantity;
58 ---Purpose: Returns the length of the displayed second axis.
60 ThirdAxisLength(me) returns Length from Quantity;
61 ---Purpose: Returns the length of the displayed third axis.
65 myFirstAxisAspect: LineAspect from Prs3d;
66 mySecondAxisAspect: LineAspect from Prs3d;
67 myThirdAxisAspect: LineAspect from Prs3d;
68 myDrawFirstAndSecondAxis: Boolean from Standard;
69 myDrawThirdAxis: Boolean from Standard;
70 myFirstAxisLength: Length from Quantity;
71 mySecondAxisLength: Length from Quantity;
72 myThirdAxisLength: Length from Quantity;
73 end DatumAspect from Prs3d;