]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxGEditorTabPanel.cxx
*** empty log message ***
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsWxGUIEditorGraphic / wxGEditorTabPanel.cxx
index 682d3d4e4b8602010ae87854847c19bd5481f42b..7b9736e259d56fb183f6a5952a1b6b9c840ee1ed 100644 (file)
@@ -43,11 +43,13 @@ namespace bbtk
        //=========================================================================
        wxGEditorTabPanel::wxGEditorTabPanel()
        {
+               printf ("EED %p wxGEditorTabPanel 1 ()\n" , this );
        }
 
        //=========================================================================
        wxGEditorTabPanel::wxGEditorTabPanel(wxWindow *parent,int id):wxPanel(parent),wxTextDropTarget()
        {
+               printf ("EED %p wxGEditorTabPanel 2 ()\n" , this );
                _id=id;
                _panelAUIMgr = new wxAuiManager(this);
                _sceneManager = NULL;
@@ -57,7 +59,8 @@ namespace bbtk
        //=========================================================================
        wxGEditorTabPanel::~wxGEditorTabPanel()
        {
-               _sceneManager->disconnectDrop();
+printf ("EED %p ~wxGEditorTabPanel()\n" , this );
+//ED02JUIN2010         _sceneManager->disconnectDrop();
        }
        
        //=========================================================================
@@ -65,10 +68,10 @@ namespace bbtk
        {
                wxVtk3DBaseView *baseview = new wxVtk3DBaseView(this);
                baseview->Configure();
-
                _sceneManager=new wxVtkSceneManager(this,baseview,_id);
-
                _panelAUIMgr->AddPane((wxWindow*)baseview->GetWxVTKRenderWindowInteractor(),wxAuiPaneInfo().Fixed().CenterPane());
+//EED02JUIN2010
+
                _panelAUIMgr->Update();
        }
 
@@ -209,6 +212,27 @@ namespace bbtk
        }
 
        //=========================================================================
+       
+       std::map<int,GObjectController*> wxGEditorTabPanel::getSelectedObjects()
+       {
+               return _sceneManager->getSelectedObjects();
+       }
+
+       //=========================================================================
+
+       void wxGEditorTabPanel::addObjects(std::map<int,GObjectController*> objectsMap)
+       {
+               _sceneManager->addObjects(objectsMap);
+       }
+
+       //=========================================================================     
+       
+       int wxGEditorTabPanel::getNumSelectedObjects()
+       {
+               return _sceneManager->getNumSelectedObjects();
+       }
+
+       //=========================================================================     
 
 }  // EO namespace bbtk