X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FEditorGraphicBBS%2FbbsKernelEditorGraphic%2FwxVtkSceneManager.h;h=118d136d2a9fec85a709ff4ab993e4ae252f5310;hb=343ecf790a799b8089a6d13fec0192fd9ad71da1;hp=0f795e8d6eb42163d2573940f32dc23e26aef9ec;hpb=ee78ea5e5132aa8e24b525dfa92fd0a355e8245a;p=bbtkGEditor.git diff --git a/lib/EditorGraphicBBS/bbsKernelEditorGraphic/wxVtkSceneManager.h b/lib/EditorGraphicBBS/bbsKernelEditorGraphic/wxVtkSceneManager.h index 0f795e8..118d136 100644 --- a/lib/EditorGraphicBBS/bbsKernelEditorGraphic/wxVtkSceneManager.h +++ b/lib/EditorGraphicBBS/bbsKernelEditorGraphic/wxVtkSceneManager.h @@ -46,8 +46,10 @@ Version: $Revision$ //Includes same project #include "GObjectsMVCFactory.h" #include "Observer.h" +#include "GBoxModel.h" +#include "GComplexBoxPortModel.h" #include "GPortModel.h" -#include "GConnectorView.h" +#include "vtkGConnectorView.h" #include "GConnectorModel.h" #include "GConnectorController.h" #include "vtkGPortView.h" @@ -89,11 +91,13 @@ namespace bbtk ~wxVtkSceneManager(); void configureBaseView(); - void 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 createGBlackBox(int x, int y,std::string packageName, std::string boxType); + 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); void unregisterController(InteractorStyleMaracas *param); @@ -117,8 +121,16 @@ namespace bbtk std::string getDiagramScript(); 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(); + + bool isComplexBox(); + void setComplexBox(bool val); private: @@ -143,6 +155,8 @@ namespace bbtk //Saves the id's of the selected objects in the controllers map std::vector _selectedObjects; + bool _isComplexBox; + protected: };