Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
Affine interaction with objects in 3D windows. More...
#include <mitkAffineImageCropperInteractor.h>
Public Member Functions | |
mitkClassMacro (AffineImageCropperInteractor, DataInteractor) | |
Pointer | Clone () const |
Public Member Functions inherited from mitk::DataInteractor | |
virtual std::vector< std::string > | GetClassHierarchy () const override |
virtual const char * | GetClassName () const |
Pointer | Clone () const |
DataNode * | GetDataNode () const |
virtual void | SetDataNode (DataNode *dataNode) |
int | GetLayer () const |
ProcessEventMode | GetMode () const |
Public Member Functions inherited from mitk::EventStateMachine | |
bool | LoadStateMachine (const std::string &filename, const us::Module *module=nullptr) |
Loads XML resource. More... | |
bool | HandleEvent (InteractionEvent *event, DataNode *dataNode) |
void | EnableUndo (bool enable) |
Enables or disabled Undo. More... | |
void | EnableInteraction (bool enable) |
Enables/disables the state machine. In un-enabled state it won't react to any events. More... | |
Public Member Functions inherited from mitk::InteractionEventHandler | |
bool | SetEventConfig (const std::string &filename, const us::Module *module=nullptr) |
Loads a configuration from an XML resource. More... | |
bool | SetEventConfig (const EventConfig &config) |
Loads a configuration from an EventConfig object. More... | |
EventConfig | GetEventConfig () const |
Returns the current configuration. More... | |
bool | AddEventConfig (const std::string &filename, const us::Module *module=nullptr) |
This method extends the configuration. More... | |
bool | AddEventConfig (const EventConfig &config) |
This method extends the configuration. The configuration from the EventConfig object is loaded and only the ones conflicting are replaced by the new one. This way several configurations can be combined. More... | |
Static Public Member Functions | |
static Pointer | New () |
Static Public Member Functions inherited from mitk::DataInteractor | |
static const char * | GetStaticNameOfClass () |
static Pointer | New () |
Static Public Member Functions inherited from mitk::EventStateMachine | |
static const char * | GetStaticNameOfClass () |
Static Public Member Functions inherited from mitk::InteractionEventHandler | |
static const char * | GetStaticNameOfClass () |
Protected Member Functions | |
AffineImageCropperInteractor () | |
virtual | ~AffineImageCropperInteractor () |
virtual void | ConnectActionsAndFunctions () override |
virtual void | DataNodeChanged () override |
virtual bool | CheckOverObject (const InteractionEvent *interactionEvent) |
virtual void | SelectObject (StateMachineAction *, InteractionEvent *) |
virtual void | DeselectObject (StateMachineAction *, InteractionEvent *) |
virtual void | InitTranslate (StateMachineAction *, InteractionEvent *) |
virtual void | InitRotate (StateMachineAction *, InteractionEvent *) |
virtual void | InitDeformation (StateMachineAction *, InteractionEvent *) |
virtual void | TranslateObject (StateMachineAction *, InteractionEvent *interactionEvent) |
virtual void | RotateObject (StateMachineAction *, InteractionEvent *interactionEvent) |
virtual void | DeformObject (StateMachineAction *, InteractionEvent *) |
virtual void | ScaleRadius (StateMachineAction *, InteractionEvent *interactionEvent) |
Protected Member Functions inherited from mitk::DataInteractor | |
DataInteractor () | |
virtual | ~DataInteractor () |
virtual void | NotifyStart () |
Sends StartInteraction event via the mitk::DataNode. More... | |
virtual void | NotifyResultReady () |
NotifyResultReady Sends ResultReady event via the mitk::DataNode. More... | |
Protected Member Functions inherited from mitk::EventStateMachine | |
EventStateMachine () | |
virtual | ~EventStateMachine () |
void | AddActionFunction (const std::string &action, TActionFunctor *functor) |
void | AddActionFunction (const std::string &action, const ActionFunctionDelegate &delegate) |
void | AddConditionFunction (const std::string &condition, const ConditionFunctionDelegate &delegate) |
StateMachineState * | GetCurrentState () const |
void | ResetToStartState () |
ResetToStartState Reset state machine to it initial starting state. More... | |
virtual bool | CheckCondition (const StateMachineCondition &condition, const InteractionEvent *interactionEvent) |
virtual void | ExecuteAction (StateMachineAction *action, InteractionEvent *interactionEvent) |
virtual bool | FilterEvents (InteractionEvent *interactionEvent, DataNode *dataNode) |
void | SetMouseCursor (const char *xpm[], int hotspotX, int hotspotY) |
Sets the specified mouse cursor. More... | |
void | ResetMouseCursor () |
Resets the mouse cursor (if modified by the SlicesCoordinator) to its original state. More... | |
StateMachineTransition * | GetExecutableTransition (InteractionEvent *event) |
Returns the executable transition for the given event. More... | |
Protected Member Functions inherited from mitk::InteractionEventHandler | |
InteractionEventHandler () | |
virtual | ~InteractionEventHandler () |
PropertyList::Pointer | GetAttributes () const |
std::string | MapToEventVariant (InteractionEvent *interactionEvent) |
virtual void | ConfigurationChanged () |
Affine interaction with objects in 3D windows.
Definition at line 33 of file mitkAffineImageCropperInteractor.h.
|
protected |
Definition at line 37 of file mitkAffineImageCropperInteractor.cpp.
References mitk::Geometry3D::New().
|
protectedvirtual |
Definition at line 42 of file mitkAffineImageCropperInteractor.cpp.
|
protectedvirtual |
Initializes the movement, stores starting position.
Definition at line 68 of file mitkAffineImageCropperInteractor.cpp.
References mitk::BaseData::GetGeometry(), mitk::InteractionPositionEvent::GetPositionInWorld(), and mitk::BaseGeometry::WorldToIndex().
Pointer mitk::AffineImageCropperInteractor::Clone | ( | ) | const |
|
overrideprotectedvirtual |
Here actions strings from the loaded state machine pattern are mapped to functions of the DataInteractor. These functions are called when an action from the state machine pattern is executed.
Reimplemented from mitk::DataInteractor.
Definition at line 46 of file mitkAffineImageCropperInteractor.cpp.
References mitk::CheckOverObject(), CONNECT_CONDITION, CONNECT_FUNCTION, mitk::DeselectObject(), mitk::SelectObject(), and mitk::TranslateObject().
|
overrideprotectedvirtual |
This function is called when a DataNode has been set/changed.
Reimplemented from mitk::DataInteractor.
Definition at line 64 of file mitkAffineImageCropperInteractor.cpp.
|
protectedvirtual |
Definition at line 193 of file mitkAffineImageCropperInteractor.cpp.
References mitk::RenderingManager::GetInstance(), mitk::InteractionPositionEvent::GetPositionInWorld(), mitk::OpSCALE, and mitk::RenderingManager::RequestUpdateAll().
|
protectedvirtual |
Definition at line 102 of file mitkAffineImageCropperInteractor.cpp.
References mitk::BaseRenderer::GetRenderingManager(), mitk::InteractionEvent::GetSender(), and mitk::RenderingManager::RequestUpdateAll().
|
protectedvirtual |
Definition at line 158 of file mitkAffineImageCropperInteractor.cpp.
References mitk::InteractionPositionEvent::GetPointerPositionOnScreen(), and mitk::InteractionPositionEvent::GetPositionInWorld().
|
protectedvirtual |
Definition at line 144 of file mitkAffineImageCropperInteractor.cpp.
References mitk::InteractionPositionEvent::GetPointerPositionOnScreen(), and mitk::InteractionPositionEvent::GetPositionInWorld().
|
protectedvirtual |
Definition at line 128 of file mitkAffineImageCropperInteractor.cpp.
References mitk::InteractionPositionEvent::GetPointerPositionOnScreen(), and mitk::InteractionPositionEvent::GetPositionInWorld().
mitk::AffineImageCropperInteractor::mitkClassMacro | ( | AffineImageCropperInteractor | , |
DataInteractor | |||
) |
|
static |
|
protectedvirtual |
Definition at line 221 of file mitkAffineImageCropperInteractor.cpp.
References mitk::BaseRenderer::GetMapperID(), mitk::InteractionPositionEvent::GetPointerPositionOnScreen(), mitk::BaseRenderer::GetRenderingManager(), mitk::InteractionEvent::GetSender(), mitk::BaseRenderer::GetVtkRenderer(), mitk::OpROTATE, mitk::RenderingManager::RequestUpdateAll(), and mitk::BaseRenderer::Standard2D.
|
protectedvirtual |
Definition at line 108 of file mitkAffineImageCropperInteractor.cpp.
References mitk::InteractionPositionEvent::GetPositionInWorld(), mitk::BaseRenderer::GetRenderingManager(), mitk::InteractionEvent::GetSender(), mitk::MouseWheelEvent::GetWheelDelta(), mitk::OpSCALE, and mitk::RenderingManager::RequestUpdateAll().
|
protectedvirtual |
Definition at line 80 of file mitkAffineImageCropperInteractor.cpp.
References mitk::BaseRenderer::GetRenderingManager(), mitk::InteractionEvent::GetSender(), and mitk::RenderingManager::RequestUpdateAll().
|
protectedvirtual |