Added creation of IJK-slices from context menu in 3D scene.

p4#: 21367
This commit is contained in:
Magne Sjaastad
2013-04-23 07:29:37 +02:00
parent 0d4ad83f6b
commit d3fa2d5af5
4 changed files with 199 additions and 4 deletions

View File

@@ -1441,3 +1441,19 @@ void RiuMainWindow::restoreTreeViewState()
}
}
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RiuMainWindow::setCurrentObjectInTreeView(caf::PdmObject* object)
{
if (m_treeView && m_treeModelPdm)
{
QModelIndex mi = m_treeModelPdm->getModelIndexFromPdmObject(object);
if (mi.isValid())
{
m_treeView->setCurrentIndex(mi);
}
}
}