17 #ifndef MITK_TOOL_EVENTS_H
18 #define MITK_TOOL_EVENTS_H
20 #pragma GCC visibility push(default)
21 #include <itkEventObject.h>
22 #pragma GCC visibility pop
54 #pragma GCC visibility push(default)
56 #pragma GCC visibility pop
97 virtual const char *
GetEventName()
const override {
return "ParameterToolEvent"; }
98 virtual bool CheckEvent(const ::itk::EventObject *e)
const override {
return dynamic_cast<const Self *
>(e); }
107 void operator=(
const Self &);
139 template <
typename T,
typename U>
152 virtual const char *
GetEventName()
const override {
return "TwoParameterToolEvent"; }
153 virtual bool CheckEvent(const ::itk::EventObject *e)
const override {
return dynamic_cast<const Self *
>(e); }
164 void operator=(
const Self &);
177 #define mitkToolEventMacro(eventname, baseevent) \
179 class eventname : public baseevent\
180 {virtual const char * GetEventName() const {return #eventname; \
186 #define mitkToolEventMacro1Param(eventname, paramtype1) \
188 class eventname : public ParameterToolEvent<paramtype1> \
192 virtual const char *GetEventName() const { return #eventname "(" #paramtype1 ")"; } \
193 eventname(const paramtype1 parameter) : ParameterToolEvent<paramtype1>(parameter) {} \
199 #define mitkToolEventMacro2Param(eventname, paramtype1, paramtype2) \
201 class eventname : public TwoParameterToolEvent<paramtype1, paramtype2> \
205 virtual const char *GetEventName() const { return #eventname "(" #paramtype1 "," #paramtype2 ")"; } \
206 eventname(const paramtype1 parameter1, const paramtype2 parameter2) \
207 : TwoParameterToolEvent<paramtype1, paramtype2>(parameter1, parameter2) \
ParameterToolEvent< bool > BoolToolEvent
DataCollection - Class to facilitate loading/accessing structured data.
ParameterToolEvent< float > FloatToolEvent
itkEventMacro(ContourModelEvent, itk::AnyEvent)
ParameterToolEvent< int > IntegerToolEvent