From: corredor <> Date: Fri, 7 May 2010 14:55:14 +0000 (+0000) Subject: To save the executable boxes X-Git-Tag: v1_0_0~75 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=ead1ea6e8adbc962e74786a87d8cb6d015c777df;p=bbtkGEditor.git To save the executable boxes --- 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