]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxGEditorTabPanel.cxx
First classes usign VTK objects . connection
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsWxGUIEditorGraphic / wxGEditorTabPanel.cxx
index 93653067a8b58e6dfb875614cd0d30aeb10fa1cb..e5c437be980fae4303cf7578d12c805f110a6259 100644 (file)
@@ -45,7 +45,7 @@ namespace bbtk
        }
 
        //=========================================================================
-       wxGEditorTabPanel::wxGEditorTabPanel(wxWindow *parent,int id):wxPanel(parent)
+       wxGEditorTabPanel::wxGEditorTabPanel(wxWindow *parent,int id):wxPanel(parent),wxTextDropTarget()
        {
                _id=id;
                _panelAUIMgr = new wxAuiManager(this);
@@ -57,6 +57,7 @@ namespace bbtk
        //=========================================================================
        wxGEditorTabPanel::~wxGEditorTabPanel()
        {
+               delete _sceneManager;
        }
        
        //=========================================================================
@@ -64,7 +65,8 @@ namespace bbtk
        {
                wxVtk3DBaseView *baseview = new wxVtk3DBaseView(this);
                baseview->Configure();
-               _sceneManager=new wxVtkSceneManager(baseview,_id);
+
+               _sceneManager=new wxVtkSceneManager(this,baseview,_id);
 
                _panelAUIMgr->AddPane((wxWindow*)baseview->GetWxVTKRenderWindowInteractor(),wxAuiPaneInfo().Fixed().CenterPane());
                _panelAUIMgr->Update();
@@ -74,7 +76,7 @@ namespace bbtk
 
        bool wxGEditorTabPanel::OnDropText(wxCoord x, wxCoord y, const wxString& data)
        {
-
+               _sceneManager->createGBlackBox();
                cout<<"RaC DyD:"<<data<<" x:"<<x<<" y:"<<y<<endl;
          return true;