X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=lib%2FEditorGraphicBBS%2FbbsWxGUIEditorGraphic%2FwxVtkSceneManager.h;h=3fb4c0be6f3747619c709e85f9c0652d3d37c613;hb=04884fa171fe877e5c2ca53d11d6838bc1f8a8f7;hp=82c2052fc019088b46ccc983d2276c95ed5a13e0;hpb=547ca8b4d40e607106fe9baae8a6679925d7dd42;p=bbtkGEditor.git diff --git a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxVtkSceneManager.h b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxVtkSceneManager.h index 82c2052..3fb4c0b 100644 --- a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxVtkSceneManager.h +++ b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxVtkSceneManager.h @@ -82,9 +82,10 @@ Version: $Revision$ //Includes std #include +#include +#include #include - namespace bbtk { class wxGEditorTabPanel; @@ -161,12 +162,15 @@ namespace bbtk void addObjects(std::map objectsMap); + //------- + // Makes a BlackBox Executable + bool MakeBoxExecutable();//DFCH //------- //Returns a string with the BBS script of the current diagram. std::string getDiagramBBS(bool wln=false); //Returns a string with the BBS script of the complex box. - std::string saveComplexBoxBBS(std::string cbName,std::string cbAuthor="",std::string cbCategory="",std::string cbDescription=""); + std::string saveComplexBoxBBS(); //Delete the object in the list of controllers with the id given by parameter. void deleteObject(int id); @@ -180,7 +184,7 @@ namespace bbtk void saveDiagram(std::string &content); //Load the diagram - void loadDiagram(ifstream &inputStream); + void loadDiagram(std::stringstream &inputStream); //Center the view of the camera in the initial position void centerView(); @@ -190,9 +194,26 @@ namespace bbtk std::string findANewNameForABox(); //------- + void SetCbName(std::string cbNane); + void SetCbPackageName(std::string packagename); + void SetAuthor(std::string author); + void SetCategory(std::string category); + void SetDescription(std::string description); + + std::string GetCbName(); + std::string GetCbPackageName(); + std::string GetAuthor(); + std::string GetCategory(); + std::string GetDescription(); private: + std::string _cbName; + std::string _cbPackageName; + std::string _Author; + std::string _Category; + std::string _Description; + //wxPanel that uses the manager wxGEditorTabPanel *_parent; @@ -233,7 +254,7 @@ namespace bbtk int GetIndexInSelected(int idControler); void UnSelectBlackBoxes(); GObjectController *GetGBlackBoxControlerPointedByMouse(); - + void CancelConnection(); protected: