Commit | Line | Data |
---|---|---|
7fd59977 | 1 | inline const Handle(V3d_Viewer)& AIS_InteractiveContext::CurrentViewer() const |
2 | { | |
3 | return myMainVwr; | |
4 | } | |
5 | ||
6 | inline const Handle(V3d_Viewer)& AIS_InteractiveContext::Collector() const | |
7 | { | |
8 | return myCollectorVwr; | |
9 | } | |
10 | ||
11 | inline Quantity_NameOfColor AIS_InteractiveContext::HilightColor() const | |
12 | { | |
13 | return myHilightColor; | |
14 | } | |
15 | ||
16 | inline Quantity_NameOfColor AIS_InteractiveContext::SelectionColor() const | |
17 | { | |
18 | return mySelectionColor; | |
19 | } | |
20 | ||
21 | inline Quantity_NameOfColor AIS_InteractiveContext::PreSelectionColor() const | |
22 | { | |
23 | return myPreselectionColor; | |
24 | } | |
25 | ||
26 | inline Quantity_NameOfColor AIS_InteractiveContext::DefaultColor() const | |
27 | { return myDefaultColor; | |
28 | } | |
29 | inline Standard_Boolean AIS_InteractiveContext::IsCollectorClosed() const | |
30 | {return myIsCollClosed;} | |
31 | ||
32 | inline void AIS_InteractiveContext::CloseCollector() | |
33 | {myIsCollClosed = Standard_True;} | |
34 | ||
35 | ||
36 | inline Quantity_NameOfColor AIS_InteractiveContext::SubIntensityColor() const | |
37 | { | |
38 | return mySubIntensity; | |
39 | } | |
40 | inline void AIS_InteractiveContext::SetHilightColor(const Quantity_NameOfColor aHiCol) | |
41 | { | |
42 | myHilightColor = aHiCol; | |
43 | } | |
44 | ||
45 | inline void AIS_InteractiveContext::SelectionColor(const Quantity_NameOfColor aCol) | |
46 | { | |
47 | mySelectionColor = aCol; | |
48 | } | |
49 | ||
50 | inline void AIS_InteractiveContext::SetPreselectionColor(const Quantity_NameOfColor aCol) | |
51 | { | |
52 | myPreselectionColor = aCol; | |
53 | } | |
54 | ||
55 | inline void AIS_InteractiveContext::SetSubIntensityColor(const Quantity_NameOfColor aCol) | |
56 | { | |
57 | mySubIntensity = aCol; | |
58 | } | |
59 | ||
60 | inline Standard_Integer AIS_InteractiveContext::DisplayMode() const | |
61 | { | |
62 | return myDisplayMode; | |
63 | } | |
64 | ||
65 | inline const Handle(Prs3d_Drawer)& AIS_InteractiveContext::DefaultDrawer() const | |
66 | {return myDefaultDrawer;} | |
67 | inline const Handle(SelectMgr_SelectionManager)& AIS_InteractiveContext::SelectionManager() const | |
68 | {return mgrSelector ;} | |
69 | ||
70 | inline const Handle(PrsMgr_PresentationManager3d)& AIS_InteractiveContext::MainPrsMgr() const | |
71 | {return myMainPM ;} | |
72 | ||
73 | inline const Handle(PrsMgr_PresentationManager3d)& AIS_InteractiveContext::CollectorPrsMgr() const | |
74 | {return myCollectorPM ;} | |
75 | ||
76 | ||
77 | inline Standard_Boolean AIS_InteractiveContext::HasOpenedContext() const | |
78 | {return myCurLocalIndex != 0;} | |
79 | ||
1bd2fa67 A |
80 | inline Handle_AIS_LocalContext AIS_InteractiveContext::LocalContext() const |
81 | { return (myCurLocalIndex > 0) ? myLocalContexts(myCurLocalIndex) : NULL; } | |
82 | ||
7fd59977 | 83 | inline const TCollection_AsciiString& AIS_InteractiveContext::CurrentName() const |
84 | {return myCurrentName;} | |
85 | ||
86 | inline Standard_Boolean AIS_InteractiveContext::WasCurrentTouched() const | |
87 | {return myCurrentTouched;} | |
88 | ||
89 | inline void AIS_InteractiveContext::SetOkCurrent() | |
90 | {myCurrentTouched= Standard_False;} | |
91 | ||
92 | ||
93 | inline const Handle(StdSelect_ViewerSelector3d)& AIS_InteractiveContext::MainSelector() const | |
94 | {return myMainSel;} | |
95 | ||
96 | inline const Handle(StdSelect_ViewerSelector3d)& AIS_InteractiveContext::CollectorSelector() const | |
97 | {return myCollectorSel;} | |
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 |