0022627: Change OCCT memory management defaults
[occt.git] / src / AIS / AIS_GlobalStatus.lxx
1 // File:        AIS_GlobalStatus.lxx
2 // Created:     Fri Jan 24 16:55:27 1997
3 // Author:      Robert COUBLANC
4 //              <rob@robox.paris1.matra-dtv.fr>
5 inline void AIS_GlobalStatus::SetGraphicStatus(const AIS_DisplayStatus aStat)
6 {
7  myStatus = aStat;
8 }
9
10 inline void AIS_GlobalStatus::AddDisplayMode(const Standard_Integer aMode)
11 {
12   if(!IsDModeIn(aMode)) myDispModes.Append(aMode);
13 }
14
15 inline void AIS_GlobalStatus::AddSelectionMode(const Standard_Integer aMode)
16 {
17   if(!IsSModeIn(aMode)) mySelModes.Append(aMode);
18 }
19
20 inline void AIS_GlobalStatus::SetLayerIndex(const Standard_Integer AnIndex)
21 {
22   myLayerIndex=AnIndex;
23 }
24
25 inline void AIS_GlobalStatus::SetHilightStatus(const Standard_Boolean aStat)
26 {
27   myIsHilit = aStat;
28 }
29 inline void AIS_GlobalStatus::SetHilightColor(const Quantity_NameOfColor aCol)
30 {myHiCol = aCol;}
31
32 inline Standard_Boolean  AIS_GlobalStatus::IsSubIntensityOn() const 
33 {
34   return mySubInt;
35 }
36 inline void AIS_GlobalStatus::SubIntensityOn()
37 {
38   mySubInt = Standard_True;
39 }
40 inline void AIS_GlobalStatus::SubIntensityOff()
41 {
42   mySubInt = Standard_False;
43 }
44
45
46
47 inline AIS_DisplayStatus AIS_GlobalStatus::GraphicStatus() const 
48 {
49   return myStatus;
50 }
51
52 inline const TColStd_ListOfInteger& AIS_GlobalStatus::DisplayedModes() const 
53 {
54   return myDispModes;
55 }
56
57 inline const TColStd_ListOfInteger& AIS_GlobalStatus::SelectionModes() const 
58 {
59   return mySelModes;
60 }
61
62 inline Standard_Boolean AIS_GlobalStatus::IsHilighted() const 
63 {
64   return myIsHilit;
65 }
66
67 inline Quantity_NameOfColor AIS_GlobalStatus::HilightColor() const 
68 {return myHiCol;}