0024856: CLang warnings -Wunused-private-field
[occt.git] / src / AIS / AIS_InteractiveContext.lxx
CommitLineData
b311480e 1// Copyright (c) 1998-1999 Matra Datavision
973c2be1 2// Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 3//
973c2be1 4// This file is part of Open CASCADE Technology software library.
b311480e 5//
d5f74e42 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
973c2be1 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.
b311480e 11//
973c2be1 12// Alternatively, this file may be used under the terms of Open CASCADE
13// commercial license or contractual agreement.
b311480e 14
7fd59977 15inline const Handle(V3d_Viewer)& AIS_InteractiveContext::CurrentViewer() const
16{
17 return myMainVwr;
18}
19
7fd59977 20inline Quantity_NameOfColor AIS_InteractiveContext::HilightColor() const
21{
22 return myHilightColor;
23}
24
25inline Quantity_NameOfColor AIS_InteractiveContext::SelectionColor() const
26{
27 return mySelectionColor;
28}
29
30inline Quantity_NameOfColor AIS_InteractiveContext::PreSelectionColor() const
31{
32 return myPreselectionColor;
33}
34
35inline Quantity_NameOfColor AIS_InteractiveContext::DefaultColor() const
36{ return myDefaultColor;
37}
7fd59977 38
39inline Quantity_NameOfColor AIS_InteractiveContext::SubIntensityColor() const
40{
41 return mySubIntensity;
42}
43inline void AIS_InteractiveContext::SetHilightColor(const Quantity_NameOfColor aHiCol)
44{
45 myHilightColor = aHiCol;
46}
47
48inline void AIS_InteractiveContext::SelectionColor(const Quantity_NameOfColor aCol)
49{
50 mySelectionColor = aCol;
51}
52
53inline void AIS_InteractiveContext::SetPreselectionColor(const Quantity_NameOfColor aCol)
54{
55 myPreselectionColor = aCol;
56}
57
58inline void AIS_InteractiveContext::SetSubIntensityColor(const Quantity_NameOfColor aCol)
59{
60 mySubIntensity = aCol;
61}
62
63inline Standard_Integer AIS_InteractiveContext::DisplayMode() const
64{
65 return myDisplayMode;
66}
67
68inline const Handle(Prs3d_Drawer)& AIS_InteractiveContext::DefaultDrawer() const
69{return myDefaultDrawer;}
70inline const Handle(SelectMgr_SelectionManager)& AIS_InteractiveContext::SelectionManager() const
71{return mgrSelector ;}
72
73inline const Handle(PrsMgr_PresentationManager3d)& AIS_InteractiveContext::MainPrsMgr() const
74{return myMainPM ;}
75
7fd59977 76inline Standard_Boolean AIS_InteractiveContext::HasOpenedContext() const
77{return myCurLocalIndex != 0;}
78
1bd2fa67
A
79inline Handle_AIS_LocalContext AIS_InteractiveContext::LocalContext() const
80{ return (myCurLocalIndex > 0) ? myLocalContexts(myCurLocalIndex) : NULL; }
81
7fd59977 82inline const TCollection_AsciiString& AIS_InteractiveContext::CurrentName() const
83{return myCurrentName;}
84
85inline Standard_Boolean AIS_InteractiveContext::WasCurrentTouched() const
86{return myCurrentTouched;}
87
88inline void AIS_InteractiveContext::SetOkCurrent()
89{myCurrentTouched= Standard_False;}
90
91
92inline const Handle(StdSelect_ViewerSelector3d)& AIS_InteractiveContext::MainSelector() const
93{return myMainSel;}
94
7fd59977 95inline void AIS_InteractiveContext::SetToHilightSelected(const Standard_Boolean toHilight)
96{
97 myToHilightSelected = toHilight;
98}
99
100inline 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