1 // Copyright (c) 1998-1999 Matra Datavision
2 // Copyright (c) 1999-2012 OPEN CASCADE SAS
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.
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.
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.
19 inline const Handle(V3d_Viewer)& AIS_InteractiveContext::CurrentViewer() const
24 inline const Handle(V3d_Viewer)& AIS_InteractiveContext::Collector() const
26 return myCollectorVwr;
29 inline Quantity_NameOfColor AIS_InteractiveContext::HilightColor() const
31 return myHilightColor;
34 inline Quantity_NameOfColor AIS_InteractiveContext::SelectionColor() const
36 return mySelectionColor;
39 inline Quantity_NameOfColor AIS_InteractiveContext::PreSelectionColor() const
41 return myPreselectionColor;
44 inline Quantity_NameOfColor AIS_InteractiveContext::DefaultColor() const
45 { return myDefaultColor;
47 inline Standard_Boolean AIS_InteractiveContext::IsCollectorClosed() const
48 {return myIsCollClosed;}
50 inline void AIS_InteractiveContext::CloseCollector()
51 {myIsCollClosed = Standard_True;}
54 inline Quantity_NameOfColor AIS_InteractiveContext::SubIntensityColor() const
56 return mySubIntensity;
58 inline void AIS_InteractiveContext::SetHilightColor(const Quantity_NameOfColor aHiCol)
60 myHilightColor = aHiCol;
63 inline void AIS_InteractiveContext::SelectionColor(const Quantity_NameOfColor aCol)
65 mySelectionColor = aCol;
68 inline void AIS_InteractiveContext::SetPreselectionColor(const Quantity_NameOfColor aCol)
70 myPreselectionColor = aCol;
73 inline void AIS_InteractiveContext::SetSubIntensityColor(const Quantity_NameOfColor aCol)
75 mySubIntensity = aCol;
78 inline Standard_Integer AIS_InteractiveContext::DisplayMode() const
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 ;}
88 inline const Handle(PrsMgr_PresentationManager3d)& AIS_InteractiveContext::MainPrsMgr() const
91 inline const Handle(PrsMgr_PresentationManager3d)& AIS_InteractiveContext::CollectorPrsMgr() const
92 {return myCollectorPM ;}
95 inline Standard_Boolean AIS_InteractiveContext::HasOpenedContext() const
96 {return myCurLocalIndex != 0;}
98 inline Handle_AIS_LocalContext AIS_InteractiveContext::LocalContext() const
99 { return (myCurLocalIndex > 0) ? myLocalContexts(myCurLocalIndex) : NULL; }
101 inline const TCollection_AsciiString& AIS_InteractiveContext::CurrentName() const
102 {return myCurrentName;}
104 inline Standard_Boolean AIS_InteractiveContext::WasCurrentTouched() const
105 {return myCurrentTouched;}
107 inline void AIS_InteractiveContext::SetOkCurrent()
108 {myCurrentTouched= Standard_False;}
111 inline const Handle(StdSelect_ViewerSelector3d)& AIS_InteractiveContext::MainSelector() const
114 inline const Handle(StdSelect_ViewerSelector3d)& AIS_InteractiveContext::CollectorSelector() const
115 {return myCollectorSel;}
117 inline void AIS_InteractiveContext::SetToHilightSelected(const Standard_Boolean toHilight)
119 myToHilightSelected = toHilight;
122 inline Standard_Boolean AIS_InteractiveContext::ToHilightSelected() const
124 return myToHilightSelected;