Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
Generates InteractionEvent-Objects/XML. More...
#include <mitkEventFactory.h>
Static Public Member Functions | |
static InteractionEvent::Pointer | CreateEvent (PropertyList::Pointer eventDescription) |
static std::string | EventToXML (InteractionEvent *event) |
EventToXML Transforms an event into a XML tag describing it. More... | |
Generates InteractionEvent-Objects/XML.
1) InteractionEvents can be constructed by a PropertyList describing the event (see mitk::EventConfig for examples) 2) An XML description of InteractionEvents can be retrieved.
This class is used by the EventConfig object to parse configuration files and create Events based on the xml description.
Definition at line 39 of file mitkEventFactory.h.
|
static |
Parses PropertyList and queries all possible Information. If an attribute is not present the default value is used. Finally the Event-Type is chosen by the ClassName property and the object is created using the collected information.
Definition at line 246 of file mitkEventFactory.cpp.
References mitk::InteractionEvent::AltKey, mitk::BaseRenderer::baseRendererMap, mitk::InteractionEvent::ControlKey, mitk::BaseRenderer::GetByName(), mitk::InteractionEvent::LeftMouseButton, mitk::InteractionEvent::MiddleMouseButton, MITK_WARN, mitk::InteractionEvent::New(), mitk::MouseMoveEvent::New(), mitk::MouseReleaseEvent::New(), mitk::MouseDoubleClickEvent::New(), mitk::MousePressEvent::New(), mitk::MouseWheelEvent::New(), mitk::InternalEvent::New(), mitk::InteractionPositionEvent::New(), mitk::InteractionKeyEvent::New(), mitk::InteractionEvent::NoButton, mitk::InteractionEvent::NoKey, mitk::InteractionEvent::RightMouseButton, mitk::InteractionEvent::ShiftKey, split(), mitk::InteractionEventConst::xmlEventPropertyButtonState(), mitk::InteractionEventConst::xmlEventPropertyEventButton(), mitk::InteractionEventConst::xmlEventPropertyKey(), mitk::InteractionEventConst::xmlEventPropertyModifier(), mitk::InteractionEventConst::xmlEventPropertyPositionInWorld(), mitk::InteractionEventConst::xmlEventPropertyPositionOnScreen(), mitk::InteractionEventConst::xmlEventPropertyRendererName(), mitk::InteractionEventConst::xmlEventPropertyScrollDirection(), mitk::InteractionEventConst::xmlEventPropertySignalName(), mitk::InteractionEventConst::xmlParameterEventClass(), and mitk::InteractionEventConst::xmlParameterEventVariant().
Referenced by mitk::XML2EventParser::EndElement(), mitk::EventConfig::EventConfig(), mitk::StateMachineTransition::operator==(), and mitk::StateMachineTransition::StateMachineTransition().
|
static |
EventToXML Transforms an event into a XML tag describing it.
event |
Definition at line 473 of file mitkEventFactory.cpp.
References GetButtonState(), GetEventButton(), mitk::InteractionKeyEvent::GetKey(), GetModifierState(), GetPositionInWorld(), GetPositionOnScreen(), mitk::MouseWheelEvent::GetWheelDelta(), MITK_WARN, mitk::InteractionEventConst::xmlEventPropertyButtonState(), mitk::InteractionEventConst::xmlEventPropertyEventButton(), mitk::InteractionEventConst::xmlEventPropertyKey(), mitk::InteractionEventConst::xmlEventPropertyModifier(), mitk::InteractionEventConst::xmlEventPropertyPositionInWorld(), mitk::InteractionEventConst::xmlEventPropertyPositionOnScreen(), mitk::InteractionEventConst::xmlEventPropertyRendererName(), mitk::InteractionEventConst::xmlEventPropertyScrollDirection(), mitk::InteractionEventConst::xmlEventPropertyWheelDelta(), mitk::InteractionEventConst::xmlParameterEventClass(), mitk::InteractionEventConst::xmlParameterName(), mitk::InteractionEventConst::xmlParameterValue(), mitk::InteractionEventConst::xmlTagAttribute(), and mitk::InteractionEventConst::xmlTagEventVariant().
Referenced by mitk::EventRecorder::Notify().