Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitk::ParameterToolEvent< T > Class Template Reference

Tool event with 1 parameter. More...

#include <mitkToolEvents.h>

Inheritance diagram for mitk::ParameterToolEvent< T >:
Collaboration diagram for mitk::ParameterToolEvent< T >:

Public Types

typedef ParameterToolEvent Self
 
typedef ToolEvent Superclass
 

Public Member Functions

 ParameterToolEvent (const T parameter)
 
 ParameterToolEvent (const Self &s)
 
virtual ~ParameterToolEvent ()
 
virtual const char * GetEventName () const override
 
virtual bool CheckEvent (const ::itk::EventObject *e) const override
 
virtual ::itk::EventObject * MakeObject () const override
 
const T GetParameter () const
 

Protected Attributes

const T m_Parameter
 

Detailed Description

template<typename T>
class mitk::ParameterToolEvent< T >

Tool event with 1 parameter.

Can store one parameter for use within an observer. To derive your own special events, use the mitkToolEventMacro1Param macro.

namespace mitk
{
class MyTool : public Tool
{
public:
mitkToolEventMacro1Param(FooToolEvent, int);
[...]
protected:
// Invoke your event like this
void YourExampleMethod()
{
InvokeEvent( FooToolEvent(32) );
}
};
}

Definition at line 88 of file mitkToolEvents.h.

Member Typedef Documentation

template<typename T >
typedef ParameterToolEvent mitk::ParameterToolEvent< T >::Self

Definition at line 91 of file mitkToolEvents.h.

template<typename T >
typedef ToolEvent mitk::ParameterToolEvent< T >::Superclass

Definition at line 92 of file mitkToolEvents.h.

Constructor & Destructor Documentation

template<typename T >
mitk::ParameterToolEvent< T >::ParameterToolEvent ( const T  parameter)
inline

Definition at line 94 of file mitkToolEvents.h.

template<typename T >
mitk::ParameterToolEvent< T >::ParameterToolEvent ( const Self s)
inline

Definition at line 95 of file mitkToolEvents.h.

template<typename T >
virtual mitk::ParameterToolEvent< T >::~ParameterToolEvent ( )
inlinevirtual

Definition at line 96 of file mitkToolEvents.h.

Member Function Documentation

template<typename T >
virtual bool mitk::ParameterToolEvent< T >::CheckEvent ( const ::itk::EventObject *  e) const
inlineoverridevirtual

Definition at line 98 of file mitkToolEvents.h.

template<typename T >
virtual const char* mitk::ParameterToolEvent< T >::GetEventName ( ) const
inlineoverridevirtual

Definition at line 97 of file mitkToolEvents.h.

template<typename T >
const T mitk::ParameterToolEvent< T >::GetParameter ( ) const
inline

Definition at line 100 of file mitkToolEvents.h.

References mitk::ParameterToolEvent< T >::m_Parameter.

template<typename T >
virtual ::itk::EventObject* mitk::ParameterToolEvent< T >::MakeObject ( ) const
inlineoverride

Definition at line 99 of file mitkToolEvents.h.

References mitk::ParameterToolEvent< T >::m_Parameter.

Member Data Documentation

template<typename T >
const T mitk::ParameterToolEvent< T >::m_Parameter
protected

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