- std::string s = "data";
-
- std::string conceptsFN = s + "/holaConceptsFile.cf";
- std::string imageSourcesFN = s + "/holaImagesInstantsFile.of";
- std::string imageSectionsFN = "";
- std::string axeThingsFN = "";
-
- std::map<std::string, ImageSourceThing *> * sourcesMap = new std::map<std::string, ImageSourceThing *>();
- std::map<std::string, ImageSectionThing *>* sectionsMap = new std::map<std::string, ImageSectionThing *>();
- std::map<std::string, AxeThing *>* axesMap = new std::map<std::string, AxeThing *>();
- std::map<std::string, ContourThing *>* outlinesMap = new std::map<std::string, ContourThing *>();
-
- 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 );
-
- wxFrame* frame1 = new wxFrame(bbGetWxParent(), wxID_ANY, wxT("ROI Application - Evaluation version, 23 Oct 2008 "), wxPoint(50,50), wxSize(800, 600) );
- frame = new wxContourMainFrame( frame1, wxID_ANY, _T(""), wxPoint(50,50), wxSize(800, 600) );
- frame1->CreateStatusBar();
-
-
- wxAuiNotebook * parent = frame->createNotebook();
-
- OutlineModelManager * modelManager = new OutlineModelManager( _builder->getImSourceEnv(), _builder->getImSectionEnv(), _builder->getAxesEnv(), _builder->getContourEnv() );
-
- std::string xxx1("Instant Chooser");
- wxInstantChooserPanel * instantPanel = new wxInstantChooserPanel( parent,
- xxx1,
- true );
- //ImageSourceThing * imageSource = modelManager->getImageSourceThingByKeyName( wxT("Source Image 1") );
- std::string xxx2("Source Image 1");
- ImageSourceThing * imageSource = modelManager->getImageSourceThingByKeyName( xxx2);