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 Quantity_NameOfColor AIS_InteractiveContext::HilightColor() const
26 return myHilightColor;
29 inline Quantity_NameOfColor AIS_InteractiveContext::SelectionColor() const
31 return mySelectionColor;
34 inline Quantity_NameOfColor AIS_InteractiveContext::PreSelectionColor() const
36 return myPreselectionColor;
39 inline Quantity_NameOfColor AIS_InteractiveContext::DefaultColor() const
40 { return myDefaultColor;
43 inline Quantity_NameOfColor AIS_InteractiveContext::SubIntensityColor() const
45 return mySubIntensity;
47 inline void AIS_InteractiveContext::SetHilightColor(const Quantity_NameOfColor aHiCol)
49 myHilightColor = aHiCol;
52 inline void AIS_InteractiveContext::SelectionColor(const Quantity_NameOfColor aCol)
54 mySelectionColor = aCol;
57 inline void AIS_InteractiveContext::SetPreselectionColor(const Quantity_NameOfColor aCol)
59 myPreselectionColor = aCol;
62 inline void AIS_InteractiveContext::SetSubIntensityColor(const Quantity_NameOfColor aCol)
64 mySubIntensity = aCol;
67 inline Standard_Integer AIS_InteractiveContext::DisplayMode() const
72 inline const Handle(Prs3d_Drawer)& AIS_InteractiveContext::DefaultDrawer() const
73 {return myDefaultDrawer;}
74 inline const Handle(SelectMgr_SelectionManager)& AIS_InteractiveContext::SelectionManager() const
75 {return mgrSelector ;}
77 inline const Handle(PrsMgr_PresentationManager3d)& AIS_InteractiveContext::MainPrsMgr() const
80 inline Standard_Boolean AIS_InteractiveContext::HasOpenedContext() const
81 {return myCurLocalIndex != 0;}
83 inline Handle_AIS_LocalContext AIS_InteractiveContext::LocalContext() const
84 { return (myCurLocalIndex > 0) ? myLocalContexts(myCurLocalIndex) : NULL; }
86 inline const TCollection_AsciiString& AIS_InteractiveContext::CurrentName() const
87 {return myCurrentName;}
89 inline Standard_Boolean AIS_InteractiveContext::WasCurrentTouched() const
90 {return myCurrentTouched;}
92 inline void AIS_InteractiveContext::SetOkCurrent()
93 {myCurrentTouched= Standard_False;}
96 inline const Handle(StdSelect_ViewerSelector3d)& AIS_InteractiveContext::MainSelector() const
99 inline void AIS_InteractiveContext::SetToHilightSelected(const Standard_Boolean toHilight)
101 myToHilightSelected = toHilight;
104 inline Standard_Boolean AIS_InteractiveContext::ToHilightSelected() const
106 return myToHilightSelected;