Commit 966a88de authored by Will Schroeder's avatar Will Schroeder
Browse files

STYLE:Documentation improvements

parent a8fa8dde
...@@ -20,12 +20,14 @@ ...@@ -20,12 +20,14 @@
#include "vtkInteractorObserver.h" #include "vtkInteractorObserver.h"
#include <vtkstd/map> #include <vtkstd/map>
vtkCxxRevisionMacro(vtkObserverMediator, "1.2"); vtkCxxRevisionMacro(vtkObserverMediator, "1.3");
vtkStandardNewMacro(vtkObserverMediator); vtkStandardNewMacro(vtkObserverMediator);
// PIMPL the map containing the observer priorities. Note that only observers who are // PIMPL the map representing the observer (key) to cursor request
// requesting non-default cursors are placed into the map. // (data). Note that only observers who are requesting non-default cursors
// Comparison functor based on observer priorities. // are placed into the map.
// Comparison functor based on observer priorities (for the purpose of sorting
// the cursor request in the map).
struct vtkObserverCompare struct vtkObserverCompare
{ {
bool operator()(vtkInteractorObserver* w1, vtkInteractorObserver* w2) const bool operator()(vtkInteractorObserver* w1, vtkInteractorObserver* w2) const
...@@ -115,7 +117,7 @@ int vtkObserverMediator::RequestCursorShape(vtkInteractorObserver *w, int reques ...@@ -115,7 +117,7 @@ int vtkObserverMediator::RequestCursorShape(vtkInteractorObserver *w, int reques
if ( ! this->ObserverMap->empty() ) if ( ! this->ObserverMap->empty() )
{ {
iter = this->ObserverMap->end(); iter = this->ObserverMap->end();
--iter; --iter; //this is the observer with the highest priority
this->Interactor->GetRenderWindow()->SetCurrentCursor((*iter).second); this->Interactor->GetRenderWindow()->SetCurrentCursor((*iter).second);
this->CurrentObserver = w; this->CurrentObserver = w;
this->CurrentCursorShape = (*iter).second; this->CurrentCursorShape = (*iter).second;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment