]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsKernelEditorGraphic/wxVtkSceneManager.cxx
To save the executable boxes
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsKernelEditorGraphic / wxVtkSceneManager.cxx
index 4fcb0434e0c6ca4fa0125b12fafc068850fe9235..ddc5a5285010ad854e3fb513e876d165ddc595be 100644 (file)
@@ -1056,6 +1056,13 @@ namespace bbtk
                                result = strtok( NULL, delims );//name
                                std::string name(result);
 
+                               getline(inputStream,line);//ISEXEC:TRUE|FALSE
+                               char exec[15];
+                               strcpy( exec, line.c_str() );
+                               result = strtok( exec, delims );//ISEXEC                                
+                               result = strtok( NULL, delims );//TRUE|FALSE
+                               std::string isExec(result);
+
                                //----------
                                getline(inputStream,line);//xInic:yInic:zInic
                                char coord[80];
@@ -1099,6 +1106,14 @@ namespace bbtk
                                bbmod->setBBTKName(name);
                                bbmod->setInicPoint(xIn,yIn,zIn);
                                bbmod->setFinalPoint(xEn,yEn,zEn);
+                               if(isExec=="TRUE")
+                               {
+                                       bbmod->setExecutable(true);
+                               }
+                               else if(isExec=="FALSE")
+                               {
+                                       bbmod->setExecutable(false);
+                               }
                                                        
                                //----------
                                getline(inputStream,line);//PORT o #FIN_BOX