25 #ifndef WVISUALIZATIONPROPERTYHANDLER_H
26 #define WVISUALIZATIONPROPERTYHANDLER_H
30 #include "../WProtonData.h"
31 #include "../WSingleSelectorName.h"
48 typedef std::shared_ptr< WVisualizationPropertyHandler >
SPtr;
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
A class that stores a 1D transfer function which consists of a linear interpolation of alpha and colo...
Creates, updates and handles the visualization properties.
WPropBool m_enabledClusterSize
En-/Disables the clustersize conversion.
void toggleColorProperties()
toggle the visibility of plain color and transfer function
WPropBool getEnableClusterSize()
Getter.
WPropBool m_sizesFromEdep
Decides whether to scale the points sizes according to their deposited energy.
boost::function< void() > CallbackPtr
Function variables for updating the data.
WPropColor getColorSelection()
Getter.
WPropTrigger m_applyGradient
Property that holds a trigger to apply the current transfer function for the gradient.
WPropBool getSizesFromEdep()
Getter.
WTransferFunction setColorGradient()
Sets the transfer function.
WPropColor m_colorSelection
Property that holds the current selected color when not coloring points based on their deposited ener...
WPropTransferFunction m_gradient
Property that holds the current transfer function for the gradient.
void propertyCallback(WPropertyBase::SPtr property)
Reload data when properties for selection of primaries and secondaries changed.
WPropTransferFunction getTransferFunction()
Getter.
WVisualizationPropertyHandler(WProtonData::SPtr protonData, WPropertyGroup::SPtr properties, WVisualizationPropertyHandler::CallbackPtr dataUpdate)
constructor
void createProperties()
creates the group property and the subproperty
WPropBool m_colorFromEdep
Decides whether to color points based on the deposited energy or not.
WProtonData::SPtr m_protonData
Pointer to the content and header of the CSV.
std::shared_ptr< WVisualizationPropertyHandler > SPtr
shared_ptr that points to itself
WPropertyGroup::SPtr m_properties
A property variable that is generated by the WModul.
void updateProperty()
update current group property and subproperty
WPropGroup m_visualizationGroup
Property group for visualization modes.
WPropBool getColorFromEdep()
Getter.
WVisualizationPropertyHandler::CallbackPtr m_dataUpdate
A function variable that reinitializes the WDataSets.