]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsKernelEditorGraphic/wxVtkSceneManager.h
Chango from GConnectorView to vtkGConnectorView ... The historique will be lost,...
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsKernelEditorGraphic / wxVtkSceneManager.h
index 7efbe0038add1b853ce42f04e158abe5caea5918..36a2168b5fb62139c311b7c5328d3066886bf6b1 100644 (file)
@@ -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);
@@ -108,22 +108,28 @@ namespace bbtk
                virtual bool  OnLeftButtonDown(); 
                virtual bool  OnLeftButtonUp();
                virtual bool OnRightButtonUp();
+               virtual bool OnLeftDClick();
 
                virtual void update(int idController,int command);
 
                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<int> getBoxes();
+               std::vector<int> getConnections();
 
                
        private:
 
                wxGEditorTabPanel *_parent;
 
-               // Last controller created
-               int _idLastController;
-
                // Id of the manager, the same of the panel
                int _idManager;