1 #include "bbCreaContournDimensions.h"
2 #include "bbcreaContoursPackage.h"
3 namespace bbcreaContours
6 BBTK_ADD_BLACK_BOX_TO_PACKAGE(creaContours,nDimensions)
7 BBTK_BLACK_BOX_IMPLEMENTATION(nDimensions,bbtk::WxBlackBox);
8 void nDimensions::Process()
11 double **vectx, **vecty, **vectz;
12 std::vector<int> size;
13 vtkImageData *mask, *value;
15 vtkImageData* img = bbGetInputIn();
17 std::vector<vtkImageData*> selectedimages;
18 if(img!=NULL && currentimg!=img){
21 selectedimages.push_back(img);
22 frame->setVectImages(selectedimages);
27 if(bbGetInputGet()==1){
29 //eventHandler->checkInformationPanel();
30 //eventHandler->getValuesXYZ(vectx, vecty, vectz, &size);
31 //eventHandler->getMaskValue(mask, value);
37 bbSetOutputSizeContour(size);
38 bbSetOutputMask(mask);
39 bbSetOutputValue(value);
41 void nDimensions::CreateWidget(wxWindow* parent)
44 //vtkImageData* img = bbGetInputIn();
46 std::vector<vtkImageData*> selectedimages;
47 //selectedimages.push_back(img);
49 //wxFrame* frame1 = new wxFrame(parent, wxID_ANY, wxT("ROI Application - Evaluation version, 23 Oct 2008 "), wxPoint(400,50), wxSize(800, 600) );
50 //frame = wxContourMainFrame::getInstance(frame1, wxID_ANY, wxString(_T("")), wxPoint(100,50), wxSize(800, 600), selectedimages );
51 //new wxContourMainFrame( frame1, wxID_ANY, _T(""), wxPoint(50,50), wxSize(800, 600),selectedimages );
52 //frame1->CreateStatusBar();
53 //bbSetOutputWidget( frame1 );
54 frame = wxContourMainFrame::getInstance(parent, wxID_ANY, wxString(_T("")), wxPoint(100,50), wxSize(800, 600), selectedimages );
55 bbSetOutputWidget( frame );
62 void nDimensions::bbUserConstructor()
69 void nDimensions::bbUserCopyConstructor(bbtk::BlackBox::Pointer)
73 void nDimensions::bbUserDestructor()
78 // EO namespace bbCreaContour