0024814: Avoid using explicit names of Handle classes
[occt.git] / src / AIS / AIS_InteractiveContext.lxx
1 // Copyright (c) 1998-1999 Matra Datavision
2 // Copyright (c) 1999-2014 OPEN CASCADE SAS
3 //
4 // This file is part of Open CASCADE Technology software library.
5 //
6 // This library is free software; you can redistribute it and/or modify it under
7 // the terms of the GNU Lesser General Public License version 2.1 as published
8 // by the Free Software Foundation, with special exception defined in the file
9 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
10 // distribution for complete text of the license and disclaimer of any warranty.
11 //
12 // Alternatively, this file may be used under the terms of Open CASCADE
13 // commercial license or contractual agreement.
14
15 inline const Handle(V3d_Viewer)& AIS_InteractiveContext::CurrentViewer() const 
16 {
17   return myMainVwr;
18 }
19
20 inline Quantity_NameOfColor AIS_InteractiveContext::HilightColor() const 
21
22   return myHilightColor;
23 }
24
25 inline Quantity_NameOfColor AIS_InteractiveContext::SelectionColor() const 
26 {
27   return mySelectionColor;
28 }
29
30 inline Quantity_NameOfColor AIS_InteractiveContext::PreSelectionColor() const 
31 {
32   return  myPreselectionColor;
33 }
34
35 inline Quantity_NameOfColor AIS_InteractiveContext::DefaultColor() const 
36 {  return myDefaultColor;
37 }
38
39 inline Quantity_NameOfColor AIS_InteractiveContext::SubIntensityColor() const 
40 {
41   return  mySubIntensity;
42 }
43 inline void AIS_InteractiveContext::SetHilightColor(const Quantity_NameOfColor aHiCol)
44 {
45   myHilightColor = aHiCol;
46 }
47
48 inline void AIS_InteractiveContext::SelectionColor(const Quantity_NameOfColor aCol)
49 {
50   mySelectionColor = aCol;
51 }
52
53 inline void AIS_InteractiveContext::SetPreselectionColor(const Quantity_NameOfColor aCol)
54 {
55   myPreselectionColor = aCol;
56 }
57
58 inline void AIS_InteractiveContext::SetSubIntensityColor(const Quantity_NameOfColor aCol)
59 {
60   mySubIntensity = aCol;
61 }
62
63 inline Standard_Integer AIS_InteractiveContext::DisplayMode() const 
64 {
65   return myDisplayMode;
66 }
67
68 inline const Handle(Prs3d_Drawer)& AIS_InteractiveContext::DefaultDrawer() const 
69 {return myDefaultDrawer;}
70 inline const Handle(SelectMgr_SelectionManager)& AIS_InteractiveContext::SelectionManager() const 
71 {return mgrSelector ;}
72
73 inline const Handle(PrsMgr_PresentationManager3d)& AIS_InteractiveContext::MainPrsMgr() const 
74 {return myMainPM  ;}
75
76 inline Standard_Boolean AIS_InteractiveContext::HasOpenedContext() const 
77 {return myCurLocalIndex != 0;}
78
79 inline Handle(AIS_LocalContext) AIS_InteractiveContext::LocalContext() const
80 { return (myCurLocalIndex > 0) ? myLocalContexts(myCurLocalIndex) : NULL; }
81
82 inline const TCollection_AsciiString& AIS_InteractiveContext::CurrentName() const 
83 {return myCurrentName;} 
84
85 inline  Standard_Boolean AIS_InteractiveContext::WasCurrentTouched() const 
86 {return myCurrentTouched;}
87
88 inline void  AIS_InteractiveContext::SetOkCurrent()
89 {myCurrentTouched= Standard_False;}
90
91
92 inline const Handle(StdSelect_ViewerSelector3d)& AIS_InteractiveContext::MainSelector() const 
93 {return myMainSel;}
94
95 inline void AIS_InteractiveContext::SetToHilightSelected(const Standard_Boolean toHilight)
96 {
97   myToHilightSelected = toHilight;
98 }
99
100 inline Standard_Boolean AIS_InteractiveContext::ToHilightSelected() const
101 {
102   return myToHilightSelected;
103 }
104
105
106
107
108
109
110
111
112
113
114
115
116
117