[Repository Listing] / [Slicer4] / trunk / Modules / Loadable / Transforms / MRMLDM / vtkMRMLLinearTransformsDisplayableManager3D.cxx
 

Diff of /trunk/Modules/Loadable/Transforms/MRMLDM/vtkMRMLLinearTransformsDisplayableManager3D.cxx

Parent Directory Parent Directory Revision Log Revision Log View Patch Patch

revision 26371, Wed Feb 8 18:30:22 2017 UTC revision 26372, Wed Sep 13 21:43:31 2017 UTC
# Line 44  Line 44 
44  #include <vtkMatrix4x4.h>  #include <vtkMatrix4x4.h>
45  #include <vtkNew.h>  #include <vtkNew.h>
46  #include <vtkObjectFactory.h>  #include <vtkObjectFactory.h>
47    #include <vtkPickingManager.h>
48  #include <vtkRenderWindowInteractor.h>  #include <vtkRenderWindowInteractor.h>
49  #include <vtkRenderer.h>  #include <vtkRenderer.h>
50  #include <vtkSmartPointer.h>  #include <vtkSmartPointer.h>
# Line 267  void vtkMRMLLinearTransformsDisplayableM Line 268  void vtkMRMLLinearTransformsDisplayableM
268    pipeline->Widget->AddObserver(    pipeline->Widget->AddObserver(
269      vtkCommand::InteractionEvent, this->External->GetWidgetsCallbackCommand());      vtkCommand::InteractionEvent, this->External->GetWidgetsCallbackCommand());
270    
271      if (this->External->GetInteractor()->GetPickingManager())
272        {
273        if (!(this->External->GetInteractor()->GetPickingManager()->GetEnabled()))
274          {
275          // if the picking manager is not already turned on for this
276          // interactor, enable it
277          this->External->GetInteractor()->GetPickingManager()->EnabledOn();
278          }
279        }
280    
281    // Add actor / set renderers and cache    // Add actor / set renderers and cache
282    pipeline->Widget->SetInteractor(this->External->GetInteractor());    pipeline->Widget->SetInteractor(this->External->GetInteractor());
283    pipeline->Widget->SetCurrentRenderer(this->External->GetRenderer());    pipeline->Widget->SetCurrentRenderer(this->External->GetRenderer());

Legend:
Removed from v.26371  
changed lines
  Added in v.26372

  Subversion  TortoiseSVN  ViewVC