Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitk::TwoParameterToolEvent< T, U > Class Template Reference

Tool event with 1 parameter. More...

#include <mitkToolEvents.h>

Inheritance diagram for mitk::TwoParameterToolEvent< T, U >:
Collaboration diagram for mitk::TwoParameterToolEvent< T, U >:

Public Types

typedef TwoParameterToolEvent Self
 
typedef ToolEvent Superclass
 

Public Member Functions

 TwoParameterToolEvent (const T parameter1, const U parameter2)
 
 TwoParameterToolEvent (const Self &s)
 
virtual ~TwoParameterToolEvent ()
 
virtual const char * GetEventName () const override
 
virtual bool CheckEvent (const ::itk::EventObject *e) const override
 
virtual ::itk::EventObject * MakeObject () const override
 
const T GetParameter1 () const
 
const T GetParameter2 () const
 

Protected Attributes

const T m_Parameter1
 
const U m_Parameter2
 

Detailed Description

template<typename T, typename U>
class mitk::TwoParameterToolEvent< T, U >

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( BarToolEvent(32, false) );
}
};
}

Definition at line 140 of file mitkToolEvents.h.

Member Typedef Documentation

template<typename T , typename U >
typedef TwoParameterToolEvent mitk::TwoParameterToolEvent< T, U >::Self

Definition at line 143 of file mitkToolEvents.h.

template<typename T , typename U >
typedef ToolEvent mitk::TwoParameterToolEvent< T, U >::Superclass

Definition at line 144 of file mitkToolEvents.h.

Constructor & Destructor Documentation

template<typename T , typename U >
mitk::TwoParameterToolEvent< T, U >::TwoParameterToolEvent ( const T  parameter1,
const U  parameter2 
)
inline

Definition at line 146 of file mitkToolEvents.h.

template<typename T , typename U >
mitk::TwoParameterToolEvent< T, U >::TwoParameterToolEvent ( const Self s)
inline

Definition at line 150 of file mitkToolEvents.h.

template<typename T , typename U >
virtual mitk::TwoParameterToolEvent< T, U >::~TwoParameterToolEvent ( )
inlinevirtual

Definition at line 151 of file mitkToolEvents.h.

Member Function Documentation

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

Definition at line 153 of file mitkToolEvents.h.

template<typename T , typename U >
virtual const char* mitk::TwoParameterToolEvent< T, U >::GetEventName ( ) const
inlineoverridevirtual

Definition at line 152 of file mitkToolEvents.h.

template<typename T , typename U >
const T mitk::TwoParameterToolEvent< T, U >::GetParameter1 ( ) const
inline
template<typename T , typename U >
const T mitk::TwoParameterToolEvent< T, U >::GetParameter2 ( ) const
inline
template<typename T , typename U >
virtual ::itk::EventObject* mitk::TwoParameterToolEvent< T, U >::MakeObject ( ) const
inlineoverride

Member Data Documentation

template<typename T , typename U >
const T mitk::TwoParameterToolEvent< T, U >::m_Parameter1
protected
template<typename T , typename U >
const U mitk::TwoParameterToolEvent< T, U >::m_Parameter2
protected

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