25 #include "core/common/WLimits.h"
26 #include "WEventIDLimitationPropertyHandler.h"
32 m_protonData( protonData ),
33 m_properties( properties ),
34 m_dataUpdate( dataUpdate )
41 WPropGroup eventIDGroup =
m_properties->addPropertyGroup(
"Event Id Limitation",
"Adjust the range of eventIDs to be shown.", 0 );
42 m_minCap = eventIDGroup->addProperty(
"Minimum event id",
"Filters out every event id which is lower than the set value.", 1 );
43 m_maxCap = eventIDGroup->addProperty(
"Maximum event id",
"Filters out every event id which is higher than the set value.", 2000 );
81 if( eventIDIndex < 0 )
90 int calc = std::stoi( ( *iter ).at( eventIDIndex ) );
void updateMesh()
Update your mesh when changing properties.
void determineMinMaxEventID()
Determines smalles und biggest eventID.
void createProperties()
creates the group property and the subproperty
WProtonData::SPtr m_protonData
Pointer to the content and header of the CSV.
WEventIDLimitationPropertyHandler(WProtonData::SPtr protonData, WPropertyGroup::SPtr properties, WEventIDLimitationPropertyHandler::CallbackPtr dataUpdate)
constructor
WEventIDLimitationPropertyHandler::CallbackPtr m_dataUpdate
A function variable that reinitializes the WDataSets.
void updateProperty()
update current group property and subproperty
WPropertyGroup::SPtr m_properties
A property variable that is generated by the WModul.
WPropInt getMaxCap()
Getter.
WPropInt getMinCap()
Getter.
boost::function< void() > CallbackPtr
Function variables for updating the data.
WPropInt m_maxCap
Set upper border of range of eventID selection.
WPropTrigger m_applySelection
Apply the current event ID selection.
WPropInt m_minCap
Set lower border of range of eventID selection.
boost::function< void(std::shared_ptr< WPropertyBase >)> PropertyChangeNotifierType
Signal signature emitted during set operations.
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 getEventId()
getter
@ PV_TRIGGER_TRIGGERED
Trigger property: got triggered.
@ PV_TRIGGER_READY
Trigger property: is ready to be triggered (again)
const int32_t MAX_INT32_T
Maximum int32_t value.
const int32_t MIN_INT32_T
Lowest/Minimum int32_t value (equivalent to LOWEST_INT32_T)