}
//=========================================================================
- wxGEditorTabPanel::wxGEditorTabPanel(wxWindow *parent,int id):wxPanel(parent)
+ wxGEditorTabPanel::wxGEditorTabPanel(wxWindow *parent,int id):wxPanel(parent),wxTextDropTarget()
{
_id=id;
_panelAUIMgr = new wxAuiManager(this);
//=========================================================================
wxGEditorTabPanel::~wxGEditorTabPanel()
{
+ delete _sceneManager;
}
//=========================================================================
{
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();
bool wxGEditorTabPanel::OnDropText(wxCoord x, wxCoord y, const wxString& data)
{
-
+ _sceneManager->createGBlackBox();
cout<<"RaC DyD:"<<data<<" x:"<<x<<" y:"<<y<<endl;
return true;