0022368: AIS_Trihedron's highlight presentation isn't updated on trihedron relocation
[occt.git] / src / AIS / AIS_PlaneTrihedron.cdl
CommitLineData
7fd59977 1-- File: AIS_PlaneTrihedron.cdl
2-- Created: Fri Dec 13 15:31:07 1996
3-- Author: Jean-Pierre COMBE/Odile Olivier
4-- <jpr@chariox.paris1.matra-dtv.fr>
5-- GG : GER61351 17/11/1999 Change SetColor() with a compatible Quantity_Color instead
6-- the restricted NameOfColor.
7-- SAV : OCC218 06/03/02 : Added two fields and methods to be able to change
8-- axes labels.
9-- X/YAxis() returns AIS_Line instead of AIS_Axis
10-- (SAMTECH specific)
11--
12---Copyright: Matra Datavision 1996
13
14class PlaneTrihedron from AIS inherits InteractiveObject from AIS
15
16 ---Purpose: To construct a selectable 2d axis system in a 3d
17 -- drawing. This can be placed anywhere in the 3d
18 -- system, and provides a coordinate system for
19 -- drawing curves and shapes in a plane.
20 -- There are 3 selection modes:
21 -- - mode 0 selection of the whole plane "trihedron"
22 -- - mode 1 selection of the origin of the plane "trihedron"
23 -- - mode 2 selection of the axes.
24 -- Warning
25 -- For the presentation of planes and trihedra, the
26 -- millimetre is default unit of length, and 100 the default
27 -- value for the representation of the axes. If you modify
28 -- these dimensions, you must temporarily recover the
29 -- Drawer object. From inside it, take the Aspects in
30 -- which the values for length are stocked, for example,
31 -- PlaneAspect for planes and FirstAxisAspect for
32 -- trihedra. Change these values and recalculate the presentation.
33
34
35uses
36 Presentation from Prs3d,
37 PresentationManager3d from PrsMgr,
38 NameOfColor from Quantity,
39 Color from Quantity,
40 Selection from SelectMgr,
41 Projector from Prs3d,
42 Transformation from Geom,
43 Drawer from Prs3d,
44 PresentationManager2d from PrsMgr,
45 GraphicObject from Graphic2d,
46 Line from AIS,
47 Point from AIS,
48 Plane from Geom,
49 KindOfInteractive from AIS,
50 AsciiString from TCollection
51
52is
53
54 Create(aPlane : Plane from Geom)
55 returns mutable PlaneTrihedron from AIS;
56 ---Purpose: Initializes the plane aPlane. The plane trihedron is
57 -- constructed from this and an axis.
58
59 Component(me: mutable) returns Plane from Geom
60 is static;
61 ---Purpose: Returns the component specified in SetComponent.
62
63 SetComponent(me: mutable;aPlane : Plane from Geom)
64 is static;
65 ---Purpose: Creates an instance of the component object aPlane.
66
67 XAxis (me) returns Line from AIS;
68 ---Purpose : Returns the "XAxis".
69
70 YAxis (me) returns Line from AIS;
71 ---Purpose : Returns the "YAxis".
72
73 Position (me) returns Point from AIS;
74 ---Purpose : Returns the point of origin of the plane trihedron.
75
76 SetLength(me : mutable;
77 theLength : Real from Standard);
78 ---Purpose: Sets the length of the X and Y axes.
79
80 GetLength(me)
81 ---Purpose: Returns the length of X and Y axes.
82 returns Real from Standard;
83
84 AcceptDisplayMode(me;aMode:Integer from Standard) returns Boolean from Standard is redefined static;
85 ---Purpose: Returns true if the display mode selected, aMode, is valid.
86
87 Compute(me : mutable;
88 aPresentationManager: PresentationManager3d from PrsMgr;
89 aPresentation : mutable Presentation from Prs3d;
90 aMode : Integer from Standard = 0)
91 is redefined protected;
92
93 Compute(me:mutable;
94 aProjector: Projector from Prs3d;
95 aPresentation: mutable Presentation from Prs3d)
96 is redefined static private;
97
98 Compute(me:mutable;
99 aPresentationManager: PresentationManager2d from PrsMgr;
100 aPresentation: mutable GraphicObject from Graphic2d;
101 aMode: Integer from Standard = 0)
102 is redefined static private;
103
104 Compute(me : mutable;
105 aProjector : Projector from Prs3d;
106 aTrsf : Transformation from Geom;
107 aPresentation : mutable Presentation from Prs3d)
108 is redefined;
109 ---Purpose: computes the presentation according to a point of view
110 -- given by <aProjector>.
111 -- To be Used when the associated degenerated Presentations
112 -- have been transformed by <aTrsf> which is not a Pure
113 -- Translation. The HLR Prs can't be deducted automatically
114 -- WARNING :<aTrsf> must be applied
115 -- to the object to display before computation !!!
116
117-- Methods from SelectableObject
118
119 ComputeSelection(me : mutable;
120 aSelection : mutable Selection from SelectMgr;
121 aMode : Integer from Standard)is private;
122
123-- Methods from InteractiveObject
124
125 Signature(me) returns Integer from Standard is redefined;
126 ---C++: inline
127
128 Type(me) returns KindOfInteractive from AIS is redefined;
129 ---C++: inline
130 ---Purpose: Returns datum as the type of Interactive Object.
131
132 SetColor(me :mutable; aColor : NameOfColor from Quantity)
133 is redefined static ;
134 ---Purpose: Allows you to provide settings for the color aColor.
135
136 SetColor(me :mutable; aColor : Color from Quantity)
137 is redefined static ;
138
139 SetXLabel(me : mutable; aLabel : AsciiString from TCollection);
140 ---C++: inline
141
142 SetYLabel(me : mutable; aLabel : AsciiString from TCollection);
143 ---C++: inline
144
145
146fields
147
148 myPlane : Plane from Geom;
149 myShapes : InteractiveObject from AIS [3];
150 myXLabel : AsciiString from TCollection;
151 myYLabel : AsciiString from TCollection;
152
153end PlaneTrihedron from AIS;