0024166: Unable to create file with "Save" menu of voxeldemo Qt sample
[occt.git] / src / AIS / AIS_InteractiveContext.lxx
CommitLineData
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 19inline const Handle(V3d_Viewer)& AIS_InteractiveContext::CurrentViewer() const
20{
21 return myMainVwr;
22}
23
7fd59977 24inline Quantity_NameOfColor AIS_InteractiveContext::HilightColor() const
25{
26 return myHilightColor;
27}
28
29inline Quantity_NameOfColor AIS_InteractiveContext::SelectionColor() const
30{
31 return mySelectionColor;
32}
33
34inline Quantity_NameOfColor AIS_InteractiveContext::PreSelectionColor() const
35{
36 return myPreselectionColor;
37}
38
39inline Quantity_NameOfColor AIS_InteractiveContext::DefaultColor() const
40{ return myDefaultColor;
41}
7fd59977 42
43inline Quantity_NameOfColor AIS_InteractiveContext::SubIntensityColor() const
44{
45 return mySubIntensity;
46}
47inline void AIS_InteractiveContext::SetHilightColor(const Quantity_NameOfColor aHiCol)
48{
49 myHilightColor = aHiCol;
50}
51
52inline void AIS_InteractiveContext::SelectionColor(const Quantity_NameOfColor aCol)
53{
54 mySelectionColor = aCol;
55}
56
57inline void AIS_InteractiveContext::SetPreselectionColor(const Quantity_NameOfColor aCol)
58{
59 myPreselectionColor = aCol;
60}
61
62inline void AIS_InteractiveContext::SetSubIntensityColor(const Quantity_NameOfColor aCol)
63{
64 mySubIntensity = aCol;
65}
66
67inline Standard_Integer AIS_InteractiveContext::DisplayMode() const
68{
69 return myDisplayMode;
70}
71
72inline const Handle(Prs3d_Drawer)& AIS_InteractiveContext::DefaultDrawer() const
73{return myDefaultDrawer;}
74inline const Handle(SelectMgr_SelectionManager)& AIS_InteractiveContext::SelectionManager() const
75{return mgrSelector ;}
76
77inline const Handle(PrsMgr_PresentationManager3d)& AIS_InteractiveContext::MainPrsMgr() const
78{return myMainPM ;}
79
7fd59977 80inline Standard_Boolean AIS_InteractiveContext::HasOpenedContext() const
81{return myCurLocalIndex != 0;}
82
1bd2fa67
A
83inline Handle_AIS_LocalContext AIS_InteractiveContext::LocalContext() const
84{ return (myCurLocalIndex > 0) ? myLocalContexts(myCurLocalIndex) : NULL; }
85
7fd59977 86inline const TCollection_AsciiString& AIS_InteractiveContext::CurrentName() const
87{return myCurrentName;}
88
89inline Standard_Boolean AIS_InteractiveContext::WasCurrentTouched() const
90{return myCurrentTouched;}
91
92inline void AIS_InteractiveContext::SetOkCurrent()
93{myCurrentTouched= Standard_False;}
94
95
96inline const Handle(StdSelect_ViewerSelector3d)& AIS_InteractiveContext::MainSelector() const
97{return myMainSel;}
98
7fd59977 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