Commit 529b9096 by schurade

[FIX]offset slider now updates properly

parent 011e77e1
......@@ -380,11 +380,16 @@ void WMClusterDisplay::moduleMain()
break;
}
if( m_propSelectedCluster->changed() || m_propSelectedClusterOffset->changed() )
if( m_propSelectedCluster->changed() )
{
handleSelectedClusterChanged();
}
if ( m_propSelectedClusterOffset->changed() )
{
handleOffsetChanged();
}
if( m_propSubClusters->changed() )
{
handleBiggestClustersChanged();
......@@ -421,6 +426,20 @@ void WMClusterDisplay::moduleMain()
void WMClusterDisplay::handleSelectedClusterChanged()
{
m_rootCluster = m_propSelectedCluster->get( true );
m_propSelectedClusterOffset->setMax( m_tree.getMaxLevel() - m_tree.getLevel( m_propSelectedCluster->get() ) );
m_propSelectedClusterOffset->setMin( 0 - m_tree.getLevel( m_propSelectedCluster->get() ) );
m_propSelectedClusterOffset->set( 0 );
m_propSelectedClusterOffset->get( true );
WKernel::getRunningKernel()->getRoiManager()->setExternalBitfield( m_tree.getOutputBitfield( m_rootCluster ) );
m_propSubLevelsToColor->setMax( m_tree.getLevel( m_rootCluster ) );
m_dendrogramDirty = true;
}
void WMClusterDisplay::handleOffsetChanged()
{
if ( m_propSelectedClusterOffset->get( true ) == 0 )
{
m_rootCluster = m_propSelectedCluster->get( true );
......
......@@ -157,6 +157,11 @@ private:
/**
* function to handle user input
*/
void handleOffsetChanged();
/**
* function to handle user input
*/
void handleSelectedLevelChanged();
/**
......
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