]> Creatis software - creaMaracasVisu.git/blobdiff - bbtk/src/bbcreaMaracasVisuIRMViewer.cxx
*** empty log message ***
[creaMaracasVisu.git] / bbtk / src / bbcreaMaracasVisuIRMViewer.cxx
index f46b52d6a730225c2ef6a65356e799038db3f6bb..8d6777bfcebc42d179a9bcadbf6804fd47684ac0 100644 (file)
@@ -16,6 +16,8 @@ void IRMViewer::Process()
        std::vector<vtkProp3D*> tempvect;
        int i;
 
+       
+
        if(irmview != NULL){
                vtkRenderer* renderer = bbGetInputRenderer();
                irmview->setRenderer(renderer);
@@ -36,7 +38,18 @@ void IRMViewer::Process()
 }
 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);