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 if(bbGetInputGet()==1){
17 //eventHandler->checkInformationPanel();
18 //eventHandler->getValuesXYZ(vectx, vecty, vectz, &size);
19 //eventHandler->getMaskValue(mask, value);
25 bbSetOutputSizeContour(size);
26 bbSetOutputMask(mask);
27 bbSetOutputValue(value);
29 void nDimensions::CreateWidget(wxWindow* parent)
32 vtkImageData* img = bbGetInputIn();
34 std::vector<vtkImageData*> selectedimages;
35 selectedimages.push_back(img);
37 wxFrame* frame1 = new wxFrame(parent, wxID_ANY, wxT("ROI Application - Evaluation version, 23 Oct 2008 "), wxPoint(400,50), wxSize(800, 600) );
38 frame = wxContourMainFrame::getInstance(frame1, wxID_ANY, wxString(_T("")), wxPoint(100,50), wxSize(800, 600), selectedimages );
39 //new wxContourMainFrame( frame1, wxID_ANY, _T(""), wxPoint(50,50), wxSize(800, 600),selectedimages );
40 frame1->CreateStatusBar();
43 bbSetOutputWidget( frame1 );
48 void nDimensions::bbUserConstructor()
54 void nDimensions::bbUserCopyConstructor(bbtk::BlackBox::Pointer)
58 void nDimensions::bbUserDestructor()
63 // EO namespace bbCreaContour