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);
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 );
+
{
bbSetInputGet(0);
+ bbSetInputIn(NULL);
}
void nDimensions::bbUserCopyConstructor(bbtk::BlackBox::Pointer)