]> Creatis software - creaContours.git/blobdiff - lib/Interface_ManagerContour_NDimensions/wxVtkBaseView_SceneManager.cxx
#3140 creaContours Feature New Normal - branch vtk7itk4wx3
[creaContours.git] / lib / Interface_ManagerContour_NDimensions / wxVtkBaseView_SceneManager.cxx
index 1d8f1e51659104368b0f3234d3f609dade2ee545..70fd6293e70d0924a5d4bcadadb73116dc8b625f 100644 (file)
@@ -145,8 +145,9 @@ DEFINE_EVENT_TYPE( wxEVT_CHANGED_DEEP )
        {
                return _wxVtk_BaseView;
        }
+
        //------------------------------------------------------------------------------------------------------------
-       void wxVtkBaseView_SceneManager :: configureViewControlTo( std::string theKeyName, manualBaseModel * manModelContour, double * spc,int typeContour)
+       void wxVtkBaseView_SceneManager::configureViewControlTo( std::string theKeyName, manualBaseModel * manModelContour, double * spc,int typeContour)
        {
                //setControlActiveStateOfALL( false );
                _creatingROI = true;
@@ -158,11 +159,8 @@ DEFINE_EVENT_TYPE( wxEVT_CHANGED_DEEP )
                        _lastInteraction->getControler()->SetActive( false );
                        this->_vtkInteractorStyleBaseView->SetRefresh_waiting();
                }
-
-
                manualContourBaseControler *manContourControl;
                manualViewBaseContour           *manViewerContour;
-
                // Creating the view manualViewContour and the manualContourControler
                // NOTE: The model is created in the KernelManagerContour class, factoryManualContourModel method
                if (typeContour==1)
@@ -270,11 +268,12 @@ DEFINE_EVENT_TYPE( wxEVT_CHANGED_DEEP )
                _contours_ViewControl->insert(std::pair <std::string, ContourWrap_ViewControl *> ( theKeyName, newContourWrap ));
                return newContourWrap;
        } 
+
        //------------------------------------------------------------------------------------------------------------
        void wxVtkBaseView_SceneManager :: desconfigureViewControlOf( std::string theKeyName )
-       {
-               
+       {               
        }
+
        //------------------------------------------------------------------------------------------------------------
        void wxVtkBaseView_SceneManager :: removeWrap( std::string theKeyName )
        {
@@ -287,6 +286,7 @@ DEFINE_EVENT_TYPE( wxEVT_CHANGED_DEEP )
                this->_vtkInteractorStyleBaseView->SetRefresh_waiting();
                this->_vtkInteractorStyleBaseView->EvaluateToRefresh();
        } 
+
        //------------------------------------------------------------------------------------------------------------
        ContourWrap_ViewControl * wxVtkBaseView_SceneManager :: getContourWrap_ViewControlOf ( std::string theName )
        {
@@ -295,6 +295,7 @@ DEFINE_EVENT_TYPE( wxEVT_CHANGED_DEEP )
                return iter->second;
                //return iter->first;
        }
+
        //------------------------------------------------------------------------------------------------------------
        ContourWrap_ViewControl * wxVtkBaseView_SceneManager :: getContourWrap_ViewControlOf ( std::string theName, std::map<std::string, ContourWrap_ViewControl *> * theMap )
        {
@@ -302,46 +303,55 @@ DEFINE_EVENT_TYPE( wxEVT_CHANGED_DEEP )
                iter = theMap->find( theName );
                return iter->second;
        }
+
        //------------------------------------------------------------------------------------------------------------
        manualContourBaseControler * wxVtkBaseView_SceneManager :: getControlerOf( std::string theName )
        {
                return getContourWrap_ViewControlOf ( theName )->getControler();
        }
+
        //------------------------------------------------------------------------------------------------------------
        manualViewBaseContour * wxVtkBaseView_SceneManager :: getViewerOf( std::string theName )
        {
                return getContourWrap_ViewControlOf ( theName )->getViewer();
        }
+
        //------------------------------------------------------------------------------------------------------------
        void wxVtkBaseView_SceneManager :: set_creatingMULT_ROI( bool condition )
        {
                _creatingMULT_ROI = condition;
        }
+
        //------------------------------------------------------------------------------------------------------------
        void wxVtkBaseView_SceneManager :: set_editingROI( bool condition )
        {
                _editingROI = condition;
        }
+
        //------------------------------------------------------------------------------------------------------------
        void wxVtkBaseView_SceneManager :: set_toIncludeAtInteractionGroup( bool condition )
        {
                _toIncludeAtInteractionGroup = condition;
        }
+
        //------------------------------------------------------------------------------------------------------------
        void wxVtkBaseView_SceneManager :: set_waiting( bool condition )
        {
                _waiting = condition;
        }
+
        //------------------------------------------------------------------------------------------------------------
        bool wxVtkBaseView_SceneManager :: get_creatingMULT_ROI(  )
        {
                return _creatingMULT_ROI;
        }
+
        //------------------------------------------------------------------------------------------------------------
        bool wxVtkBaseView_SceneManager :: get_editingROI(  )
        {
                return _editingROI;
        }
+
        //------------------------------------------------------------------------------------------------------------
        bool wxVtkBaseView_SceneManager :: get_toIncludeAtInteractionGroup(  )
        {