//=========================================================================
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;
//=========================================================================
wxGEditorTabPanel::~wxGEditorTabPanel()
{
- _sceneManager->disconnectDrop();
+printf ("EED %p ~wxGEditorTabPanel()\n" , this );
+//ED02JUIN2010 _sceneManager->disconnectDrop();
}
//=========================================================================
{
wxVtk3DBaseView *baseview = new wxVtk3DBaseView(this);
baseview->Configure();
-
_sceneManager=new wxVtkSceneManager(this,baseview,_id);
+ printf("RaC-EED 21-06-2010 wxGEditorTabPanel::initWxVtkCanvas Remove the panelAUIMgr, and change to a normal sizer inside the wxGEditorTabPanel\n");
_panelAUIMgr->AddPane((wxWindow*)baseview->GetWxVTKRenderWindowInteractor(),wxAuiPaneInfo().Fixed().CenterPane());
+//EED02JUIN2010
+
_panelAUIMgr->Update();
}
//=========================================================================
- std::string wxGEditorTabPanel::getDiagramScript()
+ std::string wxGEditorTabPanel::getDiagramBBS()
{
- return _sceneManager->getDiagramScript();
+ return _sceneManager->getDiagramBBS();
}
//=========================================================================
- void wxGEditorTabPanel::editBlackBox(GBlackBoxModel *bbmodel)
+ std::string wxGEditorTabPanel::saveComplexBoxBBS(std::string cbName,std::string cbAuthor,std::string cbCategory,std::string cbDescription)
{
- _panelsManager->editBlackBox(bbmodel);
+ return _sceneManager->saveComplexBoxBBS(cbName,cbAuthor,cbCategory,cbDescription);
}
//=========================================================================
-
- void wxGEditorTabPanel::editDiagramParameters(wxVtkSceneManager* scene)
+
+ void wxGEditorTabPanel::editBlackBox(GBlackBoxModel *bbmodel)
{
- _panelsManager->editDiagramParameters(scene);
+ _panelsManager->editBlackBox(bbmodel);
}
//=========================================================================
}
//=========================================================================
+
+ 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