]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsKernelEditorGraphic/wxVtkSceneManager.h
Organizing code, the state now is in the view and the general render was simplified...
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsKernelEditorGraphic / wxVtkSceneManager.h
index e1dccfcfd45f8b357bc143f9e564cc084ddcc409..f539e92ea3732e2fa315c59baad635c6839b2d4e 100644 (file)
@@ -47,6 +47,7 @@ Version:   $Revision$
 #include "GObjectsMVCFactory.h"
 #include "Observer.h"
 #include "GPortModel.h"
+#include "vtkGPortView.h"
 #include "GConnectorView.h"
 
 //Includes bbtk
@@ -85,8 +86,9 @@ namespace bbtk
 
                void configureBaseView();
                void createGBlackBox(int x, int y,std::string packageName, std::string boxName);
-               void createGInputPort(BlackBoxInputDescriptor *desc,GBlackBoxModel *blackBox, int pos);
-               void createGOutputPort(BlackBoxOutputDescriptor *desc,GBlackBoxModel *blackBox, int pos);
+               void createGPort(int portType, 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);
 
                void registerController(InteractorStyleMaracas *param);
@@ -98,15 +100,15 @@ namespace bbtk
                
                virtual bool OnMouseMove();
 
-               virtual void update(int command);
+               virtual void update(int idObservable,int command);
                
        private:
 
                int _id;
                wxVtk3DBaseView *_baseView;
 
-               std::vector<GObjectModel*> _objects;
-               std::vector<GObjectModel*> _selectedObjects;
+               std::vector<GObjectController*> _objects;
+               std::map<int,GObjectController*> _controllers;
 
        protected: