Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
mitk::StdFunctionCommand Class Reference

#include <mitkStdFunctionCommand.h>

Inheritance diagram for mitk::StdFunctionCommand:
Collaboration diagram for mitk::StdFunctionCommand:

Public Types

using Self = StdFunctionCommand
 
using Pointer = itk::SmartPointer< Self >
 
using FilterFunction = std::function< bool(const itk::EventObject &)>
 
using ActionFunction = std::function< void(const itk::EventObject &)>
 

Public Member Functions

virtual const char * GetClassName () const
 
void SetCommandFilter (FilterFunction stdFunctionFilter)
 
void SetCommandAction (ActionFunction stdFunctionAction)
 
void Execute (Object *, const itk::EventObject &event) override
 
void Execute (const Object *, const itk::EventObject &event) override
 

Static Public Member Functions

static Pointer New ()
 

Protected Member Functions

 StdFunctionCommand ()
 
 ~StdFunctionCommand () override
 

Protected Attributes

FilterFunction m_StdFilterFunction
 
ActionFunction m_StdActionFunction
 

Detailed Description

Definition at line 27 of file mitkStdFunctionCommand.h.

Member Typedef Documentation

◆ ActionFunction

using mitk::StdFunctionCommand::ActionFunction = std::function<void(const itk::EventObject&)>

Definition at line 34 of file mitkStdFunctionCommand.h.

◆ FilterFunction

using mitk::StdFunctionCommand::FilterFunction = std::function<bool(const itk::EventObject&)>

Definition at line 33 of file mitkStdFunctionCommand.h.

◆ Pointer

◆ Self

Constructor & Destructor Documentation

◆ StdFunctionCommand()

mitk::StdFunctionCommand::StdFunctionCommand ( )
inlineprotected

Definition at line 78 of file mitkStdFunctionCommand.h.

◆ ~StdFunctionCommand()

mitk::StdFunctionCommand::~StdFunctionCommand ( )
inlineoverrideprotected

Definition at line 83 of file mitkStdFunctionCommand.h.

Member Function Documentation

◆ Execute() [1/2]

void mitk::StdFunctionCommand::Execute ( const Object *  ,
const itk::EventObject &  event 
)
inlineoverride

Definition at line 63 of file mitkStdFunctionCommand.h.

◆ Execute() [2/2]

void mitk::StdFunctionCommand::Execute ( Object *  ,
const itk::EventObject &  event 
)
inlineoverride

Definition at line 52 of file mitkStdFunctionCommand.h.

◆ GetClassName()

virtual const char* mitk::StdFunctionCommand::GetClassName ( ) const
virtual

Run-time type information (and related methods).

◆ New()

static Pointer mitk::StdFunctionCommand::New ( )
static

Method for creation through the object factory.

◆ SetCommandAction()

void mitk::StdFunctionCommand::SetCommandAction ( ActionFunction  stdFunctionAction)
inline

Definition at line 47 of file mitkStdFunctionCommand.h.

◆ SetCommandFilter()

void mitk::StdFunctionCommand::SetCommandFilter ( FilterFunction  stdFunctionFilter)
inline

Definition at line 42 of file mitkStdFunctionCommand.h.

Member Data Documentation

◆ m_StdActionFunction

ActionFunction mitk::StdFunctionCommand::m_StdActionFunction
protected

Definition at line 76 of file mitkStdFunctionCommand.h.

◆ m_StdFilterFunction

FilterFunction mitk::StdFunctionCommand::m_StdFilterFunction
protected

Definition at line 75 of file mitkStdFunctionCommand.h.


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