std::vector<int> size;
vtkImageData *mask, *value;
-
-// eventHandler->getValuesXYZ(vectx, vecty, vectz, &size);
-// eventHandler->getMaskValue(mask, value);
+ if(bbGetInputGet()==1){
+ bbSetInputGet(0);
+ eventHandler->checkInformationPanel();
+ eventHandler->getValuesXYZ(vectx, vecty, vectz, &size);
+ eventHandler->getMaskValue(mask, value);
+ }
bbSetOutputX(vectx);
bbSetOutputY(vecty);
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();
_builder->buildAxe_Envornment(axeThingsFN, axesMap );
_builder->buildCountour_Envornment( imageSectionsFN, outlinesMap );
- frame = new wxContourMainFrame( bbGetWxParent(), wxID_ANY, wxString(""), wxPoint(50,50), wxSize(800, 600) );
-
+ 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, wxString(""), wxPoint(50,50), wxSize(800, 600) );
+ frame1->CreateStatusBar();
+
wxAuiNotebook * parent = frame->createNotebook();
OutlineModelManager * modelManager = new OutlineModelManager( _builder->getImSourceEnv(), _builder->getImSectionEnv(), _builder->getAxesEnv(), _builder->getContourEnv() );
successConfiuration &= frame->configurePanels( parent );
- interfMainPanel* pannew = interfMainPanel::getInstance(frame, eventHandler, s+"/Icons");
+ interfMainPanel* pannew = interfMainPanel::getInstance(frame1, eventHandler, s+"/Icons");
bbSetOutputWidget( frame );
void nDimensions::bbUserConstructor()
{
+ bbSetInputGet(0);
+
}
void nDimensions::bbUserCopyConstructor()
{
//==================================================================
BBTK_DECLARE_INPUT(WorkDir,std::string);
BBTK_DECLARE_INPUT(In,vtkImageData*);
+ BBTK_DECLARE_INPUT(Get,int);
BBTK_PROCESS(Process);
void Process();
BBTK_CREATE_WIDGET(CreateWidget);
BBTK_CATEGORY("__CategoryBlackBox__");
BBTK_INPUT(nDimensions,WorkDir,"Working data directory where config and data files are located",std::string,"");
BBTK_INPUT(nDimensions,In,"Image to be shown",vtkImageData*,"");
+BBTK_INPUT(nDimensions,Get,"Set to 1 when data ready to be exported",int,"");
BBTK_OUTPUT(nDimensions,Mask,"Mask of the contours",vtkImageData*,"");
BBTK_OUTPUT(nDimensions,Value,"Value of the contours",vtkImageData*,"");
interfMainPanel* interfMainPanel::getInstance(wxWindow* parent, wxEvtHandler * evtHandler, std::string datadir){
wxFrame* newframe = new wxFrame(parent, -1, wxT("New Interface"), wxPoint(1,1), wxSize(380,750),wxFRAME_TOOL_WINDOW|wxSYSTEM_MENU | wxCAPTION | wxCLIP_CHILDREN |wxFRAME_FLOAT_ON_PARENT);
+
if(interfmainpanel == NULL){
interfmainpanel = new interfMainPanel(newframe, 380, 750, evtHandler, datadir);