Commit ea9e3492 authored by Sebastian Eichelbaum's avatar Sebastian Eichelbaum
Browse files

[CHANGE] - clicking a tex in the colormapper tab shows its properties.

parent 26b16d63
......@@ -191,6 +191,8 @@ void WQtControlPanel::connectSlots()
connect( m_textureSorter, SIGNAL( textureSelectionChanged( boost::shared_ptr< WDataSet > ) ),
this, SLOT( selectDataModule( boost::shared_ptr< WDataSet > ) ) );
// }
connect( m_colormapper, SIGNAL( textureSelectionChanged( osg::ref_ptr< WGETexture3D > ) ),
this, SLOT( selectDataModule( osg::ref_ptr< WGETexture3D > ) ) );
connect( m_roiTreeWidget, SIGNAL( dragDrop() ), this, SLOT( handleDragDrop() ) );
}
......@@ -798,6 +800,12 @@ void WQtControlPanel::selectDataModule( boost::shared_ptr< WDataSet > dataSet )
selectTreeItem();
}
void WQtControlPanel::selectDataModule( osg::ref_ptr< WGETexture3D > texture )
{
m_tabWidget->clear();
buildPropTab( texture->getProperties(), texture->getInformationProperties() );
}
void WQtControlPanel::setNewActiveModule( boost::shared_ptr< WModule > module )
{
m_tabWidget->clear();
......
......@@ -351,6 +351,12 @@ private slots:
*/
void selectDataModule( boost::shared_ptr< WDataSet > dataSet );
/**
* Will be called to select the data module for the given texture.
* \param texture the texture currently selected.
*/
void selectDataModule( osg::ref_ptr< WGETexture3D > texture );
/**
* function that builds the property tab
*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment