0022627: Change OCCT memory management defaults
[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
1bd2fa67
A
80inline Handle_AIS_LocalContext AIS_InteractiveContext::LocalContext() const
81{ return (myCurLocalIndex > 0) ? myLocalContexts(myCurLocalIndex) : NULL; }
82
7fd59977 83inline const TCollection_AsciiString& AIS_InteractiveContext::CurrentName() const
84{return myCurrentName;}
85
86inline Standard_Boolean AIS_InteractiveContext::WasCurrentTouched() const
87{return myCurrentTouched;}
88
89inline void AIS_InteractiveContext::SetOkCurrent()
90{myCurrentTouched= Standard_False;}
91
92
93inline const Handle(StdSelect_ViewerSelector3d)& AIS_InteractiveContext::MainSelector() const
94{return myMainSel;}
95
96inline const Handle(StdSelect_ViewerSelector3d)& AIS_InteractiveContext::CollectorSelector() const
97{return myCollectorSel;}
98
99inline void AIS_InteractiveContext::SetToHilightSelected(const Standard_Boolean toHilight)
100{
101 myToHilightSelected = toHilight;
102}
103
104inline 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