NifTK
16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
|
Affine transform UI plugin, provides controls to rotate, translate, scale and shear an mitk::DataNode's index to world geometry, which can be applied to images, surfaces and meshes alike. However, the Resample button only applies to images. More...
Public Member Functions | |
AffineTransformView () | |
virtual | ~AffineTransformView () |
Public Member Functions inherited from niftk::BaseView | |
BaseView () | |
virtual | ~BaseView () |
virtual void | onVisibilityChanged (const mitk::DataNode *node) override |
Called when the visibility of a node in the data storage changed. More... | |
virtual void | OnFocusChanged () |
Called when the window focus changes, and tracks the current mitk::BaseRenderer*. More... | |
virtual bool | IsExclusiveFunctionality () const |
Returns whether this functionality should be exclusive, or in other words, the only active plugin. More... | |
virtual bool | IsActivated () |
Returns the activation status. More... | |
virtual bool | IsVisible () |
Returns the visible status. More... | |
mitk::DataStorage::Pointer | GetDataStorage () const override |
Gets the currently active data storage. More... | |
virtual void | SetCurrentSelection (mitk::DataNode::Pointer dataNode) override |
Selects the data node in this view and also in the data manager. It sets the "selected" property of the node. As a (positive) side effect of changing the data manager selection, the "selected" property of the previously selected nodes will be cleared. More... | |
virtual QmitkRenderWindow * | GetRenderWindow (QString id) |
Retrieves a RenderWindow from the mitkRenderWindowPart. More... | |
virtual QmitkRenderWindow * | GetSelectedRenderWindow () const override |
Retrieves the currently selected RenderWindow from the mitkRenderWindowPart. More... | |
virtual bool | IsActiveEditorCursorVisible () const override |
Gets the visibility of the cursor (aka. crosshair) in the 2D render windows of the main display. More... | |
virtual void | SetActiveEditorCursorVisible (bool visible) const override |
Sets the visibility of the cursor (aka. crosshair) in the 2D render windows of the main display. More... | |
virtual void | RequestRenderWindowUpdate (mitk::RenderingManager::RequestType requestType=mitk::RenderingManager::REQUEST_UPDATE_ALL) override |
Request an update of all render windows of the currently active render window part. More... | |
QList< mitk::DataNode::Pointer > | GetDataManagerSelection () const override |
Gets the list of nodes selected in the data manager. More... | |
virtual void | FireNodeSelected (mitk::DataNode::Pointer node) override |
Informs other parts of the workbench that node is selected via the blueberry selection service. More... | |
virtual mitk::SliceNavigationController * | GetSliceNavigationController () override |
Retrieve the current slice navigation controller from the currently focused render window. More... | |
virtual void | FocusOnCurrentWindow () const override |
Used to try and get the FocusManager to focus on the Current IRenderWindowPart. More... | |
virtual mitk::Point3D | GetSelectedPosition () const override |
Gets the selected position in the active render window part. More... | |
virtual void | SetSelectedPosition (const mitk::Point3D &selectedPosition) override |
Sets the selected position in the active render window part. More... | |
Public Member Functions inherited from niftk::VisibilityChangeObserver | |
VisibilityChangeObserver () | |
virtual | ~VisibilityChangeObserver () |
Protected Slots | |
virtual void | CreateQtPartControl (QWidget *parent) override |
Called by framework, this method creates all the controls for this view. More... | |
virtual void | SetFocus () override |
Called by framework, sets the focus on a specific widget. More... | |
void | OnParameterChanged () |
Slot for all changes to transformation parameters. More... | |
void | OnResetTransformPushed () |
Slot for reset button that resets the parameter controls, and updates node geometry accordingly. More... | |
void | OnSaveTransformPushed () |
Slot for saving transform to disk. More... | |
void | OnLoadTransformPushed () |
Slot for loading transform from disk. More... | |
void | OnResampleTransformPushed () |
Slot for resampling the current image. More... | |
void | OnApplyTransformPushed () |
Slot for updating the direction cosines of the current image. More... | |
void | OnRotationValueChanged () |
Slot for keeping the rotation sliders and spinboxes in synch. More... | |
void | OnTranslationValueChanged () |
Slot for keeping the translation sliders and spinboxes in synch. More... | |
void | OnScalingValueChanged () |
Slot for keeping the scaling sliders and spinboxes in synch. More... | |
void | OnShearingValueChanged () |
Slot for keeping the shearing sliders and spinboxes in synch. More... | |
void | OnInteractiveModeToggled (bool on) |
Slot for switching between interactive and regular transformation editing. More... | |
void | OnRotationToggled (bool on) |
Slot for switching between translation and rotation in interactive editing mode. More... | |
void | OnTransformReady () |
Slot to update display when the interactive alignment has finished. More... | |
void | OnFixAngleToggled (bool on) |
Slot for enabling / disabling fixed angle rotation / translations. More... | |
void | OnAxisChanged (bool on) |
Slot for swithcing the main axis of translation / rotation. More... | |
Protected Member Functions | |
virtual void | OnSelectionChanged (berry::IWorkbenchPart::Pointer part, const QList< mitk::DataNode::Pointer > &nodes) override |
Protected Member Functions inherited from niftk::BaseView | |
virtual void | Activated () override |
virtual void | Deactivated () override |
virtual void | Visible () override |
virtual void | Hidden () override |
virtual QWidget * | GetParent () |
virtual void | SetParent (QWidget *) |
Normally called from within CreateQtPartControl, we store the parent widget. More... | |
void | SetViewToCoordinate (const mitk::Point3D &coordinate) |
Gets the current render window, and sets it to the given coordinate, specified in millimetres. More... | |
Additional Inherited Members | |
Public Types inherited from niftk::BaseView | |
typedef QmitkAbstractView | SuperClass |
Affine transform UI plugin, provides controls to rotate, translate, scale and shear an mitk::DataNode's index to world geometry, which can be applied to images, surfaces and meshes alike. However, the Resample button only applies to images.
AffineTransformView::AffineTransformView | ( | ) |
|
virtual |
|
overrideprotectedvirtualslot |
Called by framework, this method creates all the controls for this view.
|
protectedslot |
Slot for updating the direction cosines of the current image.
|
protectedslot |
Slot for swithcing the main axis of translation / rotation.
|
protectedslot |
Slot for enabling / disabling fixed angle rotation / translations.
|
protectedslot |
Slot for switching between interactive and regular transformation editing.
|
protectedslot |
Slot for loading transform from disk.
|
protectedslot |
Slot for all changes to transformation parameters.
|
protectedslot |
Slot for resampling the current image.
|
protectedslot |
Slot for reset button that resets the parameter controls, and updates node geometry accordingly.
|
protectedslot |
Slot for switching between translation and rotation in interactive editing mode.
|
protectedslot |
Slot for keeping the rotation sliders and spinboxes in synch.
|
protectedslot |
Slot for saving transform to disk.
|
protectedslot |
Slot for keeping the scaling sliders and spinboxes in synch.
|
overrideprotectedvirtual |
Reimplemented from niftk::BaseView.
|
protectedslot |
Slot for keeping the shearing sliders and spinboxes in synch.
|
protectedslot |
Slot to update display when the interactive alignment has finished.
|
protectedslot |
Slot for keeping the translation sliders and spinboxes in synch.
|
overrideprotectedvirtualslot |
Called by framework, sets the focus on a specific widget.