X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FEditorGraphicBBS%2FbbsKernelEditorGraphic%2FwxVtkSceneManager.h;h=86f24fdfab050a282ee3d0191117a56fd71c92da;hb=31dee6ade406b4b04ea61b9e6527b663e9ed6540;hp=36a2168b5fb62139c311b7c5328d3066886bf6b1;hpb=10186ea739d6c453d607c7a13c45c43167b39cb5;p=bbtkGEditor.git diff --git a/lib/EditorGraphicBBS/bbsKernelEditorGraphic/wxVtkSceneManager.h b/lib/EditorGraphicBBS/bbsKernelEditorGraphic/wxVtkSceneManager.h index 36a2168..86f24fd 100644 --- a/lib/EditorGraphicBBS/bbsKernelEditorGraphic/wxVtkSceneManager.h +++ b/lib/EditorGraphicBBS/bbsKernelEditorGraphic/wxVtkSceneManager.h @@ -46,6 +46,8 @@ Version: $Revision$ //Includes same project #include "GObjectsMVCFactory.h" #include "Observer.h" +#include "GBoxModel.h" +#include "GComplexBoxPortModel.h" #include "GPortModel.h" #include "vtkGConnectorView.h" #include "GConnectorModel.h" @@ -90,9 +92,11 @@ namespace bbtk void configureBaseView(); 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); - int createGInputPort(int portType, int posinBox,GBlackBoxModel *blackBox, BlackBoxInputDescriptor *desc); - int createGOutputPort(int portType, int posinBox,GBlackBoxModel *blackBox, BlackBoxOutputDescriptor *desc); + int createGComplexBoxInputPort(std::string inputName); + int createGComplexBoxOutputPort(std::string outputName); + GPortController* createGPort(int portType, std::string bbtkName, std::string bbtkType, int posinBox,GBoxModel *blackBox); + int createGInputPort(int portType, int posinBox,GBoxModel *blackBox, BlackBoxInputDescriptor *desc); + int createGOutputPort(int portType, int posinBox,GBoxModel *blackBox, BlackBoxOutputDescriptor *desc); int createGConnector(GPortModel* startPort); void registerController(InteractorStyleMaracas *param); @@ -114,7 +118,8 @@ namespace bbtk void displayBlackBoxInfo(std::string packageName, std::string boxName); void updateStatusBar(std::string textStatus); - std::string getDiagramScript(); + std::string getDiagramBBS(); + std::string saveComplexBoxBBS(std::string cbName,std::string cbAuthor="",std::string cbCategory="",std::string cbDescription=""); void deleteObject(int id); void deleteAllBoxes(); void saveDiagram(std::string &content); @@ -122,8 +127,19 @@ namespace bbtk void centerView(); void refreshScene(); - std::vector getBoxes(); + std::vector getBlackBoxes(); std::vector getConnections(); + std::vector getComplexInputPorts(); + std::vector getComplexOutputPorts(); + + std::map getSelectedObjects(); + int getNumSelectedObjects(); + + bool isComplexBox(); + void setComplexBox(bool val); + + int addObjectController(GObjectController* objController); + void addObjects(std::map objectsMap); private: @@ -148,6 +164,8 @@ namespace bbtk //Saves the id's of the selected objects in the controllers map std::vector _selectedObjects; + bool _isComplexBox; + protected: };