0024166: Unable to create file with "Save" menu of voxeldemo Qt sample
[occt.git] / src / AIS / AIS_GlobalStatus.lxx
1 // Created on: 1997-01-24
2 // Created by: Robert COUBLANC
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 inline void AIS_GlobalStatus::SetGraphicStatus(const AIS_DisplayStatus aStat)
22 {
23  myStatus = aStat;
24 }
25
26 inline void AIS_GlobalStatus::AddDisplayMode(const Standard_Integer aMode)
27 {
28   if(!IsDModeIn(aMode)) myDispModes.Append(aMode);
29 }
30
31 inline void AIS_GlobalStatus::AddSelectionMode(const Standard_Integer aMode)
32 {
33   if(!IsSModeIn(aMode)) mySelModes.Append(aMode);
34 }
35
36 inline void AIS_GlobalStatus::SetLayerIndex(const Standard_Integer AnIndex)
37 {
38   myLayerIndex=AnIndex;
39 }
40
41 inline void AIS_GlobalStatus::SetHilightStatus(const Standard_Boolean aStat)
42 {
43   myIsHilit = aStat;
44 }
45 inline void AIS_GlobalStatus::SetHilightColor(const Quantity_NameOfColor aCol)
46 {myHiCol = aCol;}
47
48 inline Standard_Boolean  AIS_GlobalStatus::IsSubIntensityOn() const 
49 {
50   return mySubInt;
51 }
52 inline void AIS_GlobalStatus::SubIntensityOn()
53 {
54   mySubInt = Standard_True;
55 }
56 inline void AIS_GlobalStatus::SubIntensityOff()
57 {
58   mySubInt = Standard_False;
59 }
60
61
62
63 inline AIS_DisplayStatus AIS_GlobalStatus::GraphicStatus() const 
64 {
65   return myStatus;
66 }
67
68 inline const TColStd_ListOfInteger& AIS_GlobalStatus::DisplayedModes() const 
69 {
70   return myDispModes;
71 }
72
73 inline const TColStd_ListOfInteger& AIS_GlobalStatus::SelectionModes() const 
74 {
75   return mySelModes;
76 }
77
78 inline Standard_Boolean AIS_GlobalStatus::IsHilighted() const 
79 {
80   return myIsHilit;
81 }
82
83 inline Quantity_NameOfColor AIS_GlobalStatus::HilightColor() const 
84 {return myHiCol;}