Commit 9c365856 authored by Mario Hlawitschka's avatar Mario Hlawitschka
Browse files

used nicer interface for connectors

parent c9ee05d0
......@@ -72,16 +72,12 @@ const std::string WMTransferFunction1D::getDescription() const
void WMTransferFunction1D::connectors()
{
// the data set we use for displaying the histogram
m_input = boost::shared_ptr< WModuleInputData < WDataSetSingle > >(
new WModuleInputData< WDataSetSingle >( shared_from_this(),
"histogram input", "The data set used to display a histogram." ) );
addConnector( m_input );
m_input = WModuleInputData < WDataSetSingle >::createAndAdd( shared_from_this(),
"histogram input", "The data set used to display a histogram." );
// an output connector for the transfer function created
m_output = boost::shared_ptr< WModuleOutputData < WDataSetSingle > >(
new WModuleOutputData< WDataSetSingle >( shared_from_this(),
"transferFunction1D", "The selected transfer function" ) );
addConnector( m_output );
m_output = WModuleOutputData < WDataSetSingle >::createAndAdd( shared_from_this(),
"transferFunction1D", "The selected transfer function" );
WModule::connectors();
}
......
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