Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Christian Butz
VTK
Commits
966a88de
Commit
966a88de
authored
Dec 28, 2005
by
Will Schroeder
Browse files
STYLE:Documentation improvements
parent
a8fa8dde
Changes
1
Hide whitespace changes
Inline
Side-by-side
Rendering/vtkObserverMediator.cxx
View file @
966a88de
...
...
@@ -20,12 +20,14 @@
#include
"vtkInteractorObserver.h"
#include
<vtkstd/map>
vtkCxxRevisionMacro
(
vtkObserverMediator
,
"1.
2
"
);
vtkCxxRevisionMacro
(
vtkObserverMediator
,
"1.
3
"
);
vtkStandardNewMacro
(
vtkObserverMediator
);
// PIMPL the map containing the observer priorities. Note that only observers who are
// requesting non-default cursors are placed into the map.
// Comparison functor based on observer priorities.
// PIMPL the map representing the observer (key) to cursor request
// (data). Note that only observers who are requesting non-default cursors
// are placed into the map.
// Comparison functor based on observer priorities (for the purpose of sorting
// the cursor request in the map).
struct
vtkObserverCompare
{
bool
operator
()(
vtkInteractorObserver
*
w1
,
vtkInteractorObserver
*
w2
)
const
...
...
@@ -115,7 +117,7 @@ int vtkObserverMediator::RequestCursorShape(vtkInteractorObserver *w, int reques
if
(
!
this
->
ObserverMap
->
empty
()
)
{
iter
=
this
->
ObserverMap
->
end
();
--
iter
;
--
iter
;
//this is the observer with the highest priority
this
->
Interactor
->
GetRenderWindow
()
->
SetCurrentCursor
((
*
iter
).
second
);
this
->
CurrentObserver
=
w
;
this
->
CurrentCursorShape
=
(
*
iter
).
second
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment