]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsKernelEditorGraphic/wxVtkSceneManager.h
Move box and refresh position ... ports don't refresh automatically their position...
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsKernelEditorGraphic / wxVtkSceneManager.h
index db78193a2eebe90dc04f5a5ef0c73ff95595acde..55343688793515d83555e59cd9af5b0a028a567c 100644 (file)
@@ -45,6 +45,8 @@ Version:   $Revision$
 
 //Includes same project
 #include "GObjectsMVCFactory.h"
+#include "Observer.h"
+#include "GPortModel.h"
 
 //Includes bbtk
 #include <bbtkBlackBoxInputDescriptor.h>
@@ -54,6 +56,9 @@ Version:   $Revision$
 #include <wxVtk3DBaseView.h>
 #include <InteractorStyleMaracas.h>
 #include <vtkInteractorStyleBaseView2D.h>
+#include <manualContourControler.h>
+#include <manualViewContour.h>
+#include <manualContourModel.h>
 
 //Includes vtk
 #include <vtkRenderWindow.h>
@@ -69,7 +74,7 @@ Version:   $Revision$
 namespace bbtk
 {
 
-       class wxVtkSceneManager : public InteractorStyleMaracas 
+       class wxVtkSceneManager : public InteractorStyleMaracas , public Observer
        {
        public: 
                wxVtkSceneManager(wxDropTarget *parent, wxVtk3DBaseView *baseView, int id);
@@ -77,23 +82,28 @@ namespace bbtk
 
                void configureBaseView();
                void createGBlackBox(int x, int y,std::string packageName, std::string boxName);
-               void createGInputPort(BlackBoxInputDescriptor *desc,GBlackBoxModel *blackBox);
-               void createGOutputPort(BlackBoxOutputDescriptor *desc,GBlackBoxModel *blackBox);
+               void createGInputPort(BlackBoxInputDescriptor *desc,GBlackBoxModel *blackBox, int pos);
+               void createGOutputPort(BlackBoxOutputDescriptor *desc,GBlackBoxModel *blackBox, int pos);
+               void createGConnector(GPortModel* startPort);
+
                void registerController(InteractorStyleMaracas *param);
 
                vtkRenderWindow* getRenderWindow();
                vtkRenderer* getRenderer();
+
                void disconnectDrop();
+               
                virtual bool OnMouseMove();
 
+               virtual void update(int command);
                
        private:
 
                int _id;
                wxVtk3DBaseView *_baseView;
 
-               std::vector<GObjectModel*> objects;
-               std::vector<GObjectModel*> selectedObjects;
+               std::vector<GObjectModel*> _objects;
+               std::vector<GObjectModel*> _selectedObjects;
 
        protected: