]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsKernelEditorGraphic/wxVtkSceneManager.h
Updated Version with the moving of the objects updated and the background doesn't...
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsKernelEditorGraphic / wxVtkSceneManager.h
index 4a3f7e1a090320646cb33313b6bb03d9af1075e8..c6f7a6b11468719bec613bf3d7e03722b71d654b 100644 (file)
@@ -53,6 +53,7 @@ Version:   $Revision$
 #include "vtkGPortView.h"
 #include "manualConnectorContourView.h"
 #include "manualConnectorContourController.h"
+#include "wxGEditorTabPanel.h"
 
 //Includes bbtk
 #include <bbtkBlackBoxInputDescriptor.h>
@@ -79,11 +80,12 @@ Version:   $Revision$
 
 namespace bbtk
 {
+       class wxGEditorTabPanel;
 
        class wxVtkSceneManager : public InteractorStyleMaracas , public Observer
        {
        public: 
-               wxVtkSceneManager(wxDropTarget *parent, wxVtk3DBaseView *baseView, int idManager);
+               wxVtkSceneManager(wxGEditorTabPanel *parent, wxVtk3DBaseView *baseView, int idManager);
                ~wxVtkSceneManager();
 
                void configureBaseView();
@@ -101,11 +103,18 @@ namespace bbtk
                void disconnectDrop();
                
                virtual bool OnMouseMove();
+               virtual bool  OnLeftButtonDown(); 
+               virtual bool  OnLeftButtonUp();
+               virtual bool OnRightButtonUp();
 
                virtual void update(int idController,int command);
+
+               void displayBlackBoxInfo(std::string packageName, std::string boxName);
                
        private:
 
+               wxGEditorTabPanel *_parent;
+
                // Last controller created
                int _idLastController;
 
@@ -115,12 +124,18 @@ namespace bbtk
                // Boxes number in the scene
                int _numBoxes;
 
+               // StartDragging
+               bool _startDragging;
+
                wxVtk3DBaseView *_baseView;
 
                int _worldState;
 
                std::map<int,GObjectController*> _controllers;
 
+               //Saves the id's of the selected objects in the controllers map
+               std::vector<int> _selectedObjects;
+
        protected:
 
        };