]> Creatis software - creaContours.git/blobdiff - lib/Interface_ManagerContour_NDimensions/wxContourMainFrame.cxx
#3140 creaContours Feature New Normal - branch vtk7itk4wx3
[creaContours.git] / lib / Interface_ManagerContour_NDimensions / wxContourMainFrame.cxx
index 760f5431b8e2618120e0b19db779df4059a8f100..ca8e2bcb7a8d23cd7001794051aa9003adbdf498 100644 (file)
@@ -320,20 +320,25 @@ void wxContourMainFrame::onCreateContourSpline( ){
        createContour( 1 );
 
 }
-void wxContourMainFrame::onCreateContourRectangle( ){
+
+void wxContourMainFrame::onCreateContourRectangle( )
+{
     //JCP 20-10-08 Undo redo implementation
        saveState();
        //JCP 20-10-08 Undo redo implementation
        createContour( 2 );
 }
-void wxContourMainFrame::onCreateContourCircle( ){
+
+void wxContourMainFrame::onCreateContourCircle( )
+{
     //JCP 20-10-08 Undo redo implementation
        saveState();
        //JCP 20-10-08 Undo redo implementation
        createContour( 3 );
 }
 
-void wxContourMainFrame::onCreateContourLine( ){
+void wxContourMainFrame::onCreateContourLine( )
+{
     //JCP 20-10-08 Undo redo implementation
        saveState();
        //JCP 20-10-08 Undo redo implementation
@@ -341,7 +346,8 @@ void wxContourMainFrame::onCreateContourLine( ){
 }
 
 // RaC 09-09 --------------------------------------
-void wxContourMainFrame::onCreateContourPoints( ){
+void wxContourMainFrame::onCreateContourPoints( )
+{
     //JCP 20-10-08 Undo redo implementation
        saveState();
        //JCP 20-10-08 Undo redo implementation
@@ -350,7 +356,8 @@ void wxContourMainFrame::onCreateContourPoints( ){
 // RaC 09-09 --------------------------------------
 
 // RaC 10-09 --------------------------------------
-void wxContourMainFrame::onCreateContourPolygon( ){
+void wxContourMainFrame::onCreateContourPolygon( )
+{
     //JCP 20-10-08 Undo redo implementation
        saveState();
        //JCP 20-10-08 Undo redo implementation
@@ -385,15 +392,14 @@ void wxContourMainFrame :: onCreateContourBullEye(wxPanel* panel )
                _theViewPanel->getSceneManager()->configureViewControlTo( theName, manModelContour,spc , 4) ;
        }
 }
+
 void wxContourMainFrame :: createContour( int typeContour )
 {
        //Creating the manualContourModel and including in the model
        manualBaseModel * manModelContour = kernelManager->factoryManualContourModel(typeContour);
-
        std::vector<int> instantVector;
        _instantPanel->getInstant( instantVector );
        std::string theName = kernelManager->createOutline(manModelContour, instantVector);
-
        /*std::vector<int> instantVector;
        _instantPanel->getInstant( instantVector );
        std::string theName;
@@ -407,9 +413,9 @@ void wxContourMainFrame :: createContour( int typeContour )
                //Adding the manualViewContour to interface objects structure
                //_sceneManager->setControlActiveStateOfALL( false );//This call is being done here because if the ROI is created underneath the previously created ROIS will still be active.
                _theViewPanel->getSceneManager()->configureViewControlTo( theName, manModelContour,spc , typeContour) ;
-       }
-
+       } // if addedModel
 }
+
 manualBaseModel * wxContourMainFrame::factoryManualContourModel(wxPanel* panel){
 
        manualContourModelBullEye *manModelContourBullEye = new manualContourModelBullEye();
@@ -3315,7 +3321,6 @@ void wxContourMainFrame::SetFileLocation(std::string newFileLocation)
 
 void wxContourMainFrame::FlipSelectedContours(int flipDirection)
 {
-       printf("EED wxContourMainFrame::FlipSelectedContours  flipDirection=%d  \n",  flipDirection ); 
        FlipLstOfContours( 
                            (std::vector<std::string>)_theViewPanel->getSceneManager()->getSelectedObjects() , 
                            flipDirection
@@ -3325,7 +3330,6 @@ void wxContourMainFrame::FlipSelectedContours(int flipDirection)
 
 void wxContourMainFrame::FlipActualSliceContours(int flipDirection)
 {
-       printf("EED wxContourMainFrame::FlipActualSliceContours  flipDirection=%d  \n",  flipDirection );       
        FlipLstOfContours( 
                            (std::vector<std::string>)_theViewPanel->getSceneManager()->GetlstContoursNameActualSlice() , 
                            flipDirection
@@ -3334,7 +3338,6 @@ void wxContourMainFrame::FlipActualSliceContours(int flipDirection)
 
 void wxContourMainFrame::FlipAllContours(int flipDirection)
 {
-       printf("EED wxContourMainFrame::FlipAllContours  flipDirection=%d  \n",  flipDirection );
        FlipLstOfContours( 
                            kernelManager->GetLstNameThings() , 
                            flipDirection