Commit | Line | Data |
---|---|---|
b311480e | 1 | // Copyright (c) 1998-1999 Matra Datavision |
2 | // Copyright (c) 1999-2012 OPEN CASCADE SAS | |
3 | // | |
4 | // The content of this file is subject to the Open CASCADE Technology Public | |
5 | // License Version 6.5 (the "License"). You may not use the content of this file | |
6 | // except in compliance with the License. Please obtain a copy of the License | |
7 | // at http://www.opencascade.org and read it completely before using this file. | |
8 | // | |
9 | // The Initial Developer of the Original Code is Open CASCADE S.A.S., having its | |
10 | // main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France. | |
11 | // | |
12 | // The Original Code and all software distributed under the License is | |
13 | // distributed on an "AS IS" basis, without warranty of any kind, and the | |
14 | // Initial Developer hereby disclaims all such warranties, including without | |
15 | // limitation, any warranties of merchantability, fitness for a particular | |
16 | // purpose or non-infringement. Please see the License for the specific terms | |
17 | // and conditions governing the rights and limitations under the License. | |
18 | ||
7fd59977 | 19 | inline const Handle(V3d_Viewer)& AIS_InteractiveContext::CurrentViewer() const |
20 | { | |
21 | return myMainVwr; | |
22 | } | |
23 | ||
24 | inline const Handle(V3d_Viewer)& AIS_InteractiveContext::Collector() const | |
25 | { | |
26 | return myCollectorVwr; | |
27 | } | |
28 | ||
29 | inline Quantity_NameOfColor AIS_InteractiveContext::HilightColor() const | |
30 | { | |
31 | return myHilightColor; | |
32 | } | |
33 | ||
34 | inline Quantity_NameOfColor AIS_InteractiveContext::SelectionColor() const | |
35 | { | |
36 | return mySelectionColor; | |
37 | } | |
38 | ||
39 | inline Quantity_NameOfColor AIS_InteractiveContext::PreSelectionColor() const | |
40 | { | |
41 | return myPreselectionColor; | |
42 | } | |
43 | ||
44 | inline Quantity_NameOfColor AIS_InteractiveContext::DefaultColor() const | |
45 | { return myDefaultColor; | |
46 | } | |
47 | inline Standard_Boolean AIS_InteractiveContext::IsCollectorClosed() const | |
48 | {return myIsCollClosed;} | |
49 | ||
50 | inline void AIS_InteractiveContext::CloseCollector() | |
51 | {myIsCollClosed = Standard_True;} | |
52 | ||
53 | ||
54 | inline Quantity_NameOfColor AIS_InteractiveContext::SubIntensityColor() const | |
55 | { | |
56 | return mySubIntensity; | |
57 | } | |
58 | inline void AIS_InteractiveContext::SetHilightColor(const Quantity_NameOfColor aHiCol) | |
59 | { | |
60 | myHilightColor = aHiCol; | |
61 | } | |
62 | ||
63 | inline void AIS_InteractiveContext::SelectionColor(const Quantity_NameOfColor aCol) | |
64 | { | |
65 | mySelectionColor = aCol; | |
66 | } | |
67 | ||
68 | inline void AIS_InteractiveContext::SetPreselectionColor(const Quantity_NameOfColor aCol) | |
69 | { | |
70 | myPreselectionColor = aCol; | |
71 | } | |
72 | ||
73 | inline void AIS_InteractiveContext::SetSubIntensityColor(const Quantity_NameOfColor aCol) | |
74 | { | |
75 | mySubIntensity = aCol; | |
76 | } | |
77 | ||
78 | inline Standard_Integer AIS_InteractiveContext::DisplayMode() const | |
79 | { | |
80 | return myDisplayMode; | |
81 | } | |
82 | ||
83 | inline const Handle(Prs3d_Drawer)& AIS_InteractiveContext::DefaultDrawer() const | |
84 | {return myDefaultDrawer;} | |
85 | inline const Handle(SelectMgr_SelectionManager)& AIS_InteractiveContext::SelectionManager() const | |
86 | {return mgrSelector ;} | |
87 | ||
88 | inline const Handle(PrsMgr_PresentationManager3d)& AIS_InteractiveContext::MainPrsMgr() const | |
89 | {return myMainPM ;} | |
90 | ||
91 | inline const Handle(PrsMgr_PresentationManager3d)& AIS_InteractiveContext::CollectorPrsMgr() const | |
92 | {return myCollectorPM ;} | |
93 | ||
94 | ||
95 | inline Standard_Boolean AIS_InteractiveContext::HasOpenedContext() const | |
96 | {return myCurLocalIndex != 0;} | |
97 | ||
1bd2fa67 A |
98 | inline Handle_AIS_LocalContext AIS_InteractiveContext::LocalContext() const |
99 | { return (myCurLocalIndex > 0) ? myLocalContexts(myCurLocalIndex) : NULL; } | |
100 | ||
7fd59977 | 101 | inline const TCollection_AsciiString& AIS_InteractiveContext::CurrentName() const |
102 | {return myCurrentName;} | |
103 | ||
104 | inline Standard_Boolean AIS_InteractiveContext::WasCurrentTouched() const | |
105 | {return myCurrentTouched;} | |
106 | ||
107 | inline void AIS_InteractiveContext::SetOkCurrent() | |
108 | {myCurrentTouched= Standard_False;} | |
109 | ||
110 | ||
111 | inline const Handle(StdSelect_ViewerSelector3d)& AIS_InteractiveContext::MainSelector() const | |
112 | {return myMainSel;} | |
113 | ||
114 | inline const Handle(StdSelect_ViewerSelector3d)& AIS_InteractiveContext::CollectorSelector() const | |
115 | {return myCollectorSel;} | |
116 | ||
117 | inline void AIS_InteractiveContext::SetToHilightSelected(const Standard_Boolean toHilight) | |
118 | { | |
119 | myToHilightSelected = toHilight; | |
120 | } | |
121 | ||
122 | inline Standard_Boolean AIS_InteractiveContext::ToHilightSelected() const | |
123 | { | |
124 | return myToHilightSelected; | |
125 | } | |
126 | ||
127 | ||
128 | ||
129 | ||
130 | ||
131 | ||
132 | ||
133 | ||
134 | ||
135 | ||
136 | ||
137 | ||
138 | ||
139 |