X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FEditorGraphicBBS%2FbbsKernelEditorGraphic%2FwxVtkSceneManager.h;h=36a2168b5fb62139c311b7c5328d3066886bf6b1;hb=10186ea739d6c453d607c7a13c45c43167b39cb5;hp=a189fffddfc65168558cefd96736ed8a32a644c7;hpb=d43eaee96a8c31023bae53055512ef35fd4e67c9;p=bbtkGEditor.git diff --git a/lib/EditorGraphicBBS/bbsKernelEditorGraphic/wxVtkSceneManager.h b/lib/EditorGraphicBBS/bbsKernelEditorGraphic/wxVtkSceneManager.h index a189fff..36a2168 100644 --- a/lib/EditorGraphicBBS/bbsKernelEditorGraphic/wxVtkSceneManager.h +++ b/lib/EditorGraphicBBS/bbsKernelEditorGraphic/wxVtkSceneManager.h @@ -47,7 +47,7 @@ Version: $Revision$ #include "GObjectsMVCFactory.h" #include "Observer.h" #include "GPortModel.h" -#include "GConnectorView.h" +#include "vtkGConnectorView.h" #include "GConnectorModel.h" #include "GConnectorController.h" #include "vtkGPortView.h" @@ -89,11 +89,11 @@ namespace bbtk ~wxVtkSceneManager(); void configureBaseView(); - void createGBlackBox(int x, int y,std::string packageName, std::string boxType); + int createGBlackBox(int x, int y,std::string packageName, std::string boxType); GPortController* createGPort(int portType, std::string bbtkName, std::string bbtkType, int posinBox,GBlackBoxModel *blackBox); - void createGInputPort(int portType, int posinBox,GBlackBoxModel *blackBox, BlackBoxInputDescriptor *desc); - void createGOutputPort(int portType, int posinBox,GBlackBoxModel *blackBox, BlackBoxOutputDescriptor *desc); - void createGConnector(GPortModel* startPort); + int createGInputPort(int portType, int posinBox,GBlackBoxModel *blackBox, BlackBoxInputDescriptor *desc); + int createGOutputPort(int portType, int posinBox,GBlackBoxModel *blackBox, BlackBoxOutputDescriptor *desc); + int createGConnector(GPortModel* startPort); void registerController(InteractorStyleMaracas *param); void unregisterController(InteractorStyleMaracas *param); @@ -115,16 +115,21 @@ namespace bbtk void displayBlackBoxInfo(std::string packageName, std::string boxName); void updateStatusBar(std::string textStatus); std::string getDiagramScript(); - void removeObject(int id); + void deleteObject(int id); + void deleteAllBoxes(); + void saveDiagram(std::string &content); + void loadDiagram(ifstream &inputStream); + void centerView(); + + void refreshScene(); + std::vector getBoxes(); + std::vector getConnections(); private: wxGEditorTabPanel *_parent; - // Last controller created - int _idLastController; - // Id of the manager, the same of the panel int _idManager;