Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
Affine interaction with mitk::BaseGeometry. More...
#include <mitkAffineBaseDataInteractor3D.h>
Public Member Functions | |
mitkClassMacro (AffineBaseDataInteractor3D, DataInteractor) | |
Pointer | Clone () const |
void | SetDataNode (DataNode *node) override |
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) |
![]() | |
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 |
![]() | |
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... | |
![]() | |
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 const char * | GetStaticNameOfClass () |
static Pointer | New () |
![]() | |
static const char * | GetStaticNameOfClass () |
![]() | |
static const char * | GetStaticNameOfClass () |
Affine interaction with mitk::BaseGeometry.
Definition at line 36 of file mitkAffineBaseDataInteractor3D.h.
|
protected |
Definition at line 40 of file mitkAffineBaseDataInteractor3D.cpp.
References mitk::Geometry3D::New().
|
overrideprotected |
Definition at line 45 of file mitkAffineBaseDataInteractor3D.cpp.
References RestoreNodeProperties().
|
protectedvirtual |
Initializes the movement, stores starting position.
Definition at line 307 of file mitkAffineBaseDataInteractor3D.cpp.
References mitk::DataInteractor::GetDataNode(), mitk::InteractionEvent::GetSender(), and mitk::BaseRenderer::PickObject().
Referenced by ConnectActionsAndFunctions().
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 50 of file mitkAffineBaseDataInteractor3D.cpp.
References CheckOverObject(), CONNECT_CONDITION, CONNECT_FUNCTION, DeselectObject(), InitRotate(), InitTranslate(), RotateDownKey(), RotateDownModifierKey(), RotateLeftKey(), RotateObject(), RotateRightKey(), RotateUpKey(), RotateUpModifierKey(), ScaleDownKey(), ScaleObject(), ScaleUpKey(), SelectObject(), TranslateDownKey(), TranslateDownModifierKey(), TranslateLeftKey(), TranslateObject(), TranslateRightKey(), TranslateUpKey(), and TranslateUpModifierKey().
|
overrideprotectedvirtual |
This function is called when a DataNode has been set/changed.
Reimplemented from mitk::DataInteractor.
Definition at line 276 of file mitkAffineBaseDataInteractor3D.cpp.
References deselectedColorPropertyName, mitk::DataInteractor::GetDataNode(), mitk::RenderingManager::GetInstance(), mitk::FloatProperty::New(), mitk::ColorProperty::New(), priorPropertyName, mitk::RenderingManager::RequestUpdateAll(), rotationStepSizePropertyName, scaleStepSizePropertyName, selectedColorPropertyName, and translationStepSizePropertyName.
|
protectedvirtual |
Definition at line 339 of file mitkAffineBaseDataInteractor3D.cpp.
References deselectedColorPropertyName, mitk::DataInteractor::GetDataNode(), mitk::RenderingManager::GetInstance(), mitk::RenderingManager::RequestUpdateAll(), and selectedColor.
Referenced by ConnectActionsAndFunctions().
mitk::BaseGeometry * mitk::AffineBaseDataInteractor3D::GetUpdatedTimeGeometry | ( | mitk::InteractionEvent * | interactionEvent | ) |
Definition at line 266 of file mitkAffineBaseDataInteractor3D.cpp.
References mitk::DataNode::GetData(), mitk::DataInteractor::GetDataNode(), mitk::TimeGeometry::GetGeometryForTimeStep(), mitk::InteractionEvent::GetSender(), mitk::BaseRenderer::GetTimeStep(), mitk::BaseData::GetUpdatedTimeGeometry(), and MITK_ERROR.
Referenced by RotateDownKey(), RotateDownModifierKey(), RotateLeftKey(), RotateRightKey(), RotateUpKey(), RotateUpModifierKey(), ScaleDownKey(), ScaleUpKey(), TranslateDownKey(), TranslateDownModifierKey(), TranslateLeftKey(), TranslateObject(), TranslateRightKey(), TranslateUpKey(), and TranslateUpModifierKey().
|
protected |
InitMembers convinience method to avoid code duplication between InitRotate() and InitTranslate().
interactionEvent |
Definition at line 368 of file mitkAffineBaseDataInteractor3D.cpp.
References mitk::BaseGeometry::Clone(), mitk::DataNode::GetData(), mitk::DataInteractor::GetDataNode(), mitk::BaseData::GetGeometry(), mitk::InteractionEvent::GetSender(), mitk::BaseRenderer::GetTimeStep(), and mitk::BaseData::UpdateOutputInformation().
Referenced by InitRotate(), and InitTranslate().
|
protectedvirtual |
Definition at line 363 of file mitkAffineBaseDataInteractor3D.cpp.
References InitMembers().
Referenced by ConnectActionsAndFunctions().
|
protectedvirtual |
Definition at line 358 of file mitkAffineBaseDataInteractor3D.cpp.
References InitMembers().
Referenced by ConnectActionsAndFunctions().
mitk::AffineBaseDataInteractor3D::mitkClassMacro | ( | AffineBaseDataInteractor3D | , |
DataInteractor | |||
) |
|
static |
Referenced by QmitkBoundingObjectWidget::SelectionChanged().
|
protectedvirtual |
Definition at line 484 of file mitkAffineBaseDataInteractor3D.cpp.
References deselectedColorPropertyName, mitk::DataInteractor::GetDataNode(), mitk::RenderingManager::GetInstance(), priorPropertyName, mitk::RenderingManager::RequestUpdateAll(), rotationStepSizePropertyName, scaleStepSizePropertyName, selectedColorPropertyName, and translationStepSizePropertyName.
Referenced by SetDataNode(), and ~AffineBaseDataInteractor3D().
|
protectedvirtual |
Definition at line 155 of file mitkAffineBaseDataInteractor3D.cpp.
References mitk::DataInteractor::GetDataNode(), mitk::DataNode::GetFloatProperty(), GetUpdatedTimeGeometry(), RotateGeometry(), and rotationStepSizePropertyName.
Referenced by ConnectActionsAndFunctions().
|
protectedvirtual |
Definition at line 188 of file mitkAffineBaseDataInteractor3D.cpp.
References mitk::DataInteractor::GetDataNode(), mitk::DataNode::GetFloatProperty(), GetUpdatedTimeGeometry(), RotateGeometry(), and rotationStepSizePropertyName.
Referenced by ConnectActionsAndFunctions().
void mitk::AffineBaseDataInteractor3D::RotateGeometry | ( | mitk::ScalarType | angle, |
int | rotationaxis, | ||
mitk::BaseGeometry * | geometry | ||
) |
Definition at line 235 of file mitkAffineBaseDataInteractor3D.cpp.
References anchorPointX, anchorPointY, anchorPointZ, mitk::BaseGeometry::ExecuteOperation(), mitk::BaseGeometry::GetAxisVector(), mitk::DataInteractor::GetDataNode(), mitk::DataNode::GetFloatProperty(), mitk::RenderingManager::GetInstance(), mitk::OpROTATE, and mitk::RenderingManager::RequestUpdateAll().
Referenced by RotateDownKey(), RotateDownModifierKey(), RotateLeftKey(), RotateRightKey(), RotateUpKey(), and RotateUpModifierKey().
|
protectedvirtual |
Definition at line 164 of file mitkAffineBaseDataInteractor3D.cpp.
References mitk::DataInteractor::GetDataNode(), mitk::DataNode::GetFloatProperty(), GetUpdatedTimeGeometry(), RotateGeometry(), and rotationStepSizePropertyName.
Referenced by ConnectActionsAndFunctions().
|
protectedvirtual |
Definition at line 413 of file mitkAffineBaseDataInteractor3D.cpp.
References mitk::DataNode::GetData(), mitk::DataInteractor::GetDataNode(), mitk::RenderingManager::GetInstance(), mitk::InteractionEvent::GetSender(), mitk::BaseData::GetTimeGeometry(), mitk::BaseRenderer::GetTimeStep(), mitk::BaseRenderer::GetVtkRenderer(), mitk::OpROTATE, and mitk::RenderingManager::RequestUpdateAll().
Referenced by ConnectActionsAndFunctions().
|
protectedvirtual |
Definition at line 172 of file mitkAffineBaseDataInteractor3D.cpp.
References mitk::DataInteractor::GetDataNode(), mitk::DataNode::GetFloatProperty(), GetUpdatedTimeGeometry(), RotateGeometry(), and rotationStepSizePropertyName.
Referenced by ConnectActionsAndFunctions().
|
protectedvirtual |
Definition at line 148 of file mitkAffineBaseDataInteractor3D.cpp.
References mitk::DataInteractor::GetDataNode(), mitk::DataNode::GetFloatProperty(), GetUpdatedTimeGeometry(), RotateGeometry(), and rotationStepSizePropertyName.
Referenced by ConnectActionsAndFunctions().
|
protectedvirtual |
Definition at line 180 of file mitkAffineBaseDataInteractor3D.cpp.
References mitk::DataInteractor::GetDataNode(), mitk::DataNode::GetFloatProperty(), GetUpdatedTimeGeometry(), RotateGeometry(), and rotationStepSizePropertyName.
Referenced by ConnectActionsAndFunctions().
|
protectedvirtual |
Definition at line 205 of file mitkAffineBaseDataInteractor3D.cpp.
References mitk::DataInteractor::GetDataNode(), mitk::DataNode::GetFloatProperty(), GetUpdatedTimeGeometry(), ScaleGeometry(), and scaleStepSizePropertyName.
Referenced by ConnectActionsAndFunctions().
void mitk::AffineBaseDataInteractor3D::ScaleGeometry | ( | mitk::Point3D | newScale, |
mitk::BaseGeometry * | geometry | ||
) |
Definition at line 215 of file mitkAffineBaseDataInteractor3D.cpp.
References anchorPointX, anchorPointY, anchorPointZ, mitk::BaseGeometry::ExecuteOperation(), mitk::DataInteractor::GetDataNode(), mitk::DataNode::GetFloatProperty(), mitk::RenderingManager::GetInstance(), mitk::OpSCALE, and mitk::RenderingManager::RequestUpdateAll().
Referenced by ScaleDownKey(), and ScaleUpKey().
|
protectedvirtual |
Definition at line 479 of file mitkAffineBaseDataInteractor3D.cpp.
Referenced by ConnectActionsAndFunctions().
|
protectedvirtual |
Definition at line 196 of file mitkAffineBaseDataInteractor3D.cpp.
References mitk::DataInteractor::GetDataNode(), mitk::DataNode::GetFloatProperty(), GetUpdatedTimeGeometry(), ScaleGeometry(), and scaleStepSizePropertyName.
Referenced by ConnectActionsAndFunctions().
|
protectedvirtual |
Definition at line 321 of file mitkAffineBaseDataInteractor3D.cpp.
References mitk::DataInteractor::GetDataNode(), mitk::RenderingManager::GetInstance(), mitk::RenderingManager::RequestUpdateAll(), selectedColor, and selectedColorPropertyName.
Referenced by ConnectActionsAndFunctions().
|
overridevirtual |
Reimplemented from mitk::DataInteractor.
Definition at line 301 of file mitkAffineBaseDataInteractor3D.cpp.
References RestoreNodeProperties(), and mitk::DataInteractor::SetDataNode().
|
protectedvirtual |
Definition at line 93 of file mitkAffineBaseDataInteractor3D.cpp.
References mitk::DataInteractor::GetDataNode(), mitk::DataNode::GetFloatProperty(), GetUpdatedTimeGeometry(), TranslateGeometry(), and translationStepSizePropertyName.
Referenced by ConnectActionsAndFunctions().
|
protectedvirtual |
Definition at line 137 of file mitkAffineBaseDataInteractor3D.cpp.
References mitk::DataInteractor::GetDataNode(), mitk::DataNode::GetFloatProperty(), GetUpdatedTimeGeometry(), TranslateGeometry(), and translationStepSizePropertyName.
Referenced by ConnectActionsAndFunctions().
void mitk::AffineBaseDataInteractor3D::TranslateGeometry | ( | mitk::Vector3D | translate, |
mitk::BaseGeometry * | geometry | ||
) |
Definition at line 259 of file mitkAffineBaseDataInteractor3D.cpp.
References mitk::DataInteractor::GetDataNode(), mitk::RenderingManager::GetInstance(), mitk::RenderingManager::RequestUpdateAll(), and mitk::BaseGeometry::Translate().
Referenced by TranslateDownKey(), TranslateDownModifierKey(), TranslateLeftKey(), TranslateObject(), TranslateRightKey(), TranslateUpKey(), and TranslateUpModifierKey().
|
protectedvirtual |
Definition at line 104 of file mitkAffineBaseDataInteractor3D.cpp.
References mitk::DataInteractor::GetDataNode(), mitk::DataNode::GetFloatProperty(), GetUpdatedTimeGeometry(), TranslateGeometry(), and translationStepSizePropertyName.
Referenced by ConnectActionsAndFunctions().
|
protectedvirtual |
Definition at line 389 of file mitkAffineBaseDataInteractor3D.cpp.
References mitk::DataNode::GetData(), mitk::DataInteractor::GetDataNode(), mitk::TimeGeometry::GetGeometryForTimeStep(), mitk::InteractionEvent::GetSender(), mitk::BaseRenderer::GetTimeStep(), GetUpdatedTimeGeometry(), mitk::BaseData::GetUpdatedTimeGeometry(), and TranslateGeometry().
Referenced by ConnectActionsAndFunctions().
|
protectedvirtual |
Definition at line 115 of file mitkAffineBaseDataInteractor3D.cpp.
References mitk::DataInteractor::GetDataNode(), mitk::DataNode::GetFloatProperty(), GetUpdatedTimeGeometry(), TranslateGeometry(), and translationStepSizePropertyName.
Referenced by ConnectActionsAndFunctions().
|
protectedvirtual |
Definition at line 83 of file mitkAffineBaseDataInteractor3D.cpp.
References mitk::DataInteractor::GetDataNode(), mitk::DataNode::GetFloatProperty(), GetUpdatedTimeGeometry(), TranslateGeometry(), and translationStepSizePropertyName.
Referenced by ConnectActionsAndFunctions().
|
protectedvirtual |
Definition at line 126 of file mitkAffineBaseDataInteractor3D.cpp.
References mitk::DataInteractor::GetDataNode(), mitk::DataNode::GetFloatProperty(), GetUpdatedTimeGeometry(), TranslateGeometry(), and translationStepSizePropertyName.
Referenced by ConnectActionsAndFunctions().