X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FEditorGraphicBBS%2FbbsKernelEditorGraphic%2FwxVtkSceneManager.h;h=38552dbe7fe0e3ff0860a1168fb190097becddaa;hb=e628a3dc4645cb347ebf060b145e626cc31a65f4;hp=7d1c7d0b9c55cb1c7fadf90510cb056f061c3404;hpb=522d684c97b10743148e2fbf2371cd02ff1fa42e;p=bbtkGEditor.git diff --git a/lib/EditorGraphicBBS/bbsKernelEditorGraphic/wxVtkSceneManager.h b/lib/EditorGraphicBBS/bbsKernelEditorGraphic/wxVtkSceneManager.h index 7d1c7d0..38552db 100644 --- a/lib/EditorGraphicBBS/bbsKernelEditorGraphic/wxVtkSceneManager.h +++ b/lib/EditorGraphicBBS/bbsKernelEditorGraphic/wxVtkSceneManager.h @@ -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 +#include //Includes creaMaracasVisu #include #include +#include +#include +#include //Includes vtk #include @@ -56,13 +67,18 @@ Version: $Revision$ #include #include +#include +#include + //Includes std #include +#include + namespace bbtk { - class wxVtkSceneManager : public InteractorStyleMaracas + class wxVtkSceneManager : public InteractorStyleMaracas , public Observer { public: wxVtkSceneManager(wxDropTarget *parent, wxVtk3DBaseView *baseView, int id); @@ -70,20 +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 _objects; + std::map _controllers; + protected: };