13 #ifndef MITKDISPLAYACTIONEVENTS_H 14 #define MITKDISPLAYACTIONEVENTS_H 22 #include <itkEventObject.h> 38 const char*
GetEventName()
const override {
return "DisplayActionEvent"; }
39 bool CheckEvent(
const itk::EventObject* e)
const override 40 {
return dynamic_cast<const Self*
>(e) !=
nullptr; }
41 itk::EventObject*
MakeObject()
const override {
return new Self(m_InteractionEvent); }
45 return m_InteractionEvent !=
nullptr ? m_InteractionEvent->GetSender() :
nullptr;
47 DisplayActionEvent(
const Self& s) : Superclass(s), m_InteractionEvent(s.GetInteractionEvent()) {};
51 void operator=(
const Self &);
62 : Superclass(interactionEvent)
63 , m_MoveVector(moveVector)
67 const char*
GetEventName()
const override {
return "DisplayMoveEvent"; }
68 bool CheckEvent(
const itk::EventObject* e)
const override 69 {
return dynamic_cast<const Self*
>(e) !=
nullptr; }
70 itk::EventObject*
MakeObject()
const override {
return new Self(GetInteractionEvent(), m_MoveVector); }
86 : Superclass(interactionEvent)
87 , m_Position(position)
91 const char*
GetEventName()
const override {
return "DisplaySetCrosshairEvent"; }
92 bool CheckEvent(
const itk::EventObject* e)
const override 93 {
return dynamic_cast<const Self*
>(e) !=
nullptr; }
94 itk::EventObject*
MakeObject()
const override {
return new Self(GetInteractionEvent(), m_Position); }
110 : Superclass(interactionEvent)
111 , m_ZoomFactor(zoomFactor)
112 , m_StartCoordinate(startCoordinate)
116 const char*
GetEventName()
const override {
return "DisplayZoomEvent"; }
118 {
return dynamic_cast<const Self*
>(e) !=
nullptr; }
119 itk::EventObject*
MakeObject()
const override {
return new Self(GetInteractionEvent(), m_ZoomFactor, m_StartCoordinate); }
122 DisplayZoomEvent(
const Self& s) : Superclass(s), m_ZoomFactor(s.GetZoomFactor()), m_StartCoordinate(s.GetStartCoordinate()) {};
137 : Superclass(interactionEvent)
138 , m_SliceDelta(sliceDelta)
142 const char*
GetEventName()
const override {
return "DisplayScrollEvent"; }
144 {
return dynamic_cast<const Self*
>(e) !=
nullptr; }
145 itk::EventObject*
MakeObject()
const override {
return new Self(GetInteractionEvent(), m_SliceDelta); }
161 : Superclass(interactionEvent)
167 const char*
GetEventName()
const override {
return "DisplaySetLevelWindowEvent"; }
170 return dynamic_cast<const Self*
>(e) !=
nullptr;
172 itk::EventObject*
MakeObject()
const override {
return new Self(GetInteractionEvent(), m_Level, m_Window); }
184 #endif // MITKDISPLAYACTIONEVENTS_H
DisplaySetCrosshairEvent(const Self &s)
ScalarType GetWindow() const
DisplaySetCrosshairEvent(InteractionEvent *interactionEvent, const Point3D &position)
DisplayActionEvent Superclass
bool CheckEvent(const itk::EventObject *e) const override
bool CheckEvent(const itk::EventObject *e) const override
~DisplayActionEvent() override
bool CheckEvent(const itk::EventObject *e) const override
DisplayActionEvent(InteractionEvent *interactionEvent)
bool CheckEvent(const itk::EventObject *e) const override
DisplayActionEvent Superclass
Organizes the rendering process.
DisplaySetCrosshairEvent()
const Point2D & GetStartCoordinate() const
DataCollection - Class to facilitate loading/accessing structured data.
DisplayActionEvent Superclass
itk::EventObject * MakeObject() const override
bool CheckEvent(const itk::EventObject *e) const override
DisplaySetLevelWindowEvent Self
const char * GetEventName() const override
itk::EventObject * MakeObject() const override
float GetZoomFactor() const
ScalarType GetLevel() const
~DisplaySetCrosshairEvent() override
DisplayMoveEvent(const Self &s)
const char * GetEventName() const override
DisplaySetLevelWindowEvent(const Self &s)
const char * GetEventName() const override
DisplaySetLevelWindowEvent(InteractionEvent *interactionEvent, ScalarType level, ScalarType window)
DisplaySetLevelWindowEvent()
BaseRenderer * GetSender() const
itk::EventObject * MakeObject() const override
InteractionEvent * GetInteractionEvent() const
~DisplayMoveEvent() override
const char * GetEventName() const override
~DisplayZoomEvent() override
const Vector2D & GetMoveVector() const
DisplayActionEvent Superclass
~DisplaySetLevelWindowEvent() override
itk::EventObject * MakeObject() const override
const Point3D & GetPosition() const
itk::EventObject * MakeObject() const override
const char * GetEventName() const override
DisplaySetCrosshairEvent Self
DisplayActionEvent(const Self &s)
DisplayZoomEvent(const Self &s)
DisplayZoomEvent(InteractionEvent *interactionEvent, float zoomFactor, const Point2D &startCoordinate)
DisplayMoveEvent(InteractionEvent *interactionEvent, const Vector2D &moveVector)