- vtkImageData* img = bbGetInputIn();
- if(img==NULL){
- vtkMetaImageReader *reader = vtkMetaImageReader::New();
- reader->SetFileName( "data/hola.mhd" );
- reader->Update();
- img = reader->GetOutput();
- }
-
- ImageSourceThing * thing = new ImageSourceThing(img);
- sourcesMap->insert(std::pair<std::string, ImageSourceThing *>( "Source Image 1", thing));
-
- OutlineModelBuilder * _builder = new OutlineModelBuilder( conceptsFN, s );
- _builder->buildImageSource_Envornment( imageSourcesFN, sourcesMap );
- _builder->buildImageSection_Envornment( imageSectionsFN, sectionsMap );
- _builder->buildAxe_Envornment(axeThingsFN, axesMap );
- _builder->buildCountour_Envornment( imageSectionsFN, outlinesMap );
+//-----------------------------------------------------------------
+void nDimensions::CreateWidget(wxWindow* parent)
+{
+ //vtkImageData* img = bbGetInputIn();
+
+ 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 );
+ //new wxContourMainFrame( frame1, wxID_ANY, _T(""), wxPoint(50,50), wxSize(800, 600),selectedimages );
+ //frame1->CreateStatusBar();
+ //bbSetOutputWidget( frame1 );
+std::string datadir=".";
+#ifdef WIN32
+printf("EED WARNING Verify that GetDllAppPath in nDimensions::CreateWidget bbCreaContournDimensions is working.. \n");
+ datadir = crea::System::GetDllAppPath("bbCreaContours.dll");
+#else
+ datadir= crea::System::GetExecutablePath();
+#endif