OpenWalnut  1.5.0dev
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
WEventIDLimitationPropertyHandler Class Reference

Creates, updates and handles the EventID properties. More...

#include <WEventIDLimitationPropertyHandler.h>

+ Collaboration diagram for WEventIDLimitationPropertyHandler:

Public Types

typedef std::shared_ptr< WEventIDLimitationPropertyHandlerSPtr
 shared_ptr that points to itself More...
 
typedef boost::function< void() > CallbackPtr
 Function variables for updating the data. More...
 

Public Member Functions

 WEventIDLimitationPropertyHandler (WProtonData::SPtr protonData, WPropertyGroup::SPtr properties, WEventIDLimitationPropertyHandler::CallbackPtr dataUpdate)
 constructor More...
 
void createProperties ()
 creates the group property and the subproperty
More...
 
void updateProperty ()
 update current group property and subproperty
More...
 
WPropInt getMinCap ()
 Getter. More...
 
WPropInt getMaxCap ()
 Getter. More...
 

Private Member Functions

void updateMesh ()
 Update your mesh when changing properties. More...
 
void determineMinMaxEventID ()
 Determines smalles und biggest eventID. More...
 

Private Attributes

WProtonData::SPtr m_protonData
 Pointer to the content and header of the CSV. More...
 
WPropertyGroup::SPtr m_properties
 A property variable that is generated by the WModul. More...
 
WEventIDLimitationPropertyHandler::CallbackPtr m_dataUpdate
 A function variable that reinitializes the WDataSets. More...
 
WPropInt m_minCap
 Set lower border of range of eventID selection. More...
 
WPropInt m_maxCap
 Set upper border of range of eventID selection. More...
 
WPropTrigger m_applySelection
 Apply the current event ID selection. More...
 

Detailed Description

Creates, updates and handles the EventID properties.

Definition at line 37 of file WEventIDLimitationPropertyHandler.h.

Member Typedef Documentation

◆ CallbackPtr

typedef boost::function< void( ) > WEventIDLimitationPropertyHandler::CallbackPtr

Function variables for updating the data.

Definition at line 48 of file WEventIDLimitationPropertyHandler.h.

◆ SPtr

shared_ptr that points to itself

Definition at line 43 of file WEventIDLimitationPropertyHandler.h.

Constructor & Destructor Documentation

◆ WEventIDLimitationPropertyHandler()

WEventIDLimitationPropertyHandler::WEventIDLimitationPropertyHandler ( WProtonData::SPtr  protonData,
WPropertyGroup::SPtr  properties,
WEventIDLimitationPropertyHandler::CallbackPtr  dataUpdate 
)
explicit

constructor

Parameters
protonDataPointer to the content and header of the CSV
propertiesA property variable that is generated by the WModul
dataUpdateA function variable that reinitializes the WDataSets

Definition at line 29 of file WEventIDLimitationPropertyHandler.cpp.

Member Function Documentation

◆ createProperties()

void WEventIDLimitationPropertyHandler::createProperties ( )

creates the group property and the subproperty

Definition at line 38 of file WEventIDLimitationPropertyHandler.cpp.

References m_applySelection, m_maxCap, m_minCap, m_properties, WPVBaseTypes::PV_TRIGGER_READY, updateMesh(), and updateProperty().

+ Here is the call graph for this function:

◆ determineMinMaxEventID()

void WEventIDLimitationPropertyHandler::determineMinMaxEventID ( )
private

Determines smalles und biggest eventID.

Definition at line 77 of file WEventIDLimitationPropertyHandler.cpp.

References WSingleSelectorName::getEventId(), m_maxCap, m_minCap, m_protonData, wlimits::MAX_INT32_T, and wlimits::MIN_INT32_T.

Referenced by updateProperty().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getMaxCap()

WPropInt WEventIDLimitationPropertyHandler::getMaxCap ( )

Getter.

Returns
WPropInt of the MaxCap

Definition at line 115 of file WEventIDLimitationPropertyHandler.cpp.

References m_maxCap.

◆ getMinCap()

WPropInt WEventIDLimitationPropertyHandler::getMinCap ( )

Getter.

Returns
WPropInt of the MinCap

Definition at line 110 of file WEventIDLimitationPropertyHandler.cpp.

References m_minCap.

◆ updateMesh()

void WEventIDLimitationPropertyHandler::updateMesh ( )
private

Update your mesh when changing properties.

Definition at line 67 of file WEventIDLimitationPropertyHandler.cpp.

References m_applySelection, m_dataUpdate, WPVBaseTypes::PV_TRIGGER_READY, and WPVBaseTypes::PV_TRIGGER_TRIGGERED.

Referenced by createProperties().

+ Here is the caller graph for this function:

◆ updateProperty()

void WEventIDLimitationPropertyHandler::updateProperty ( )

update current group property and subproperty

Definition at line 49 of file WEventIDLimitationPropertyHandler.cpp.

References determineMinMaxEventID(), WSingleSelectorName::getEventId(), m_applySelection, m_maxCap, m_minCap, and m_protonData.

Referenced by createProperties().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ m_applySelection

WPropTrigger WEventIDLimitationPropertyHandler::m_applySelection
private

Apply the current event ID selection.

Definition at line 114 of file WEventIDLimitationPropertyHandler.h.

Referenced by createProperties(), updateMesh(), and updateProperty().

◆ m_dataUpdate

WEventIDLimitationPropertyHandler::CallbackPtr WEventIDLimitationPropertyHandler::m_dataUpdate
private

A function variable that reinitializes the WDataSets.

Definition at line 99 of file WEventIDLimitationPropertyHandler.h.

Referenced by updateMesh().

◆ m_maxCap

WPropInt WEventIDLimitationPropertyHandler::m_maxCap
private

Set upper border of range of eventID selection.

Definition at line 109 of file WEventIDLimitationPropertyHandler.h.

Referenced by createProperties(), determineMinMaxEventID(), getMaxCap(), and updateProperty().

◆ m_minCap

WPropInt WEventIDLimitationPropertyHandler::m_minCap
private

Set lower border of range of eventID selection.

Definition at line 104 of file WEventIDLimitationPropertyHandler.h.

Referenced by createProperties(), determineMinMaxEventID(), getMinCap(), and updateProperty().

◆ m_properties

WPropertyGroup::SPtr WEventIDLimitationPropertyHandler::m_properties
private

A property variable that is generated by the WModul.

Definition at line 94 of file WEventIDLimitationPropertyHandler.h.

Referenced by createProperties().

◆ m_protonData

WProtonData::SPtr WEventIDLimitationPropertyHandler::m_protonData
private

Pointer to the content and header of the CSV.

Definition at line 89 of file WEventIDLimitationPropertyHandler.h.

Referenced by determineMinMaxEventID(), and updateProperty().


The documentation for this class was generated from the following files: