]> Creatis software - creaContours.git/commitdiff
ok
authorEduardo Davila <Eduardo.Davila@creatis.insa-lyon.fr>
Thu, 23 Apr 2009 16:04:02 +0000 (16:04 +0000)
committerEduardo Davila <Eduardo.Davila@creatis.insa-lyon.fr>
Thu, 23 Apr 2009 16:04:02 +0000 (16:04 +0000)
appli/wxContourGUIExample/wxContourGUIExample.cxx
lib/Interface_ManagerContour_NDimensions/wxVtkBaseView_SceneManager.cxx

index 399080797331edf6526afc3641686990baaf6bd9..abfe141cd044541bd4a006b8f526192b39dd9368 100644 (file)
@@ -7,7 +7,7 @@
 //#include "OutlineModelManager.h"
 //#include "wxContourEventHandler.h"
 
-
 #include <creaImageIOWxGimmickDialog.h>
 
 #include <creaVtkBasicSlicer.h>
index 589ed818c27d62172a0be7784de50ae982482e21..415c69d924ec4bcf21f938815cf8a0c41c588306 100644 (file)
@@ -583,7 +583,7 @@ DEFINE_EVENT_TYPE( wxEVT_CHANGED_DEEP )
                int size = _workingGroup->size();
                for ( int i = 0; i<size; i++ )
                {
-                       manualViewBaseContour * viewer = iter->second->getViewer();
+//EED???                       manualViewBaseContour * viewer = iter->second->getViewer();
                        selectedObjects.push_back( iter->first);        
 
                        iter++;
@@ -594,8 +594,8 @@ DEFINE_EVENT_TYPE( wxEVT_CHANGED_DEEP )
        void wxVtkBaseView_SceneManager :: selectObjects( std::vector< std::string > theExistingObjectsToSelect )
        {
                std::map <std::string, ContourWrap_ViewControl *>::iterator iter = _contours_ViewControl->begin(); 
-               int size = _contours_ViewControl->size();       
-               bool selected;
+//EED???               int size = _contours_ViewControl->size();       
+//EED???               bool selected;
                /*for ( int i = 0; i<size; i++ )
                {
                        selected = false;
@@ -750,7 +750,7 @@ DEFINE_EVENT_TYPE( wxEVT_CHANGED_DEEP )
                _wxVTKiren->GetEventPosition( X , Y );
 
                bool ctrlKey = _vtkInteractorStyleBaseView->GetInteractor()->GetControlKey() == 1;
-               bool shiftKey = _vtkInteractorStyleBaseView->GetInteractor()->GetShiftKey() == 1;
+//???          bool shiftKey = _vtkInteractorStyleBaseView->GetInteractor()->GetShiftKey() == 1;
 
                if( _waiting && !ctrlKey )
                {
@@ -787,7 +787,7 @@ DEFINE_EVENT_TYPE( wxEVT_CHANGED_DEEP )
                        {
                                //Multiple moving
                                
-                               bool ckecking = false;
+//EED???                               bool ckecking = false;
                                for( i =0; i<size ; i++ ) 
                                {
                                        control = iter->second->getControler();
@@ -873,12 +873,12 @@ DEFINE_EVENT_TYPE( wxEVT_CHANGED_DEEP )
                fclose(ff);*/
 
 
-               char aa = _vtkInteractorStyleBaseView->GetInteractor()->GetKeyCode();
+//EED???               char aa = _vtkInteractorStyleBaseView->GetInteractor()->GetKeyCode();
                bool condition = false;  
                //vtkCommand * theComand = _wxVtk_BaseView ->GetInteractorStyleBaseView()->GetCommand(
-               vtkRenderWindowInteractor               * vtkRWInteractor1      = _wxVtk_BaseView ->GetWxVTKRenderWindowInteractor(); 
-               wxVTKRenderWindowInteractor             * vtkRWInteractor2      = _wxVtk_BaseView ->GetWxVTKRenderWindowInteractor();//GetInteractorStyleBaseView()->GetInteractor();
-               wxVTKRenderWindowInteractorPlus * vtkRWInteractor3      = (wxVTKRenderWindowInteractorPlus*)_wxVtk_BaseView ->GetWxVTKRenderWindowInteractor();//GetInteractorStyleBaseView()->GetInteractor();
+//EED???               vtkRenderWindowInteractor               * vtkRWInteractor1      = _wxVtk_BaseView ->GetWxVTKRenderWindowInteractor(); 
+//EED???               wxVTKRenderWindowInteractor             * vtkRWInteractor2      = _wxVtk_BaseView ->GetWxVTKRenderWindowInteractor();//GetInteractorStyleBaseView()->GetInteractor();
+//EED??                wxVTKRenderWindowInteractorPlus * vtkRWInteractor3      = (wxVTKRenderWindowInteractorPlus*)_wxVtk_BaseView ->GetWxVTKRenderWindowInteractor();//GetInteractorStyleBaseView()->GetInteractor();
                vtkRenderWindowInteractor               * vtkRWInteractor       = _vtkInteractorStyleBaseView->GetInteractor();
                
                bool ctrlKey = vtkRWInteractor->GetControlKey() == 1;
@@ -965,8 +965,8 @@ DEFINE_EVENT_TYPE( wxEVT_CHANGED_DEEP )
        bool  wxVtkBaseView_SceneManager :: OnRightButtonDown()
        {
                bool condition = false; 
-               vtkRenderWindowInteractor * vtkRWInteractor = _vtkInteractorStyleBaseView->GetInteractor();
-               bool ctrlKey = vtkRWInteractor->GetControlKey() == 1;
+//EED???               vtkRenderWindowInteractor * vtkRWInteractor = _vtkInteractorStyleBaseView->GetInteractor();
+//EED???               bool ctrlKey = vtkRWInteractor->GetControlKey() == 1;
                _waiting = true; 
                
                condition = true;               
@@ -1017,9 +1017,9 @@ DEFINE_EVENT_TYPE( wxEVT_CHANGED_DEEP )
        bool  wxVtkBaseView_SceneManager :: OnRightDClick()
        { 
                bool condition = false;  condition = true; 
-               vtkRenderWindowInteractor * vtkRWInteractor = _vtkInteractorStyleBaseView->GetInteractor();
+//EED???               vtkRenderWindowInteractor * vtkRWInteractor = _vtkInteractorStyleBaseView->GetInteractor();
                /*vtkRenderWindowInteractor * vtkRWInteractor1 =*/ _vtkInteractorStyleBaseView->OnChar();
-               wxVTKRenderWindowInteractor * wxVtkRWInterator = _wxVtk_BaseView ->GetWxVTKRenderWindowInteractor();
+//EED???               wxVTKRenderWindowInteractor * wxVtkRWInterator = _wxVtk_BaseView ->GetWxVTKRenderWindowInteractor();
                
                /*if( _waiting )
                {
@@ -1125,7 +1125,7 @@ DEFINE_EVENT_TYPE( wxEVT_CHANGED_DEEP )
                int tmpPx,tmpPy;
                wxVTKRenderWindowInteractor *wxVTKiren = _vtkInteractorStyleBaseView->GetWxVtk2DBaseView()->GetWxVTKRenderWindowInteractor();
                wxVTKiren->GetEventPosition( tmpPx , tmpPy );
-               fprintf(ff,"::%s (x,y) = (%i, %i) t(sg): \n  \n",method.c_str(), tmpPx, tmpPy, sg);
+               fprintf(ff,"::%s (x,y) = (%i, %i) t(sg): %f\n  \n",method.c_str(), tmpPx, tmpPy, sg);
                fclose(ff);
        }