25 #include "core/common/WTransferFunction.h"
27 #include "WVisualizationPropertyHandler.h"
33 m_protonData( protonData ),
34 m_properties( properties ),
35 m_dataUpdate( dataUpdate )
53 "\"Color by energy deposition\" is disabled.",
54 defaultColor::WHITE, notifier );
144 tf.
addColor( 0.0, WColor( 0.0, 0.0, 1.0, 1.0 ) );
145 tf.
addColor( 0.25, WColor( 0.5, 0.0, 0.91, 1.0 ) );
146 tf.
addColor( 0.5, WColor( 0.75, 0.0, 0.73, 1.0 ) );
147 tf.
addColor( 0.75, WColor( 0.97, 0.0, 0.53, 1.0 ) );
148 tf.
addColor( 1.0, WColor( 1.0, 0.0, 0.0, 1.0 ) );
boost::function< void(std::shared_ptr< WPropertyBase >)> PropertyChangeNotifierType
Signal signature emitted during set operations.
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
static std::string getX()
getter
static std::string getY()
getter
static std::string getZ()
getter
static std::string getEdep()
getter
A class that stores a 1D transfer function which consists of a linear interpolation of alpha and colo...
void addColor(double iso, const WColor &color)
Insert a new color point.
void addAlpha(double iso, double alpha)
Insert a new alpha point.
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.
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.
@ PV_TRIGGER_TRIGGERED
Trigger property: got triggered.
@ PV_TRIGGER_READY
Trigger property: is ready to be triggered (again)