From: apo Date: Tue, 13 Sep 2005 04:06:14 +0000 (+0000) Subject: 1. Remove useless dependecies X-Git-Tag: BR-D5-38-2003_D2005-12-10~46 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e36d1072df77b9f50dddf2cdf9d851e2f18f206e;p=modules%2Fgui.git 1. Remove useless dependecies 2. Do not check HasObserver case (all this are doing in the parent vtjInteractorStyle class) --- diff --git a/src/SVTK/SVTK_InteractorStyle.cxx b/src/SVTK/SVTK_InteractorStyle.cxx index c9b2a9a7e..704e8d907 100644 --- a/src/SVTK/SVTK_InteractorStyle.cxx +++ b/src/SVTK/SVTK_InteractorStyle.cxx @@ -43,9 +43,6 @@ #include "SALOME_Actor.h" -#include "SALOME_ListIteratorOfListIO.hxx" -#include "SALOME_ListIO.hxx" - #include #include #include @@ -381,13 +378,8 @@ SVTK_InteractorStyle ::OnLeftButtonDown(int ctrl, int shift, int x, int y) { - if (this->HasObserver(vtkCommand::LeftButtonPressEvent)) { - this->InvokeEvent(vtkCommand::LeftButtonPressEvent,NULL); - return; - } - this->FindPokedRenderer(x, y); - if (GetCurrentRenderer() == NULL) + if(GetCurrentRenderer() == NULL) return; myShiftState = shift; @@ -433,14 +425,8 @@ SVTK_InteractorStyle int shift, int x, int y) { - if (this->HasObserver(vtkCommand::MiddleButtonPressEvent)) - { - this->InvokeEvent(vtkCommand::MiddleButtonPressEvent,NULL); - return; - } - this->FindPokedRenderer(x, y); - if (GetCurrentRenderer() == NULL) + if(GetCurrentRenderer() == NULL) return; myShiftState = shift; @@ -484,14 +470,8 @@ SVTK_InteractorStyle int shift, int x, int y) { - if (this->HasObserver(vtkCommand::RightButtonPressEvent)) - { - this->InvokeEvent(vtkCommand::RightButtonPressEvent,NULL); - return; - } - this->FindPokedRenderer(x, y); - if (GetCurrentRenderer() == NULL) + if(GetCurrentRenderer() == NULL) return; myShiftState = shift;