![]() |
OpenWalnut
1.5.0dev
|
Creates, updates and handles the EventID properties. More...
#include <WEventIDLimitationPropertyHandler.h>
Collaboration diagram for WEventIDLimitationPropertyHandler:Public Types | |
| typedef std::shared_ptr< WEventIDLimitationPropertyHandler > | SPtr |
| 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... | |
Creates, updates and handles the EventID properties.
Definition at line 37 of file WEventIDLimitationPropertyHandler.h.
| typedef boost::function< void( ) > WEventIDLimitationPropertyHandler::CallbackPtr |
Function variables for updating the data.
Definition at line 48 of file WEventIDLimitationPropertyHandler.h.
| typedef std::shared_ptr< WEventIDLimitationPropertyHandler > WEventIDLimitationPropertyHandler::SPtr |
shared_ptr that points to itself
Definition at line 43 of file WEventIDLimitationPropertyHandler.h.
|
explicit |
constructor
| protonData | Pointer to the content and header of the CSV |
| properties | A property variable that is generated by the WModul |
| dataUpdate | A function variable that reinitializes the WDataSets |
Definition at line 29 of file WEventIDLimitationPropertyHandler.cpp.
| 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:
|
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:| WPropInt WEventIDLimitationPropertyHandler::getMaxCap | ( | ) |
Getter.
Definition at line 115 of file WEventIDLimitationPropertyHandler.cpp.
References m_maxCap.
| WPropInt WEventIDLimitationPropertyHandler::getMinCap | ( | ) |
Getter.
Definition at line 110 of file WEventIDLimitationPropertyHandler.cpp.
References m_minCap.
|
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:| 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:
|
private |
Apply the current event ID selection.
Definition at line 114 of file WEventIDLimitationPropertyHandler.h.
Referenced by createProperties(), updateMesh(), and updateProperty().
|
private |
A function variable that reinitializes the WDataSets.
Definition at line 99 of file WEventIDLimitationPropertyHandler.h.
Referenced by updateMesh().
|
private |
Set upper border of range of eventID selection.
Definition at line 109 of file WEventIDLimitationPropertyHandler.h.
Referenced by createProperties(), determineMinMaxEventID(), getMaxCap(), and updateProperty().
|
private |
Set lower border of range of eventID selection.
Definition at line 104 of file WEventIDLimitationPropertyHandler.h.
Referenced by createProperties(), determineMinMaxEventID(), getMinCap(), and updateProperty().
|
private |
A property variable that is generated by the WModul.
Definition at line 94 of file WEventIDLimitationPropertyHandler.h.
Referenced by createProperties().
|
private |
Pointer to the content and header of the CSV.
Definition at line 89 of file WEventIDLimitationPropertyHandler.h.
Referenced by determineMinMaxEventID(), and updateProperty().