Commit 0aea6b7e authored by Sebastian Eichelbaum's avatar Sebastian Eichelbaum
Browse files

[CHANGE] - adopted to new WModuleInputData connector

parent 43229ec0
......@@ -37,8 +37,11 @@
#include "WNavigationSliceModule.h"
#include "../../kernel/WKernel.h"
#include "../../kernel/WModuleInputConnector.h"
#include "../../kernel/WModule.h"
#include "../../kernel/WModuleConnector.h"
#include "../../kernel/WModuleInputData.hpp"
#include "../../dataHandler/WDataSet.h"
#include "../../dataHandler/WDataSetSingle.h"
#include "../../dataHandler/WSubject.h"
#include "../../dataHandler/WValueSet.hpp"
......@@ -78,8 +81,8 @@ void WNavigationSliceModule::connectors()
// initialize connectors
// XXX to add a new connector and to offer it, these simple steps need to be done
// initialize it first
m_Input= boost::shared_ptr<WModuleInputConnector>(
new WModuleInputConnector( shared_from_this(), "in1", "Dataset to show on the slices." )
m_Input= boost::shared_ptr<WModuleInputData<std::list<boost::shared_ptr<WDataSet> > > >(
new WModuleInputData<std::list<boost::shared_ptr<WDataSet> > >( shared_from_this(), "in1", "List of datasets to show on the slices." )
);
// add it to the list of connectors. Please note, that a connector NOT added via addConnector will not work as expected.
......
......@@ -29,13 +29,17 @@
#include <osg/Node>
#include "../../dataHandler/WDataSet.h"
#include "../../kernel/WModule.h"
#include "../../kernel/WModuleInputConnector.h"
#include "../../kernel/WModuleConnector.h"
#include "../../kernel/WModuleInputData.hpp"
#include "../../graphicsEngine/WShader.h"
// TODO(schurade): fix description
/**
* \par Description:
*
* Simple module for testing some WKernel functionality.
*/
class WNavigationSliceModule: public WModule
......@@ -114,7 +118,7 @@ private:
/**
* Input connector required by this module.
*/
boost::shared_ptr<WModuleInputConnector> m_Input;
boost::shared_ptr<WModuleInputData<std::list<boost::shared_ptr<WDataSet> > > > m_Input;
};
#endif // WNAVIGATIONSLICEMODULE_H
......
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