std::vector<vtkProp3D*> tempvect;
int i;
+
+
if(irmview != NULL){
vtkRenderer* renderer = bbGetInputRenderer();
irmview->setRenderer(renderer);
}
void IRMViewer::CreateWidget(wxWindow* parent)
{
- wxMaracasIRMView* irmview = wxMaracasIRMView::getInstance(parent);
+ char currentPath[_MAX_PATH];
+ HMODULE hand = GetModuleHandle("bbcreaMaracasVisu");
+ GetModuleFileName(hand, currentPath, _MAX_PATH);
+
+ std::string path = currentPath;
+
+ path = path.substr(0,path.find_last_of("\\"));
+ std::cout << "Your application's directory is: " << path;
+
+ wxMaracasIRMView* irmview = wxMaracasIRMView::getInstance(parent,path);
+ //GetDllDirectory(_MAX_PATH, currentPath);
+ //std::cout << "Your application's directory is: " << GetDllDirectory(_MAX_PATH, currentPath)<<std::endl;
bbSetOutputWidget(irmview);