Skip to content
Snippets Groups Projects
Commit 8014351a authored by marco's avatar marco
Browse files

tabs are evil

git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@2023 5a81b35b-ba03-0410-adc8-b2c5c5119f08
parent 13a4eca5
No related branches found
No related tags found
No related merge requests found
......@@ -142,13 +142,13 @@ void SceneSelection::ViewDensitySlices() {
if (node) {
gfx::MapIsoP obj = dyn_cast<gfx::MapIso> (node);
if (obj) {
// The following is a hack. I need to pass a reference to an ImagHandle
// that never goes out of scope, so I get a reference from the MapIso using
// GetMap and pass it to the CreateDataViewer
img::gui::DataViewer* dv = GostyApp::Instance()->CreateDataViewer(obj->GetMap());
MainArea* ma = GostyApp::Instance()->GetPerspective()->GetMainArea();
ma->AddWidget(QString(obj->GetName().c_str()), dv) ;
dv->show();
// The following is a hack. I need to pass a reference to an ImagHandle
// that never goes out of scope, so I get a reference from the MapIso using
// GetMap and pass it to the CreateDataViewer
img::gui::DataViewer* dv = GostyApp::Instance()->CreateDataViewer(obj->GetMap());
MainArea* ma = GostyApp::Instance()->GetPerspective()->GetMainArea();
ma->AddWidget(QString(obj->GetName().c_str()), dv) ;
dv->show();
}
}
}
......@@ -295,6 +295,7 @@ void SceneSelection::SelectViews(){
}
}
gfx::EntityP SceneSelection::GetViewEntity() const{
return view_entity_;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment