Medical Imaging Interaction Toolkit
2023.04.00
Medical Imaging Interaction Toolkit
|
Go to the documentation of this file.
13 #ifndef mitkToolEvents_h
14 #define mitkToolEvents_h
16 #pragma GCC visibility push(default)
17 #include <itkEventObject.h>
18 #pragma GCC visibility pop
50 #pragma GCC visibility push(default)
52 #pragma GCC visibility pop
93 const char *
GetEventName()
const override {
return "ParameterToolEvent"; }
94 bool CheckEvent(const ::itk::EventObject *e)
const override {
return dynamic_cast<const Self *
>(e); }
103 void operator=(
const Self &);
135 template <
typename T,
typename U>
148 const char *
GetEventName()
const override {
return "TwoParameterToolEvent"; }
149 bool CheckEvent(const ::itk::EventObject *e)
const override {
return dynamic_cast<const Self *
>(e); }
160 void operator=(
const Self &);
173 #define mitkToolEventMacro(eventname, baseevent) \
175 class eventname : public baseevent\
176 {virtual const char * GetEventName() const {return #eventname; \
182 #define mitkToolEventMacro1Param(eventname, paramtype1) \
184 class eventname : public ParameterToolEvent<paramtype1> \
188 virtual const char *GetEventName() const { return #eventname "(" #paramtype1 ")"; } \
189 eventname(const paramtype1 parameter) : ParameterToolEvent<paramtype1>(parameter) {} \
195 #define mitkToolEventMacro2Param(eventname, paramtype1, paramtype2) \
197 class eventname : public TwoParameterToolEvent<paramtype1, paramtype2> \
201 virtual const char *GetEventName() const { return #eventname "(" #paramtype1 "," #paramtype2 ")"; } \
202 eventname(const paramtype1 parameter1, const paramtype2 parameter2) \
203 : TwoParameterToolEvent<paramtype1, paramtype2>(parameter1, parameter2) \
ParameterToolEvent< float > FloatToolEvent
ParameterToolEvent< int > IntegerToolEvent
ParameterToolEvent< bool > BoolToolEvent
DataCollection - Class to facilitate loading/accessing structured data.
itkEventMacroDeclaration(BoundingShapeInteractionEvent, itk::AnyEvent)