blob: 739f1a9907f7e328c07f802fb02a04f9b757678c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
|
-- File: AIS_GlobalStatus.cdl
-- Created: Fri Jan 24 14:34:35 1997
-- Author: Robert COUBLANC
-- <rob@robox.paris1.matra-dtv.fr>
---Copyright: Matra Datavision 1997
private class GlobalStatus from AIS inherits TShared from MMgt
---Purpose: Stores information about objects in graphic context:
-- - Status Of Display : in the main viewer
-- in the collector
-- fully Erased
-- - Displayed Modes
-- - Active Selection Modes
-- - is the Interactive Object Current ?
-- - Layer Index
uses
ListOfInteger from TColStd,
DisplayStatus from AIS,
NameOfColor from Quantity
is
Create returns mutable GlobalStatus from AIS;
Create (aStat : DisplayStatus from AIS;
aDispMode,aSelMode: Integer from Standard;
ishilighted : Boolean from Standard=Standard_False;
TheHiCol : NameOfColor from Quantity = Quantity_NOC_WHITE;
aLayerIndex : Integer from Standard = 0)
returns mutable GlobalStatus from AIS;
---Category: Modifications.
SetGraphicStatus(me:mutable; aStat : DisplayStatus from AIS);
---C++: inline
AddDisplayMode(me:mutable; aMode: Integer from Standard);
---C++: inline
AddSelectionMode(me:mutable; aMode : Integer from Standard);
---C++: inline
SetLayerIndex (me: mutable ; AnIndex : Integer from Standard);
---C++: inline
SetHilightStatus (me: mutable; aStat:Boolean from Standard);
---C++: inline
SetHilightColor(me:mutable;aHiCol : NameOfColor from Quantity);
---C++: inline
IsSubIntensityOn(me) returns Boolean from Standard;
---C++: inline
SubIntensityOn (me: mutable);
---C++: inline
SubIntensityOff (me: mutable);
---C++: inline
RemoveDisplayMode(me:mutable; aMode : Integer from Standard);
RemoveSelectionMode(me:mutable; aMode : Integer from Standard);
ClearSelectionModes(me:mutable);
---Category: Information.
GraphicStatus(me) returns DisplayStatus from AIS;
---C++: inline
DisplayedModes(me) returns ListOfInteger from TColStd;
---C++: return const &
---C++: inline
---Purpose: keeps the information of displayed modes in the
-- main viewer.
-- (The convention is that the object is displayed
-- with the mode 0 in the collector...)
SelectionModes(me) returns ListOfInteger from TColStd;
---C++: return const &
---C++: inline
---Purpose: keeps the active selection modes of the object
-- in the main viewer.
-- (The convention is that the active selection mode
-- for an object in the collector is the mode 0).
IsHilighted(me) returns Boolean from Standard;
---C++: inline
HilightColor(me) returns NameOfColor from Quantity;
---C++: inline
IsDModeIn(me; aMode : Integer from Standard) returns Boolean from Standard;
IsSModeIn(me; aMode : Integer from Standard) returns Boolean from Standard;
fields
myStatus : DisplayStatus from AIS;
myDispModes : ListOfInteger from TColStd;
mySelModes : ListOfInteger from TColStd;
myLayerIndex : Integer from Standard;
myIsHilit : Boolean from Standard;
myHiCol : NameOfColor from Quantity;
mySubInt : Boolean;
end GlobalStatus;
|