]> Creatis software - creaContours.git/blob - bbtk/src/bbCreaContournDimensions.cxx
Version with out wxEventHandler
[creaContours.git] / bbtk / src / bbCreaContournDimensions.cxx
1 #include "bbCreaContournDimensions.h"
2 #include "bbcreaContoursPackage.h"
3 namespace bbcreaContours
4 {
5
6 BBTK_ADD_BLACK_BOX_TO_PACKAGE(creaContours,nDimensions)
7 BBTK_BLACK_BOX_IMPLEMENTATION(nDimensions,bbtk::WxBlackBox);
8 void nDimensions::Process()
9 {
10  
11         double **vectx, **vecty, **vectz;
12         std::vector<int> size;
13         vtkImageData *mask, *value;
14
15         if(bbGetInputGet()==1){
16                 bbSetInputGet(0);
17                 //eventHandler->checkInformationPanel();
18                 //eventHandler->getValuesXYZ(vectx, vecty, vectz, &size);       
19                 //eventHandler->getMaskValue(mask, value);
20         }
21
22     bbSetOutputX(vectx);
23         bbSetOutputY(vecty);
24         bbSetOutputZ(vectz);
25         bbSetOutputSizeContour(size);
26         bbSetOutputMask(mask);
27         bbSetOutputValue(value);
28 }
29 void nDimensions::CreateWidget()
30 {
31         
32         vtkImageData* img = bbGetInputIn();
33
34         std::vector<vtkImageData*> selectedimages;
35         selectedimages.push_back(img);
36
37         wxFrame* frame1 = new wxFrame(bbGetWxParent(), 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();
41
42         
43    bbSetOutputWidget( frame1 ); 
44
45     
46   
47 }
48 void nDimensions::bbUserConstructor()
49 {
50
51         bbSetInputGet(0);
52
53 }
54 void nDimensions::bbUserCopyConstructor()
55 {
56
57 }
58 void nDimensions::bbUserDestructor()
59 {
60
61 }
62 }
63 // EO namespace bbCreaContour
64
65