Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
Affine interaction with mitk::BaseGeometry. More...
#include <mitkAffineBaseDataInteractor3D.h>
Public Member Functions | |
mitkClassMacro (AffineBaseDataInteractor3D, DataInteractor) | |
Pointer | Clone () const |
virtual void | SetDataNode (DataNode *node) |
void | TranslateGeometry (mitk::Vector3D translate, mitk::BaseGeometry *geometry) |
void | RotateGeometry (mitk::ScalarType angle, int rotationaxis, mitk::BaseGeometry *geometry) |
void | ScaleGeometry (mitk::Point3D newScale, mitk::BaseGeometry *geometry) |
mitk::BaseGeometry * | GetUpdatedTimeGeometry (mitk::InteractionEvent *interactionEvent) |
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 |
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 () |
Affine interaction with mitk::BaseGeometry.
Definition at line 38 of file mitkAffineBaseDataInteractor3D.h.
|
protected |
Definition at line 44 of file mitkAffineBaseDataInteractor3D.cpp.
References mitk::Geometry3D::New().
|
protectedvirtual |
Definition at line 49 of file mitkAffineBaseDataInteractor3D.cpp.
References mitk::RestoreNodeProperties().
|
protectedvirtual |
Initializes the movement, stores starting position.
Definition at line 311 of file mitkAffineBaseDataInteractor3D.cpp.
References mitk::InteractionPositionEvent::GetPointerPositionOnScreen(), mitk::InteractionEvent::GetSender(), and mitk::BaseRenderer::PickObject().
Pointer mitk::AffineBaseDataInteractor3D::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 54 of file mitkAffineBaseDataInteractor3D.cpp.
References mitk::CheckOverObject(), CONNECT_CONDITION, CONNECT_FUNCTION, mitk::DeselectObject(), mitk::ScaleObject(), mitk::SelectObject(), and mitk::TranslateObject().
|
overrideprotectedvirtual |
This function is called when a DataNode has been set/changed.
Reimplemented from mitk::DataInteractor.
Definition at line 280 of file mitkAffineBaseDataInteractor3D.cpp.
References deselectedColorPropertyName, mitk::RenderingManager::GetInstance(), mitk::FloatProperty::New(), mitk::ColorProperty::New(), priorPropertyName, mitk::RenderingManager::RequestUpdateAll(), rotationStepSizePropertyName, scaleStepSizePropertyName, selectedColorPropertyName, and translationStepSizePropertyName.
|
protectedvirtual |
Definition at line 343 of file mitkAffineBaseDataInteractor3D.cpp.
References deselectedColorPropertyName, mitk::BaseRenderer::GetRenderingManager(), mitk::InteractionEvent::GetSender(), mitk::RenderingManager::RequestUpdateAll(), and selectedColor.
mitk::BaseGeometry * mitk::AffineBaseDataInteractor3D::GetUpdatedTimeGeometry | ( | mitk::InteractionEvent * | interactionEvent | ) |
Definition at line 270 of file mitkAffineBaseDataInteractor3D.cpp.
References GetData(), mitk::InteractionEvent::GetSender(), mitk::BaseRenderer::GetTimeStep(), and MITK_ERROR.
|
protected |
InitMembers convinience method to avoid code duplication between InitRotate() and InitTranslate().
interactionEvent |
Definition at line 372 of file mitkAffineBaseDataInteractor3D.cpp.
References GetData(), mitk::InteractionPositionEvent::GetPointerPositionOnScreen(), mitk::InteractionPositionEvent::GetPositionInWorld(), mitk::InteractionEvent::GetSender(), and mitk::BaseRenderer::GetTimeStep().
|
protectedvirtual |
Definition at line 367 of file mitkAffineBaseDataInteractor3D.cpp.
References mitk::InitMembers().
|
protectedvirtual |
Definition at line 362 of file mitkAffineBaseDataInteractor3D.cpp.
References mitk::InitMembers().
mitk::AffineBaseDataInteractor3D::mitkClassMacro | ( | AffineBaseDataInteractor3D | , |
DataInteractor | |||
) |
|
static |
Referenced by QmitkBoundingObjectWidget::SelectionChanged().
|
protectedvirtual |
Definition at line 488 of file mitkAffineBaseDataInteractor3D.cpp.
References deselectedColorPropertyName, mitk::RenderingManager::GetInstance(), priorPropertyName, mitk::RenderingManager::RequestUpdateAll(), rotationStepSizePropertyName, scaleStepSizePropertyName, selectedColorPropertyName, and translationStepSizePropertyName.
|
protectedvirtual |
Definition at line 159 of file mitkAffineBaseDataInteractor3D.cpp.
References rotationStepSizePropertyName.
|
protectedvirtual |
Definition at line 192 of file mitkAffineBaseDataInteractor3D.cpp.
References rotationStepSizePropertyName.
void mitk::AffineBaseDataInteractor3D::RotateGeometry | ( | mitk::ScalarType | angle, |
int | rotationaxis, | ||
mitk::BaseGeometry * | geometry | ||
) |
Definition at line 239 of file mitkAffineBaseDataInteractor3D.cpp.
References anchorPointX, anchorPointY, anchorPointZ, mitk::BaseGeometry::ExecuteOperation(), mitk::BaseGeometry::GetAxisVector(), mitk::RenderingManager::GetInstance(), mitk::OpROTATE, and mitk::RenderingManager::RequestUpdateAll().
|
protectedvirtual |
Definition at line 168 of file mitkAffineBaseDataInteractor3D.cpp.
References rotationStepSizePropertyName.
|
protectedvirtual |
Definition at line 417 of file mitkAffineBaseDataInteractor3D.cpp.
References GetData(), mitk::InteractionPositionEvent::GetPointerPositionOnScreen(), mitk::InteractionPositionEvent::GetPositionInWorld(), mitk::BaseRenderer::GetRenderingManager(), mitk::InteractionEvent::GetSender(), mitk::BaseRenderer::GetTimeStep(), mitk::BaseRenderer::GetVtkRenderer(), mitk::OpROTATE, and mitk::RenderingManager::RequestUpdateAll().
|
protectedvirtual |
Definition at line 176 of file mitkAffineBaseDataInteractor3D.cpp.
References rotationStepSizePropertyName.
|
protectedvirtual |
Definition at line 152 of file mitkAffineBaseDataInteractor3D.cpp.
References rotationStepSizePropertyName.
|
protectedvirtual |
Definition at line 184 of file mitkAffineBaseDataInteractor3D.cpp.
References rotationStepSizePropertyName.
|
protectedvirtual |
Definition at line 209 of file mitkAffineBaseDataInteractor3D.cpp.
References scaleStepSizePropertyName.
void mitk::AffineBaseDataInteractor3D::ScaleGeometry | ( | mitk::Point3D | newScale, |
mitk::BaseGeometry * | geometry | ||
) |
Definition at line 219 of file mitkAffineBaseDataInteractor3D.cpp.
References anchorPointX, anchorPointY, anchorPointZ, mitk::BaseGeometry::ExecuteOperation(), mitk::RenderingManager::GetInstance(), mitk::OpSCALE, and mitk::RenderingManager::RequestUpdateAll().
|
protectedvirtual |
Definition at line 483 of file mitkAffineBaseDataInteractor3D.cpp.
|
protectedvirtual |
Definition at line 200 of file mitkAffineBaseDataInteractor3D.cpp.
References scaleStepSizePropertyName.
|
protectedvirtual |
Definition at line 325 of file mitkAffineBaseDataInteractor3D.cpp.
References mitk::BaseRenderer::GetRenderingManager(), mitk::InteractionEvent::GetSender(), mitk::RenderingManager::RequestUpdateAll(), selectedColor, and selectedColorPropertyName.
|
virtual |
Reimplemented from mitk::DataInteractor.
Definition at line 305 of file mitkAffineBaseDataInteractor3D.cpp.
References mitk::RestoreNodeProperties(), and mitk::DataInteractor::SetDataNode().
|
protectedvirtual |
Definition at line 97 of file mitkAffineBaseDataInteractor3D.cpp.
References translationStepSizePropertyName.
|
protectedvirtual |
Definition at line 141 of file mitkAffineBaseDataInteractor3D.cpp.
References translationStepSizePropertyName.
void mitk::AffineBaseDataInteractor3D::TranslateGeometry | ( | mitk::Vector3D | translate, |
mitk::BaseGeometry * | geometry | ||
) |
Definition at line 263 of file mitkAffineBaseDataInteractor3D.cpp.
References mitk::RenderingManager::GetInstance(), mitk::RenderingManager::RequestUpdateAll(), and mitk::BaseGeometry::Translate().
|
protectedvirtual |
Definition at line 108 of file mitkAffineBaseDataInteractor3D.cpp.
References translationStepSizePropertyName.
|
protectedvirtual |
Definition at line 393 of file mitkAffineBaseDataInteractor3D.cpp.
References GetData(), mitk::InteractionPositionEvent::GetPositionInWorld(), mitk::InteractionEvent::GetSender(), and mitk::BaseRenderer::GetTimeStep().
|
protectedvirtual |
Definition at line 119 of file mitkAffineBaseDataInteractor3D.cpp.
References translationStepSizePropertyName.
|
protectedvirtual |
Definition at line 87 of file mitkAffineBaseDataInteractor3D.cpp.
References translationStepSizePropertyName.
|
protectedvirtual |
Definition at line 130 of file mitkAffineBaseDataInteractor3D.cpp.
References translationStepSizePropertyName.