Commit 19c3eeac authored by Alexander Wiebel's avatar Alexander Wiebel

[CHANGE #423] reordered connectors of DVR to make dataset the first one

this allows a more intuitive behavior when clicking the button in the toolbar
parent 37782d63
......@@ -89,12 +89,12 @@ const std::string WMDirectVolumeRendering::getDescription() const
void WMDirectVolumeRendering::connectors()
{
// The transfer function for our DVR
m_transferFunction = WModuleInputData< WDataSetSingle >::createAndAdd( shared_from_this(), "transfer function", "The 1D transfer function." );
// DVR needs one input: the scalar dataset
m_input = WModuleInputData< WDataSetScalar >::createAndAdd( shared_from_this(), "in", "The scalar dataset." );
// The transfer function for our DVR
m_transferFunction = WModuleInputData< WDataSetSingle >::createAndAdd( shared_from_this(), "transfer function", "The 1D transfer function." );
// Optional: the gradient field
m_gradients = WModuleInputData< WDataSetVector >::createAndAdd( shared_from_this(),
"gradients", "The gradient field of the dataset to display" );
......@@ -468,4 +468,3 @@ void WMDirectVolumeRendering::moduleMain()
// allocated memory and remove all OSG nodes.
WKernel::getRunningKernel()->getGraphicsEngine()->getScene()->remove( rootNode );
}
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