Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F662
affineinteraction.patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
ritter
Feb 10 2011, 4:04 PM
2011-02-10 16:04:41 (UTC+1)
Size
1 KB
Referenced Files
None
Subscribers
None
affineinteraction.patch
View Options
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
Details
Attached
Mime Type
text/plain
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
637
Default Alt Text
affineinteraction.patch (1 KB)
Attached To
Mode
T6932: Affine Interactor should inform when an interaction is completed
Attached
Detach File
Event Timeline
•
ritter
added a comment.
Feb 10 2011, 4:04 PM
2011-02-10 16:04:41 (UTC+1)
Comment Actions
introduce new events
Log In to Comment