]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsKernelEditorGraphic/wxVtkSceneManager.h
Now the contour is created from the center of the initial port
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsKernelEditorGraphic / wxVtkSceneManager.h
index 92f4a60aec3b0d8f34e9be398e39f315a46e318d..38552dbe7fe0e3ff0860a1168fb190097becddaa 100644 (file)
@@ -45,10 +45,21 @@ Version:   $Revision$
 
 //Includes same project
 #include "GObjectsMVCFactory.h"
+#include "Observer.h"
+#include "GPortModel.h"
+#include "vtkGPortView.h"
+#include "GConnectorView.h"
+
+//Includes bbtk
+#include <bbtkBlackBoxInputDescriptor.h>
+#include <bbtkBlackBoxDescriptor.h>
 
 //Includes creaMaracasVisu
 #include <wxVtk3DBaseView.h>
 #include <InteractorStyleMaracas.h>
+#include <vtkInteractorStyleBaseView2D.h>
+#include <manualContourControler.h>
+#include <manualContourModel.h>
 
 //Includes vtk
 #include <vtkRenderWindow.h>
@@ -56,13 +67,18 @@ Version:   $Revision$
 #include <vtkRenderer.h>
 #include <vtkInteractorStyleImage.h>
 
+#include <vtkVectorText.h>
+#include <vtkLinearExtrusionFilter.h>
+
 //Includes std
 #include <iostream>
+#include <map>
+
 
 namespace bbtk
 {
 
-       class wxVtkSceneManager : public InteractorStyleMaracas 
+       class wxVtkSceneManager : public InteractorStyleMaracas , public Observer
        {
        public: 
                wxVtkSceneManager(wxDropTarget *parent, wxVtk3DBaseView *baseView, int id);
@@ -70,19 +86,30 @@ namespace bbtk
 
                void configureBaseView();
                void createGBlackBox(int x, int y,std::string packageName, std::string boxName);
+               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);
 
                vtkRenderWindow* getRenderWindow();
                vtkRenderer* getRenderer();
+
                void disconnectDrop();
+               
+               virtual bool OnMouseMove();
 
+               virtual void update(int idController,int command);
                
        private:
 
                int _id;
                wxVtk3DBaseView *_baseView;
 
-               void refreshRenderWindow();
+               std::vector<GObjectController*> _objects;
+               std::map<int,GObjectController*> _controllers;
+
        protected:
 
        };