25 #ifndef WMFILTERPROTONDATA_H
26 #define WMFILTERPROTONDATA_H
34 #include <boost/lexical_cast.hpp>
36 #include "WCsvConverter.h"
37 #include "WPropertyStatus.h"
38 #include "WProtonData.h"
39 #include "core/common/WItemSelectionItem.h"
40 #include "core/common/WItemSelector.h"
41 #include "core/dataHandler/WDataSetCSV.h"
42 #include "core/dataHandler/WDataSetFibers.h"
43 #include "core/dataHandler/WDataSetPoints.h"
44 #include "core/kernel/WKernel.h"
45 #include "core/kernel/WModule.h"
46 #include "core/kernel/WModuleContainer.h"
47 #include "core/kernel/WModuleInputData.h"
48 #include "core/kernel/WModuleOutputData.h"
88 virtual const std::string
getName()
const;
102 virtual std::shared_ptr< WModule >
factory()
const;
145 std::shared_ptr< WModuleInputData< WDataSetCSV > >
m_input;
Test class of WCsvConverter class.
This module simply registers a given csv dataset to the csv handling mechanism.
void setToLoadedProperties()
Sets the current properties to the state of the loaded properties.
std::shared_ptr< std::vector< size_t > > SPSizeVector
represents a std::shared_ptr to a vector containing a vector of size_t.
std::shared_ptr< WModuleOutputData< WDataSetSingle > > m_output_transferFunction
WDataSetSingle output connector to output current transfer function.
std::shared_ptr< WDataSetCSV > m_dataset
Stores information of the input-csv-data.
virtual ~WMFilterProtonData()
Standard destructor.
virtual const char ** getXPMIcon() const
Get the icon for this module in XPM format.
std::shared_ptr< WCsvConverter > m_converter
Contains the algorithm that converts the raw CSV file into compatible WDataSets (Points,...
std::shared_ptr< WModuleOutputData< WDataSetFibers > > m_output_fibers
WDataSetFibers output connector (required for this module).
virtual const std::string getName() const
Returns the name of this module.
void createColorBar()
Creates the transfer function color bar module within this module container.
WModule::SPtr m_colorBar
Reference to the transfer function color bar module within this module container.
WProtonData::SPtr m_protonData
Pointer that points to the Proton data from the CSV file
std::shared_ptr< std::vector< float > > SPFloatVector
represents a std::shared_ptr to a vector containing a vector of floats.
std::shared_ptr< WPropertyStatus > m_propertyStatus
Contains all property-groups and the subproperties.
virtual void activate()
Toggles activation for inner module based on activation of this module.
virtual const std::string getDescription() const
Retruns the description of this module.
std::shared_ptr< WModuleOutputData< WDataSetPoints > > m_output_points_eventIds
WDataSetPointsAndEventIDs output connector to output points and eventIDs for PointConn.
virtual void connectors()
Initialize the connectors this module is using.
void clearProperties()
Removes the property groups.
void loadNotifier(WPropertyGroup::SPtr group, WPropertyBase::SPtr property)
Notifier for the dummy properties.
virtual void properties()
Initialize the properties for this module.
std::vector< std::pair< std::string, std::string > > m_loadedProperties
Contains the loaded properties.
WMFilterProtonData()
Standard constructor.
void updateProperty()
update added group property and subproperty
virtual void moduleMain()
Entry point after loading the module.
virtual std::shared_ptr< WModule > factory() const
Due to the prototype design pattern used to build modules, this method returns a new instance of this...
std::shared_ptr< WModuleInputData< WDataSetCSV > > m_input
Input connector (required for this module).
std::shared_ptr< WModuleOutputData< WDataSetPoints > > m_output_points
WDataSetPoints output connector (required for this module).
void setOutputFromCSV()
Create outputs, so it can be displayed by the fiber display and the point renderer.
Class able to contain other modules.
std::shared_ptr< WModule > SPtr
Shared pointer to a WModule.
std::shared_ptr< WPropertyBase > SPtr
Convenience typedef for a std::shared_ptr< WPropertyBase >
std::shared_ptr< WPropertyGroup > SPtr
shared pointer to object of this type
std::shared_ptr< WProtonData > SPtr
shared_ptr that points to itself