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() { ...@@ -142,13 +142,13 @@ void SceneSelection::ViewDensitySlices() {
if (node) { if (node) {
gfx::MapIsoP obj = dyn_cast<gfx::MapIso> (node); gfx::MapIsoP obj = dyn_cast<gfx::MapIso> (node);
if (obj) { if (obj) {
// The following is a hack. I need to pass a reference to an ImagHandle // 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 // that never goes out of scope, so I get a reference from the MapIso using
// GetMap and pass it to the CreateDataViewer // GetMap and pass it to the CreateDataViewer
img::gui::DataViewer* dv = GostyApp::Instance()->CreateDataViewer(obj->GetMap()); img::gui::DataViewer* dv = GostyApp::Instance()->CreateDataViewer(obj->GetMap());
MainArea* ma = GostyApp::Instance()->GetPerspective()->GetMainArea(); MainArea* ma = GostyApp::Instance()->GetPerspective()->GetMainArea();
ma->AddWidget(QString(obj->GetName().c_str()), dv) ; ma->AddWidget(QString(obj->GetName().c_str()), dv) ;
dv->show(); dv->show();
} }
} }
} }
...@@ -295,6 +295,7 @@ void SceneSelection::SelectViews(){ ...@@ -295,6 +295,7 @@ void SceneSelection::SelectViews(){
} }
} }
gfx::EntityP SceneSelection::GetViewEntity() const{ gfx::EntityP SceneSelection::GetViewEntity() const{
return view_entity_; return view_entity_;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment