From e36d1072df77b9f50dddf2cdf9d851e2f18f206e Mon Sep 17 00:00:00 2001 From: apo Date: Tue, 13 Sep 2005 04:06:14 +0000 Subject: [PATCH] 1. Remove useless dependecies 2. Do not check HasObserver case (all this are doing in the parent vtjInteractorStyle class) --- src/SVTK/SVTK_InteractorStyle.cxx | 26 +++----------------------- 1 file changed, 3 insertions(+), 23 deletions(-) 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; -- 2.39.2