Commit f61c8d5d authored by Alexander Wiebel's avatar Alexander Wiebel
Browse files

[CHANGE] made conectors' dataset selection a bit more precise

parent c9ff6390
...@@ -104,9 +104,9 @@ void WMDistanceMap::connectors() ...@@ -104,9 +104,9 @@ void WMDistanceMap::connectors()
{ {
// initialize connectors // initialize connectors
m_input = boost::shared_ptr<WModuleInputData< WDataSet > >( m_input = boost::shared_ptr<WModuleInputData< WDataSetSingle > >(
new WModuleInputData< WDataSet >( shared_from_this(), new WModuleInputData< WDataSetSingle >( shared_from_this(),
"in", "Dataset to compute isosurface for." ) "in", "Dataset to compute distance map for." )
); );
// add it to the list of connectors. Please note, that a connector NOT added via addConnector will not work as expected. // add it to the list of connectors. Please note, that a connector NOT added via addConnector will not work as expected.
......
...@@ -88,7 +88,7 @@ protected: ...@@ -88,7 +88,7 @@ protected:
virtual void properties(); virtual void properties();
private: private:
boost::shared_ptr< WModuleInputData< WDataSet > > m_input; //!< Input connector required by this module. boost::shared_ptr< WModuleInputData< WDataSetSingle > > m_input; //!< Input connector required by this module.
/** /**
* Function to create a distance map from Anatomy data set. * Function to create a distance map from Anatomy data set.
......
...@@ -84,8 +84,8 @@ void WMNavSlices::connectors() ...@@ -84,8 +84,8 @@ void WMNavSlices::connectors()
// initialize connectors // initialize connectors
// XXX to add a new connector and to offer it, these simple steps need to be done // XXX to add a new connector and to offer it, these simple steps need to be done
// initialize it first // initialize it first
m_input= boost::shared_ptr<WModuleInputData< WDataSet > >( m_input= boost::shared_ptr<WModuleInputData< WDataSetSingle > >(
new WModuleInputData< WDataSet >( shared_from_this(), new WModuleInputData< WDataSetSingle >( shared_from_this(),
"in1", "List of datasets to show on the slices." ) "in1", "List of datasets to show on the slices." )
); );
......
...@@ -162,7 +162,7 @@ private: ...@@ -162,7 +162,7 @@ private:
/** /**
* Input connector required by this module. * Input connector required by this module.
*/ */
boost::shared_ptr<WModuleInputData< WDataSet > > m_input; boost::shared_ptr<WModuleInputData< WDataSetSingle > > m_input;
/** /**
* lock to prevent concurrent threads trying to update the osg node * lock to prevent concurrent threads trying to update the osg node
......
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