]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkComplexBlackBox.cxx
*** empty log message ***
[bbtk.git] / kernel / src / bbtkComplexBlackBox.cxx
index 0c65247ce5c68f1034b5d4cda68028dbf4796292..3625afdb8705fa9d40da4092c59c5ca6be54ac98 100644 (file)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkComplexBlackBox.cxx,v $
   Language:  C++
-  Date:      $Date: 2009/10/05 22:44:48 $
-  Version:   $Revision: 1.29 $
+  Date:      $Date: 2010/03/19 08:18:41 $
+  Version:   $Revision: 1.32 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
@@ -692,20 +692,17 @@ namespace bbtk
     
 
 #ifdef WIN32
-       
-       std::string currentexecpath( crea::System::GetDllAppPath("bbtk") +"\\dot_embedded\\");
-       std::string command1 (currentexecpath + "dot -Tpng -o "  
-                         + filename_png2  + " " + filename_dot2 );
-
-       std::string command1a(currentexecpath + "dot -T cmap -o " 
-                         + filename_cmap2 + " " + filename_dot2 );
-
+       std::string currentexecpath("\"\"" + crea::System::GetDllAppPath("bbtk") +"\\dot_embedded\\dot\"");     
+       std::string command1 (currentexecpath + " -Tpng -o " + filename_png2  + " " + filename_dot2 + "\"");
+       std::string command1a(currentexecpath + " -T cmap -o " + filename_cmap2 + " " + filename_dot2 + "\"");          
 #else
-       std::string command1 ("dot -Tpng:quartz -o "  
-                         + filename_png2  + " " + filename_dot2  );
-       std::string command1a("dot -T cmap -o " 
-                         + filename_cmap2 + " " + filename_dot2 );
-
+  #ifdef APPLE
+       std::string command1 ("dot -Tpng:quartz -o " + filename_png2  + " " + filename_dot2  );
+       std::string command1a("dot -T cmap -o " + filename_cmap2 + " " + filename_dot2 );
+  #else
+       std::string command1 ("dot -Tpng:cairo -o " + filename_png2  + " " + filename_dot2  );
+       std::string command1a("dot -T cmap -o " + filename_cmap2 + " " + filename_dot2 );
+  #endif
 #endif
 
 
@@ -727,9 +724,11 @@ namespace bbtk
     fprintf(ff,"}\n");
     fclose(ff);
 
+       std::cout<<"JCP bbtkComplexBlackBox.cxx execute1="<<command1<<std::endl;
     // 2. Executing .dot file -> png
     system( command1.c_str() );   
     // 3. Executing .dot file -> cmap
+       std::cout<<"JCP bbtkComplexBlackBox.cxx execute2="<<command1a<<std::endl;
     system( command1a.c_str() );  
     
     // 4. HTML code insertion