NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
Public Member Functions | Protected Slots | Protected Member Functions | List of all members
AffineTransformView Class Reference

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...

Inheritance diagram for AffineTransformView:
Inheritance graph
[legend]
Collaboration diagram for AffineTransformView:
Collaboration graph
[legend]

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
 

Detailed Description

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.

Constructor & Destructor Documentation

AffineTransformView::AffineTransformView ( )
AffineTransformView::~AffineTransformView ( )
virtual

Member Function Documentation

void AffineTransformView::CreateQtPartControl ( QWidget *  parent)
overrideprotectedvirtualslot

Called by framework, this method creates all the controls for this view.

void AffineTransformView::OnApplyTransformPushed ( )
protectedslot

Slot for updating the direction cosines of the current image.

void AffineTransformView::OnAxisChanged ( bool  on)
protectedslot

Slot for swithcing the main axis of translation / rotation.

void AffineTransformView::OnFixAngleToggled ( bool  on)
protectedslot

Slot for enabling / disabling fixed angle rotation / translations.

void AffineTransformView::OnInteractiveModeToggled ( bool  on)
protectedslot

Slot for switching between interactive and regular transformation editing.

void AffineTransformView::OnLoadTransformPushed ( )
protectedslot

Slot for loading transform from disk.

void AffineTransformView::OnParameterChanged ( )
protectedslot

Slot for all changes to transformation parameters.

void AffineTransformView::OnResampleTransformPushed ( )
protectedslot

Slot for resampling the current image.

void AffineTransformView::OnResetTransformPushed ( )
protectedslot

Slot for reset button that resets the parameter controls, and updates node geometry accordingly.

void AffineTransformView::OnRotationToggled ( bool  on)
protectedslot

Slot for switching between translation and rotation in interactive editing mode.

void AffineTransformView::OnRotationValueChanged ( )
protectedslot

Slot for keeping the rotation sliders and spinboxes in synch.

void AffineTransformView::OnSaveTransformPushed ( )
protectedslot

Slot for saving transform to disk.

void AffineTransformView::OnScalingValueChanged ( )
protectedslot

Slot for keeping the scaling sliders and spinboxes in synch.

void AffineTransformView::OnSelectionChanged ( berry::IWorkbenchPart::Pointer  part,
const QList< mitk::DataNode::Pointer > &  nodes 
)
overrideprotectedvirtual
See also
QmitkAbstractView::OnSelectionChanged.

Reimplemented from niftk::BaseView.

void AffineTransformView::OnShearingValueChanged ( )
protectedslot

Slot for keeping the shearing sliders and spinboxes in synch.

void AffineTransformView::OnTransformReady ( )
protectedslot

Slot to update display when the interactive alignment has finished.

void AffineTransformView::OnTranslationValueChanged ( )
protectedslot

Slot for keeping the translation sliders and spinboxes in synch.

void AffineTransformView::SetFocus ( )
overrideprotectedvirtualslot

Called by framework, sets the focus on a specific widget.


The documentation for this class was generated from the following files: