]> Creatis software - creaMaracasVisu.git/blobdiff - bbtk/src/bbmaracasvisuContourVOI.cxx
no message
[creaMaracasVisu.git] / bbtk / src / bbmaracasvisuContourVOI.cxx
index dfb620215e184217e8afe8316abda565e10ecfb4..8ba853d224d780da7fe5edf9d817861ecbf5f64f 100644 (file)
@@ -3,6 +3,9 @@
 
 #include "bbmaracasvisuContourVOI.h"
 #include "bbcreaMaracasVisuPackage.h"
+
+
+
 namespace bbcreaMaracasVisu
 {
 
@@ -29,21 +32,18 @@ END_EVENT_TABLE( );
                this->wxvtkbaseview = NULL;
                mcontourvoiwidget=NULL;
 
-
                if(wxvtkbaseview!=NULL&&imagedata!=NULL){
 
                        setBaseView(wxvtkbaseview);
                        setImageData(imagedata);
                        initializeVOIWidget();
-
-               }
-
-                               
+               }                       
   }
    void wxWidgetVOI::initializeVOIWidget(){
           wxSizer* sizer = this->GetSizer();
 
-               
+
+/// \TODO fix deprecated warning: virtual bool wxSizer::Remove(wxWindow*) is deprecated (declared at /usr/include/wx-2.8/wx/sizer.h:513)               
                if(mcontourvoiwidget!=NULL){
                        sizer->Remove(  mcontourvoiwidget );    
                        mcontourvoiwidget->Destroy();
@@ -52,7 +52,6 @@ END_EVENT_TABLE( );
                mcontourvoiwidget = new ContourVOIWidget( this, wxvtkbaseview, imagedata );
                mcontourvoiwidget->ConfigureVTK();
 
-               
                sizer   -> Add( mcontourvoiwidget,1,wxGROW ); 
 //             wxwidget = new wxMPRWidget2( panel, marimagedata , 1 ); 
 //             wxwidget->ConfigureVTK();       
@@ -134,7 +133,6 @@ void ContourVOI::Process()
       wxMessageDialog(NULL,  bbtk::std2wx("(ContourVOI) Input 'In' is not set"),  bbtk::std2wx(bbGetFullName()) ).ShowModal();
     }*/
 
-
        vtkImageData* img = bbGetInputIn();
        wxVtkBaseView* base = bbGetInputwxVtkBaseView();
 
@@ -150,7 +148,6 @@ void ContourVOI::Process()
                wxwidgetvoi->initializeVOIWidget();             
        }
 
-       
        if (wxwidgetvoi!=NULL && _img!=NULL && _base != NULL){
                ContourVOIWidget* contourvoiwidget = wxwidgetvoi->GetContourVOIWidget();
                
@@ -164,6 +161,9 @@ void ContourVOI::Process()
 
                std::cout<<"ContourVOI index "<<Index<<" size "<<Size<<std::endl;
 
+       /*EED 20 Juin 2011      
+         This go out of the box ... see ExtractVtkImageFilter ...
+        
                //JCP
                if(_extract!=NULL){             
                        _extract->Delete();
@@ -176,13 +176,11 @@ void ContourVOI::Process()
                _extract->Update();
                bbSetOutputVOI(_extract->GetOutput());
                //JCP
-                
-
-               
+  */
+       
                bbSetOutputIndex( Index );
                bbSetOutputSize( Size );
        } 
-
 }
 
 //------------------------------------------------------
@@ -200,10 +198,9 @@ void ContourVOI::CreateWidget(wxWindow*  parent)
 //------------------------------------------------------
 void ContourVOI::bbUserSetDefaultValues()
 {
-
        _img = NULL;
        _base = NULL;
-       _extract =NULL;
+//EED 20Juin2011       _extract =NULL;
        bbSetInputwxVtkBaseView(NULL);
        bbSetInputIn(NULL);
        bbSetOutputWidget(NULL);
@@ -214,20 +211,17 @@ void ContourVOI::bbUserSetDefaultValues()
 
 }
 
-       //-----------------------------------------------------------------     
-       void ContourVOI::bbUserInitializeProcessing()
-       {
-       }
+//-----------------------------------------------------------------    
+void ContourVOI::bbUserInitializeProcessing()
+{
+}
        
-       //-----------------------------------------------------------------     
-       void ContourVOI::bbUserFinalizeProcessing()
-       {
-       }
+//-----------------------------------------------------------------    
+void ContourVOI::bbUserFinalizeProcessing()
+{
+}
        
-       //-----------------------------------------------------------------     
+//-----------------------------------------------------------------    
        
-
 }
 // EO namespace bbcreaMaracasVisu
-
-