Page MenuHomePhabricator

affineinteraction.patch

Authored By
ritter
Feb 10 2011, 4:04 PM
Size
1 KB
Referenced Files
None
Subscribers
None

affineinteraction.patch

Index: mitkAffineInteractor.cpp
===================================================================
--- mitkAffineInteractor.cpp (revision 29708)
+++ mitkAffineInteractor.cpp (working copy)
@@ -172,6 +172,7 @@
case AcTRANSLATEEND:
{
m_UndoController->SetOperationEvent(new UndoStackItem("Move object"));
+ m_DataNode->InvokeEvent(TranslateEvent());
break;
}
case AcROTATE:
@@ -213,6 +214,7 @@
case AcROTATEEND:
{
m_UndoController->SetOperationEvent(new UndoStackItem("Rotate object"));
+ m_DataNode->InvokeEvent(RotateEvent());
break;
}
case AcSCALE:
@@ -275,6 +277,7 @@
case AcSCALEEND:
{
m_UndoController->SetOperationEvent(new UndoStackItem("Scale object"));
+ m_DataNode->InvokeEvent(ScaleEvent());
break;
}
default:
Index: mitkAffineInteractor.h
===================================================================
--- mitkAffineInteractor.h (revision 29708)
+++ mitkAffineInteractor.h (working copy)
@@ -32,6 +32,13 @@
//## An object of this class can translate, rotate and scale the data objects
//## by modifying its geometry.
//## @ingroup Interaction
+
+//create events for interactions
+itkEventMacro(AffineInteractionEvent, itk::AnyEvent);
+itkEventMacro(ScaleEvent, AffineInteractionEvent);
+itkEventMacro(RotateEvent, AffineInteractionEvent);
+itkEventMacro(TranslateEvent, AffineInteractionEvent);
+
class MITK_CORE_EXPORT AffineInteractor : public Interactor
{
public:

File Metadata

Mime Type
text/plain
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
637
Default Alt Text
affineinteraction.patch (1 KB)

Event Timeline