X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FEditorGraphicBBS%2FbbsKernelEditorGraphic%2FwxVtkSceneManager.h;h=38552dbe7fe0e3ff0860a1168fb190097becddaa;hb=e628a3dc4645cb347ebf060b145e626cc31a65f4;hp=7a0a5413ee4a66be8c3cee3ed416cecf7b2e5378;hpb=1910361932998533c37b53ea81d580bba29f0ee1;p=bbtkGEditor.git diff --git a/lib/EditorGraphicBBS/bbsKernelEditorGraphic/wxVtkSceneManager.h b/lib/EditorGraphicBBS/bbsKernelEditorGraphic/wxVtkSceneManager.h index 7a0a541..38552db 100644 --- a/lib/EditorGraphicBBS/bbsKernelEditorGraphic/wxVtkSceneManager.h +++ b/lib/EditorGraphicBBS/bbsKernelEditorGraphic/wxVtkSceneManager.h @@ -43,30 +43,73 @@ Version: $Revision$ #ifndef __wxVtkSceneManager_h__ #define __wxVtkSceneManager_h__ +//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 +#include +#include +#include + +#include +#include //Includes std #include +#include + namespace bbtk { - class wxVtkSceneManager : public InteractorStyleMaracas + class wxVtkSceneManager : public InteractorStyleMaracas , public Observer { public: - wxVtkSceneManager(wxVtk3DBaseView *baseView, int id); + wxVtkSceneManager(wxDropTarget *parent, wxVtk3DBaseView *baseView, int id); ~wxVtkSceneManager(); void configureBaseView(); - //void addGBox(double x=0, double y=0); + 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; + std::vector _objects; + std::map _controllers; + protected: };