]> Creatis software - creaMaracasVisu.git/blobdiff - bbtk/src/bbcreaMaracasVisuIRMViewer.cxx
no message
[creaMaracasVisu.git] / bbtk / src / bbcreaMaracasVisuIRMViewer.cxx
index 429278c06cb0bd269c1777f953226d0749b0ae0c..c09a5156ee4d047633a6b026de26a5b380958105 100644 (file)
@@ -39,66 +39,43 @@ void IRMViewer::Process()
 void IRMViewer::CreateWidget(wxWindow* parent)
 {
 
-       std::string path = "";
-#if defined(WIN32)
-       char currentPath[_MAX_PATH];
-       HMODULE hand = GetModuleHandle("bbcreaMaracasVisu");
-       GetModuleFileName(hand, currentPath, _MAX_PATH);
-       path = currentPath;
-       path = path.substr(0,path.find_last_of("\\"));
-       
-#else if defined(UNIX)
-       pid_t pid = getpid();
-       char buf[10];
-       sprintf(buf,"%d",pid);
-
-       std::string _link = "/proc/";
-       _link.append( buf );
-       _link.append( "/exe");
-
-       char proc[512];
-       int ch = readlink(_link.c_str(),proc,512);
-       if (ch != -1) {
-               proc[ch] = 0;
-               path = proc;
-               std::string::size_type t = path.find_last_of("/");
-               path = path.substr(0,t);
-       }
-       
 
-#endif
-       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