]> Creatis software - creaContours.git/blobdiff - bbtk/src/bbCreaContournDimensions.cxx
*** empty log message ***
[creaContours.git] / bbtk / src / bbCreaContournDimensions.cxx
index 85b23a0fbcc9298b4ccacdf0ae1cf8b4ef36d8a9..52aeb2882d3a524ae491283d12666f4ff74fa558 100644 (file)
@@ -12,8 +12,20 @@ void nDimensions::Process()
        std::vector<int> size;
        vtkImageData *mask, *value;
 
+       vtkImageData* img = bbGetInputIn();
+
+       std::vector<vtkImageData*> selectedimages;
+       if(img!=NULL && currentimg!=img){
+
+               currentimg=img;
+               selectedimages.push_back(img);
+               frame->setVectImages(selectedimages);
+       }
+
+
+
        if(bbGetInputGet()==1){
-               bbSetInputGet(0);
+               bbSetInputGet(0);               
                //eventHandler->checkInformationPanel();
                //eventHandler->getValuesXYZ(vectx, vecty, vectz, &size);       
                //eventHandler->getMaskValue(mask, value);
@@ -34,13 +46,15 @@ void nDimensions::CreateWidget(wxWindow* parent)
        std::vector<vtkImageData*> selectedimages;
        //selectedimages.push_back(img);
 
-       wxFrame* frame1 = new wxFrame(parent, wxID_ANY, wxT("ROI Application  -    Evaluation version, 23 Oct 2008 "), wxPoint(400,50), wxSize(800, 600) );
-       frame = wxContourMainFrame::getInstance(frame1, wxID_ANY, wxString(_T("")), wxPoint(100,50), wxSize(800, 600), selectedimages );
+       //wxFrame* frame1 = new wxFrame(parent, wxID_ANY, wxT("ROI Application  -    Evaluation version, 23 Oct 2008 "), wxPoint(400,50), wxSize(800, 600) );
+       //frame = wxContourMainFrame::getInstance(frame1, wxID_ANY, wxString(_T("")), wxPoint(100,50), wxSize(800, 600), selectedimages );      
        //new wxContourMainFrame( frame1, wxID_ANY, _T(""), wxPoint(50,50), wxSize(800, 600),selectedimages ); 
-       frame1->CreateStatusBar();
-
+       //frame1->CreateStatusBar();
+       //bbSetOutputWidget( frame1 ); 
+       frame = wxContourMainFrame::getInstance(parent, wxID_ANY, wxString(_T("")), wxPoint(100,50), wxSize(800, 600), selectedimages );
+       bbSetOutputWidget( frame ); 
        
-   bbSetOutputWidget( frame1 ); 
+   
 
     
   
@@ -49,6 +63,7 @@ void nDimensions::bbUserConstructor()
 {
 
        bbSetInputGet(0);
+       bbSetInputIn(NULL);
 
 }
 void nDimensions::bbUserCopyConstructor(bbtk::BlackBox::Pointer)