Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
Predicate that transfers the check to a specific Callable. More...
#include <mitkNodePredicateFunction.h>
Public Types | |
using | FunctionType = std::function< bool(const mitk::DataNode *)> |
typedef NodePredicateFunction | Self |
typedef NodePredicateBase | Superclass |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SmartPointer< const Self > | ConstPointer |
![]() | |
typedef NodePredicateBase | Self |
typedef itk::Object | Superclass |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SmartPointer< const Self > | ConstPointer |
Public Member Functions | |
virtual std::vector< std::string > | GetClassHierarchy () const override |
virtual const char * | GetClassName () const |
~NodePredicateFunction () override | |
bool | CheckNode (const mitk::DataNode *node) const override |
This method will be used to evaluate the node. Has to be overwritten in subclasses. More... | |
![]() | |
~NodePredicateBase () override | |
Standard Destructor. More... | |
Static Public Member Functions | |
static const char * | GetStaticNameOfClass () |
static Pointer | New (const FunctionType &_arg) |
![]() | |
static const char * | GetStaticNameOfClass () |
Protected Member Functions | |
NodePredicateFunction (const FunctionType &function) | |
Protected Attributes | |
FunctionType | m_Function |
Predicate that transfers the check to a specific Callable.
Callables include free functions, bound member functions, function objects, and lambda expressions. The signature of the Callable must match NodePredicateFunction::CheckNode.
Definition at line 31 of file mitkNodePredicateFunction.h.
typedef itk::SmartPointer<const Self> mitk::NodePredicateFunction::ConstPointer |
Definition at line 36 of file mitkNodePredicateFunction.h.
using mitk::NodePredicateFunction::FunctionType = std::function<bool (const mitk::DataNode *)> |
Definition at line 34 of file mitkNodePredicateFunction.h.
Definition at line 36 of file mitkNodePredicateFunction.h.
Definition at line 36 of file mitkNodePredicateFunction.h.
Definition at line 36 of file mitkNodePredicateFunction.h.
|
override |
Definition at line 20 of file mitkNodePredicateFunction.cpp.
|
explicitprotected |
Definition at line 15 of file mitkNodePredicateFunction.cpp.
|
overridevirtual |
This method will be used to evaluate the node. Has to be overwritten in subclasses.
Implements mitk::NodePredicateBase.
Definition at line 24 of file mitkNodePredicateFunction.cpp.
References m_Function.
|
inlineoverridevirtual |
Reimplemented from mitk::NodePredicateBase.
Definition at line 36 of file mitkNodePredicateFunction.h.
|
virtual |
Reimplemented from mitk::NodePredicateBase.
|
inlinestatic |
Definition at line 36 of file mitkNodePredicateFunction.h.
|
inlinestatic |
Definition at line 37 of file mitkNodePredicateFunction.h.
Referenced by mitk::CreateAnyCESTImageNodePredicate(), mitk::CreateCESTorWasabiImageNodePredicate(), mitk::CreateCESTT1ImageNodePredicate(), QmitkSingleNodeSelectionWidget::DetermineAutoSelectNode(), and FreeFunction().
|
protected |
Definition at line 46 of file mitkNodePredicateFunction.h.
Referenced by CheckNode().