Salome HOME
*** empty log message ***
[modules/gui.git] / src / SVTK / SVTK_ViewWindow.cxx
index a7578a28dd3d2a5870c9c759ef3f6d3731a3643c..a6d58a5c20a5fec40c50433450464e8b2fda7be5 100755 (executable)
@@ -1,3 +1,4 @@
+#include "SVTK_Selector.h"
 #include "SALOME_Actor.h"
 
 #include <qapplication.h>
@@ -21,7 +22,6 @@
 #include "VTKViewer_Utilities.h"
 
 #include "SVTK_Trihedron.h"
-#include "SVTK_Selector.h"
 #include "SVTK_ViewWindow.h"
 #include "SVTK_ViewModel.h"
 #include "SVTK_RenderWindow.h"
@@ -73,13 +73,15 @@ SVTK_ViewWindow
   // Create an interactor.
   myRWInteractor = SVTK_RenderWindowInteractor::New();
   myRWInteractor->SetRenderWindow( myRenderWindow->getRenderWindow() );
+  myRWInteractor->setViewWindow( this );
 
   SVTK_InteractorStyle* RWS = SVTK_InteractorStyle::New();
   RWS->setGUIWindow( myRenderWindow );
   RWS->setViewWindow( this );
-  myRWInteractor->SetInteractorStyle( RWS ); 
 
+  myRWInteractor->SetInteractorStyle( RWS ); 
   myRWInteractor->Initialize();
+
   RWS->setTriedron( myTrihedron );
   RWS->FindPokedRenderer( 0, 0 );