From ead1ea6e8adbc962e74786a87d8cb6d015c777df Mon Sep 17 00:00:00 2001 From: corredor <> Date: Fri, 7 May 2010 14:55:14 +0000 Subject: [PATCH] To save the executable boxes --- .../bbsKernelEditorGraphic/GBlackBoxModel.cxx | 11 +++++++++++ .../bbsKernelEditorGraphic/wxVtkSceneManager.cxx | 15 +++++++++++++++ 2 files changed, 26 insertions(+) diff --git a/lib/EditorGraphicBBS/bbsKernelEditorGraphic/GBlackBoxModel.cxx b/lib/EditorGraphicBBS/bbsKernelEditorGraphic/GBlackBoxModel.cxx index f7fe2e1..47259aa 100644 --- a/lib/EditorGraphicBBS/bbsKernelEditorGraphic/GBlackBoxModel.cxx +++ b/lib/EditorGraphicBBS/bbsKernelEditorGraphic/GBlackBoxModel.cxx @@ -185,6 +185,17 @@ namespace bbtk content+=":"; content+=_bbtkName; content+="\n"; + content+="ISEXEC:"; + if(_isExecutable) + { + content+="TRUE"; + } + else + { + content+="FALSE"; + } + content+="\n"; + //Box Position char buffer [50]; diff --git a/lib/EditorGraphicBBS/bbsKernelEditorGraphic/wxVtkSceneManager.cxx b/lib/EditorGraphicBBS/bbsKernelEditorGraphic/wxVtkSceneManager.cxx index 4fcb043..ddc5a52 100644 --- a/lib/EditorGraphicBBS/bbsKernelEditorGraphic/wxVtkSceneManager.cxx +++ b/lib/EditorGraphicBBS/bbsKernelEditorGraphic/wxVtkSceneManager.cxx @@ -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 -- 2.45.1