OCC22143 Optimization of memory usage and developing tools for catching memory leaks...
[occt.git] / src / AIS / AIS_InteractiveContext.lxx
CommitLineData
7fd59977 1inline const Handle(V3d_Viewer)& AIS_InteractiveContext::CurrentViewer() const
2{
3 return myMainVwr;
4}
5
6inline const Handle(V3d_Viewer)& AIS_InteractiveContext::Collector() const
7{
8 return myCollectorVwr;
9}
10
11inline Quantity_NameOfColor AIS_InteractiveContext::HilightColor() const
12{
13 return myHilightColor;
14}
15
16inline Quantity_NameOfColor AIS_InteractiveContext::SelectionColor() const
17{
18 return mySelectionColor;
19}
20
21inline Quantity_NameOfColor AIS_InteractiveContext::PreSelectionColor() const
22{
23 return myPreselectionColor;
24}
25
26inline Quantity_NameOfColor AIS_InteractiveContext::DefaultColor() const
27{ return myDefaultColor;
28}
29inline Standard_Boolean AIS_InteractiveContext::IsCollectorClosed() const
30{return myIsCollClosed;}
31
32inline void AIS_InteractiveContext::CloseCollector()
33{myIsCollClosed = Standard_True;}
34
35
36inline Quantity_NameOfColor AIS_InteractiveContext::SubIntensityColor() const
37{
38 return mySubIntensity;
39}
40inline void AIS_InteractiveContext::SetHilightColor(const Quantity_NameOfColor aHiCol)
41{
42 myHilightColor = aHiCol;
43}
44
45inline void AIS_InteractiveContext::SelectionColor(const Quantity_NameOfColor aCol)
46{
47 mySelectionColor = aCol;
48}
49
50inline void AIS_InteractiveContext::SetPreselectionColor(const Quantity_NameOfColor aCol)
51{
52 myPreselectionColor = aCol;
53}
54
55inline void AIS_InteractiveContext::SetSubIntensityColor(const Quantity_NameOfColor aCol)
56{
57 mySubIntensity = aCol;
58}
59
60inline Standard_Integer AIS_InteractiveContext::DisplayMode() const
61{
62 return myDisplayMode;
63}
64
65inline const Handle(Prs3d_Drawer)& AIS_InteractiveContext::DefaultDrawer() const
66{return myDefaultDrawer;}
67inline const Handle(SelectMgr_SelectionManager)& AIS_InteractiveContext::SelectionManager() const
68{return mgrSelector ;}
69
70inline const Handle(PrsMgr_PresentationManager3d)& AIS_InteractiveContext::MainPrsMgr() const
71{return myMainPM ;}
72
73inline const Handle(PrsMgr_PresentationManager3d)& AIS_InteractiveContext::CollectorPrsMgr() const
74{return myCollectorPM ;}
75
76
77inline Standard_Boolean AIS_InteractiveContext::HasOpenedContext() const
78{return myCurLocalIndex != 0;}
79
80inline const TCollection_AsciiString& AIS_InteractiveContext::CurrentName() const
81{return myCurrentName;}
82
83inline Standard_Boolean AIS_InteractiveContext::WasCurrentTouched() const
84{return myCurrentTouched;}
85
86inline void AIS_InteractiveContext::SetOkCurrent()
87{myCurrentTouched= Standard_False;}
88
89
90inline const Handle(StdSelect_ViewerSelector3d)& AIS_InteractiveContext::MainSelector() const
91{return myMainSel;}
92
93inline const Handle(StdSelect_ViewerSelector3d)& AIS_InteractiveContext::CollectorSelector() const
94{return myCollectorSel;}
95
96inline void AIS_InteractiveContext::SetToHilightSelected(const Standard_Boolean toHilight)
97{
98 myToHilightSelected = toHilight;
99}
100
101inline Standard_Boolean AIS_InteractiveContext::ToHilightSelected() const
102{
103 return myToHilightSelected;
104}
105
106
107
108
109
110
111
112
113
114
115
116
117
118