0023654: Problem with displaying vertices in OCC view after closing all OCC views...
[occt.git] / src / AIS / AIS_InteractiveContext.lxx
1 // Copyright (c) 1998-1999 Matra Datavision
2 // Copyright (c) 1999-2012 OPEN CASCADE SAS
3 //
4 // The content of this file is subject to the Open CASCADE Technology Public
5 // License Version 6.5 (the "License"). You may not use the content of this file
6 // except in compliance with the License. Please obtain a copy of the License
7 // at http://www.opencascade.org and read it completely before using this file.
8 //
9 // The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
10 // main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
11 //
12 // The Original Code and all software distributed under the License is
13 // distributed on an "AS IS" basis, without warranty of any kind, and the
14 // Initial Developer hereby disclaims all such warranties, including without
15 // limitation, any warranties of merchantability, fitness for a particular
16 // purpose or non-infringement. Please see the License for the specific terms
17 // and conditions governing the rights and limitations under the License.
18
19 inline const Handle(V3d_Viewer)& AIS_InteractiveContext::CurrentViewer() const 
20 {
21   return myMainVwr;
22 }
23
24 inline Quantity_NameOfColor AIS_InteractiveContext::HilightColor() const 
25
26   return myHilightColor;
27 }
28
29 inline Quantity_NameOfColor AIS_InteractiveContext::SelectionColor() const 
30 {
31   return mySelectionColor;
32 }
33
34 inline Quantity_NameOfColor AIS_InteractiveContext::PreSelectionColor() const 
35 {
36   return  myPreselectionColor;
37 }
38
39 inline Quantity_NameOfColor AIS_InteractiveContext::DefaultColor() const 
40 {  return myDefaultColor;
41 }
42
43 inline Quantity_NameOfColor AIS_InteractiveContext::SubIntensityColor() const 
44 {
45   return  mySubIntensity;
46 }
47 inline void AIS_InteractiveContext::SetHilightColor(const Quantity_NameOfColor aHiCol)
48 {
49   myHilightColor = aHiCol;
50 }
51
52 inline void AIS_InteractiveContext::SelectionColor(const Quantity_NameOfColor aCol)
53 {
54   mySelectionColor = aCol;
55 }
56
57 inline void AIS_InteractiveContext::SetPreselectionColor(const Quantity_NameOfColor aCol)
58 {
59   myPreselectionColor = aCol;
60 }
61
62 inline void AIS_InteractiveContext::SetSubIntensityColor(const Quantity_NameOfColor aCol)
63 {
64   mySubIntensity = aCol;
65 }
66
67 inline Standard_Integer AIS_InteractiveContext::DisplayMode() const 
68 {
69   return myDisplayMode;
70 }
71
72 inline const Handle(Prs3d_Drawer)& AIS_InteractiveContext::DefaultDrawer() const 
73 {return myDefaultDrawer;}
74 inline const Handle(SelectMgr_SelectionManager)& AIS_InteractiveContext::SelectionManager() const 
75 {return mgrSelector ;}
76
77 inline const Handle(PrsMgr_PresentationManager3d)& AIS_InteractiveContext::MainPrsMgr() const 
78 {return myMainPM  ;}
79
80 inline Standard_Boolean AIS_InteractiveContext::HasOpenedContext() const 
81 {return myCurLocalIndex != 0;}
82
83 inline Handle_AIS_LocalContext AIS_InteractiveContext::LocalContext() const
84 { return (myCurLocalIndex > 0) ? myLocalContexts(myCurLocalIndex) : NULL; }
85
86 inline const TCollection_AsciiString& AIS_InteractiveContext::CurrentName() const 
87 {return myCurrentName;} 
88
89 inline  Standard_Boolean AIS_InteractiveContext::WasCurrentTouched() const 
90 {return myCurrentTouched;}
91
92 inline void  AIS_InteractiveContext::SetOkCurrent()
93 {myCurrentTouched= Standard_False;}
94
95
96 inline const Handle(StdSelect_ViewerSelector3d)& AIS_InteractiveContext::MainSelector() const 
97 {return myMainSel;}
98
99 inline void AIS_InteractiveContext::SetToHilightSelected(const Standard_Boolean toHilight)
100 {
101   myToHilightSelected = toHilight;
102 }
103
104 inline Standard_Boolean AIS_InteractiveContext::ToHilightSelected() const
105 {
106   return myToHilightSelected;
107 }
108
109
110
111
112
113
114
115
116
117
118
119
120
121