]> Creatis software - creaMaracasVisu.git/blobdiff - bbtk/src/bbcreaMaracasVisuIRMViewer.cxx
no message
[creaMaracasVisu.git] / bbtk / src / bbcreaMaracasVisuIRMViewer.cxx
index 8d6777bfcebc42d179a9bcadbf6804fd47684ac0..c09a5156ee4d047633a6b026de26a5b380958105 100644 (file)
@@ -38,45 +38,44 @@ void IRMViewer::Process()
 }
 void IRMViewer::CreateWidget(wxWindow* 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;
+       //std::cout << "Your application's directory is: " << path;
 
-       wxMaracasIRMView* irmview = wxMaracasIRMView::getInstance(parent,path);
+       wxMaracasIRMView* irmview = wxMaracasIRMView::getInstance(parent);
        //GetDllDirectory(_MAX_PATH, currentPath);
        //std::cout << "Your application's directory is: " << GetDllDirectory(_MAX_PATH, currentPath)<<std::endl;
 
        bbSetOutputWidget(irmview);
   
 }
-void IRMViewer::bbUserConstructor()
-{
-  
-    bbSetInputIn0(NULL);
-       bbSetInputIn1(NULL);
-       bbSetInputIn2(NULL);
-       bbSetInputIn3(NULL);
-       bbSetInputIn4(NULL);
-       bbSetOutputWidget(NULL);
-  
-}
-void IRMViewer::bbUserCopyConstructor(bbtk::BlackBox::Pointer)
-{
-  
-}
-void IRMViewer::bbUserDestructor()
-{
-  
-}
+
+       //-----------------------------------------------------------------     
+       void IRMViewer::bbUserSetDefaultValues()
+       {
+               bbSetInputIn0(NULL);
+               bbSetInputIn1(NULL);
+               bbSetInputIn2(NULL);
+               bbSetInputIn3(NULL);
+               bbSetInputIn4(NULL);
+               bbSetInputRenderer(NULL);
+               bbSetOutputWidget(NULL);                
+       }
+       
+       //-----------------------------------------------------------------     
+       void IRMViewer::bbUserInitializeProcessing()
+       {
+       }
+       
+       //-----------------------------------------------------------------     
+       void IRMViewer::bbUserFinalizeProcessing()
+       {
+       }
+       
+       //-----------------------------------------------------------------     
+       
+       
+
 }
 // EO namespace bbcreaMaracasVisu