}
-wxContourMainFrame :: wxContourMainFrame(wxWindow* parent, wxWindowID id,const wxString& title,const wxPoint& pos,const wxSize& size,std::vector<vtkImageData*> images, long style)
+ wxContourMainFrame :: wxContourMainFrame(wxWindow* parent, wxWindowID id,const wxString& title,const wxPoint& pos,const wxSize& size,std::vector<vtkImageData*> images, long style,std::string datadir)
: wxPanel(parent, id, pos, size, style)
{
m_mgr.SetManagedWindow(this);
inredo = 0;
inundo = 0;
- kernelManager = new KernelManagerContour(images);
+ kernelManager = new KernelManagerContour(images,datadir+"/data/");
//kernelManager->setVectImages(images);
//kernelManager->initializeEnvironment();
//successConfiuration &= this->configurePanels( notebook );
this->configurePanels( notebook );
- interfMainPanel* pannew = interfMainPanel::getInstance(parent);//, eventHandler);
+ interfMainPanel* pannew = interfMainPanel::getInstance(parent,datadir+"/data/Icons");//, eventHandler);
//JCP 17 -10 - 2008
}
- wxContourMainFrame* wxContourMainFrame :: getInstance(wxWindow* parent, wxWindowID id,const wxString& title,const wxPoint& pos,const wxSize& size,std::vector<vtkImageData*> images, long style ){
+ wxContourMainFrame* wxContourMainFrame :: getInstance(wxWindow* parent, wxWindowID id,const wxString& title,const wxPoint& pos,const wxSize& size,std::vector<vtkImageData*> images, long style,std::string datadir ){
if(instance == NULL){
- instance = new wxContourMainFrame(parent, id, title, pos, size, images, style);
+ instance = new wxContourMainFrame(parent, id, title, pos, size, images, style,datadir);
}
return instance;
}