Commit | Line | Data |
---|---|---|
b311480e | 1 | // Copyright (c) 1998-1999 Matra Datavision |
973c2be1 | 2 | // Copyright (c) 1999-2014 OPEN CASCADE SAS |
b311480e | 3 | // |
973c2be1 | 4 | // This file is part of Open CASCADE Technology software library. |
b311480e | 5 | // |
d5f74e42 | 6 | // This library is free software; you can redistribute it and/or modify it under |
7 | // the terms of the GNU Lesser General Public License version 2.1 as published | |
973c2be1 | 8 | // by the Free Software Foundation, with special exception defined in the file |
9 | // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT | |
10 | // distribution for complete text of the license and disclaimer of any warranty. | |
b311480e | 11 | // |
973c2be1 | 12 | // Alternatively, this file may be used under the terms of Open CASCADE |
13 | // commercial license or contractual agreement. | |
b311480e | 14 | |
7fd59977 | 15 | inline const Handle(V3d_Viewer)& AIS_InteractiveContext::CurrentViewer() const |
16 | { | |
17 | return myMainVwr; | |
18 | } | |
19 | ||
7fd59977 | 20 | inline Quantity_NameOfColor AIS_InteractiveContext::HilightColor() const |
21 | { | |
22 | return myHilightColor; | |
23 | } | |
24 | ||
25 | inline Quantity_NameOfColor AIS_InteractiveContext::SelectionColor() const | |
26 | { | |
27 | return mySelectionColor; | |
28 | } | |
29 | ||
30 | inline Quantity_NameOfColor AIS_InteractiveContext::PreSelectionColor() const | |
31 | { | |
32 | return myPreselectionColor; | |
33 | } | |
34 | ||
35 | inline Quantity_NameOfColor AIS_InteractiveContext::DefaultColor() const | |
36 | { return myDefaultColor; | |
37 | } | |
7fd59977 | 38 | |
39 | inline Quantity_NameOfColor AIS_InteractiveContext::SubIntensityColor() const | |
40 | { | |
41 | return mySubIntensity; | |
42 | } | |
43 | inline void AIS_InteractiveContext::SetHilightColor(const Quantity_NameOfColor aHiCol) | |
44 | { | |
45 | myHilightColor = aHiCol; | |
46 | } | |
47 | ||
48 | inline void AIS_InteractiveContext::SelectionColor(const Quantity_NameOfColor aCol) | |
49 | { | |
50 | mySelectionColor = aCol; | |
51 | } | |
52 | ||
53 | inline void AIS_InteractiveContext::SetPreselectionColor(const Quantity_NameOfColor aCol) | |
54 | { | |
55 | myPreselectionColor = aCol; | |
56 | } | |
57 | ||
58 | inline void AIS_InteractiveContext::SetSubIntensityColor(const Quantity_NameOfColor aCol) | |
59 | { | |
60 | mySubIntensity = aCol; | |
61 | } | |
62 | ||
63 | inline Standard_Integer AIS_InteractiveContext::DisplayMode() const | |
64 | { | |
65 | return myDisplayMode; | |
66 | } | |
67 | ||
68 | inline const Handle(Prs3d_Drawer)& AIS_InteractiveContext::DefaultDrawer() const | |
69 | {return myDefaultDrawer;} | |
70 | inline const Handle(SelectMgr_SelectionManager)& AIS_InteractiveContext::SelectionManager() const | |
71 | {return mgrSelector ;} | |
72 | ||
73 | inline const Handle(PrsMgr_PresentationManager3d)& AIS_InteractiveContext::MainPrsMgr() const | |
74 | {return myMainPM ;} | |
75 | ||
7fd59977 | 76 | inline Standard_Boolean AIS_InteractiveContext::HasOpenedContext() const |
77 | {return myCurLocalIndex != 0;} | |
78 | ||
857ffd5e | 79 | inline Handle(AIS_LocalContext) AIS_InteractiveContext::LocalContext() const |
1bd2fa67 A |
80 | { return (myCurLocalIndex > 0) ? myLocalContexts(myCurLocalIndex) : NULL; } |
81 | ||
7fd59977 | 82 | inline Standard_Boolean AIS_InteractiveContext::WasCurrentTouched() const |
83 | {return myCurrentTouched;} | |
84 | ||
85 | inline void AIS_InteractiveContext::SetOkCurrent() | |
86 | {myCurrentTouched= Standard_False;} | |
87 | ||
88 | ||
89 | inline const Handle(StdSelect_ViewerSelector3d)& AIS_InteractiveContext::MainSelector() const | |
90 | {return myMainSel;} | |
91 | ||
7fd59977 | 92 | inline void AIS_InteractiveContext::SetToHilightSelected(const Standard_Boolean toHilight) |
93 | { | |
94 | myToHilightSelected = toHilight; | |
95 | } | |
96 | ||
97 | inline Standard_Boolean AIS_InteractiveContext::ToHilightSelected() const | |
98 | { | |
99 | return myToHilightSelected; | |
100 | } | |
101 | ||
102 | ||
103 | ||
104 | ||
105 | ||
106 | ||
107 | ||
108 | ||
109 | ||
110 | ||
111 | ||
112 | ||
113 | ||
114 |