13 #ifndef mitkDisplayActionEvents_h
14 #define mitkDisplayActionEvents_h
22 #include <itkEventObject.h>
54 const char*
GetEventName()
const override {
return "DisplayActionEvent"; }
55 bool CheckEvent(
const itk::EventObject* e)
const override {
return dynamic_cast<const Self *
>(e) !=
nullptr; }
56 itk::EventObject*
MakeObject()
const override {
return new Self(m_InteractionEvent); }
70 return m_InteractionEvent !=
nullptr ? m_InteractionEvent->GetSender() :
nullptr;
78 void operator=(
const Self &);
100 , m_MoveVector(moveVector)
104 const char*
GetEventName()
const override {
return "DisplayMoveEvent"; }
105 bool CheckEvent(
const itk::EventObject* e)
const override {
return dynamic_cast<const Self *
>(e) !=
nullptr; }
106 itk::EventObject*
MakeObject()
const override {
return new Self(GetInteractionEvent(), m_MoveVector); }
140 , m_Position(position)
144 const char*
GetEventName()
const override {
return "DisplaySetCrosshairEvent"; }
145 bool CheckEvent(
const itk::EventObject* e)
const override {
return dynamic_cast<const Self *
>(e) !=
nullptr; }
146 itk::EventObject*
MakeObject()
const override {
return new Self(GetInteractionEvent(), m_Position); }
181 , m_ZoomFactor(zoomFactor)
182 , m_StartCoordinate(startCoordinate)
186 const char*
GetEventName()
const override {
return "DisplayZoomEvent"; }
187 bool CheckEvent(
const itk::EventObject* e)
const override {
return dynamic_cast<const Self *
>(e) !=
nullptr; }
188 itk::EventObject*
MakeObject()
const override {
return new Self(GetInteractionEvent(), m_ZoomFactor, m_StartCoordinate); }
230 , m_SliceDelta(sliceDelta)
231 , m_AutoRepeat(autoRepeat)
235 const char*
GetEventName()
const override {
return "DisplayScrollEvent"; }
236 bool CheckEvent(
const itk::EventObject *e)
const override {
return dynamic_cast<const Self *
>(e) !=
nullptr; }
237 itk::EventObject*
MakeObject()
const override {
return new Self(GetInteractionEvent(), m_SliceDelta, m_AutoRepeat); }
284 const char*
GetEventName()
const override {
return "DisplaySetLevelWindowEvent"; }
285 bool CheckEvent(
const itk::EventObject *e)
const override {
return dynamic_cast<const Self *
>(e) !=
nullptr; }
286 itk::EventObject*
MakeObject()
const override {
return new Self(GetInteractionEvent(), m_Level, m_Window); }
Organizes the rendering process.
Base class for display action events broadcast by DisplayActionEventBroadcast.
~DisplayActionEvent() override
bool CheckEvent(const itk::EventObject *e) const override
const char * GetEventName() const override
itk::EventObject * MakeObject() const override
InteractionEvent * GetInteractionEvent() const
Get the originating interaction event.
DisplayActionEvent(const Self &s)
Copy constructor.
DisplayActionEvent()
Default constructor with no interaction event.
BaseRenderer * GetSender() const
Get the BaseRenderer that sent the interaction event.
DisplayActionEvent(InteractionEvent *interactionEvent)
Construct with the originating interaction event.
Display action event carrying a 2D move vector for camera panning.
DisplayMoveEvent(const Self &s)
Copy constructor.
const Vector2D & GetMoveVector() const
Get the 2D move vector.
bool CheckEvent(const itk::EventObject *e) const override
itk::EventObject * MakeObject() const override
DisplayMoveEvent(InteractionEvent *interactionEvent, const Vector2D &moveVector)
Construct with the originating event and move vector.
const char * GetEventName() const override
DisplayActionEvent Superclass
~DisplayMoveEvent() override
Display action event carrying a 3D world position for crosshair placement.
DisplayActionEvent Superclass
DisplaySetCrosshairEvent(InteractionEvent *interactionEvent, const Point3D &position)
Construct with the originating event and crosshair position.
const Point3D & GetPosition() const
Get the 3D crosshair position.
const char * GetEventName() const override
itk::EventObject * MakeObject() const override
~DisplaySetCrosshairEvent() override
DisplaySetCrosshairEvent Self
bool CheckEvent(const itk::EventObject *e) const override
DisplaySetCrosshairEvent()
DisplaySetCrosshairEvent(const Self &s)
Copy constructor.
Display action event carrying level and window values for level-window adjustment.
itk::EventObject * MakeObject() const override
const char * GetEventName() const override
~DisplaySetLevelWindowEvent() override
DisplaySetLevelWindowEvent()
bool CheckEvent(const itk::EventObject *e) const override
DisplayActionEvent Superclass
ScalarType GetLevel() const
Get the level (center) value.
ScalarType GetWindow() const
Get the window (width) value.
DisplaySetLevelWindowEvent(InteractionEvent *interactionEvent, ScalarType level, ScalarType window)
Construct with the originating event, level, and window values.
DisplaySetLevelWindowEvent Self
DisplaySetLevelWindowEvent(const Self &s)
Copy constructor.
Display action event carrying a zoom factor and start coordinate.
bool CheckEvent(const itk::EventObject *e) const override
const Point2D & GetStartCoordinate() const
Get the zoom start coordinate.
float GetZoomFactor() const
Get the zoom factor.
itk::EventObject * MakeObject() const override
DisplayZoomEvent(const Self &s)
Copy constructor.
const char * GetEventName() const override
~DisplayZoomEvent() override
DisplayActionEvent Superclass
DisplayZoomEvent(InteractionEvent *interactionEvent, float zoomFactor, const Point2D &startCoordinate)
Construct with the originating event, zoom factor, and start coordinate.
Base class for all interaction events in MITK.
Find image slices visible on a given plane.
double ScalarType
Scalar type used throughout MITK for geometric computations.