NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
Public Member Functions | List of all members
niftk::IBaseView Class Referenceabstract

Public interface to QmitkBaseView. More...

Inheritance diagram for niftk::IBaseView:
Inheritance graph
[legend]

Public Member Functions

virtual void FocusOnCurrentWindow () const =0
 Used to try and get the FocusManager to focus on the current IRenderWindowPart. More...
 
virtual QmitkRenderWindow * GetSelectedRenderWindow () const =0
 Retrieves the currently selected RenderWindow from the mitkRenderWindowPart. More...
 
virtual mitk::DataStorage::Pointer GetDataStorage () const =0
 
virtual void RequestRenderWindowUpdate (mitk::RenderingManager::RequestType requestType=mitk::RenderingManager::REQUEST_UPDATE_ALL)=0
 Request an update of all render windows of the currently active render window part. More...
 
virtual QList
< mitk::DataNode::Pointer > 
GetDataManagerSelection () const =0
 Gets the list of nodes selected in the data manager. More...
 
virtual void SetCurrentSelection (mitk::DataNode::Pointer dataNode)=0
 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 void FireNodeSelected (mitk::DataNode::Pointer node)=0
 Informs other parts of the workbench that node is selected via the blueberry selection service. More...
 
virtual
mitk::SliceNavigationController * 
GetSliceNavigationController ()=0
 Retrieve the current slice navigation controller from the currently focused render window. More...
 
virtual bool IsActiveEditorCursorVisible () const =0
 Tells if the cursor (aka. crosshair) is visible in the active editor. More...
 
virtual void SetActiveEditorCursorVisible (bool visible) const =0
 Shows or hides the cursor (aka. crosshair) is in the active editor. More...
 
virtual mitk::Point3D GetSelectedPosition () const =0
 Gets the selected position in the active render window part. More...
 
virtual void SetSelectedPosition (const mitk::Point3D &selectedPosition)=0
 Sets the selected position in the active render window part. More...
 

Detailed Description

Public interface to QmitkBaseView.

The aim of this class is to expose view functionality to the module layer.

See also
QmitkBaseView

Member Function Documentation

virtual void niftk::IBaseView::FireNodeSelected ( mitk::DataNode::Pointer  node)
pure virtual

Informs other parts of the workbench that node is selected via the blueberry selection service.

Note
This method should not be used if you have set your own selection provider via SetSelectionProvider() or your own QItemSelectionModel via GetDataNodeSelectionModel().

Implemented in niftk::BaseView.

virtual void niftk::IBaseView::FocusOnCurrentWindow ( ) const
pure virtual

Used to try and get the FocusManager to focus on the current IRenderWindowPart.

Implemented in niftk::BaseView.

virtual QList<mitk::DataNode::Pointer> niftk::IBaseView::GetDataManagerSelection ( ) const
pure virtual

Gets the list of nodes selected in the data manager.

Returns
The current selection made in the datamanager bundle or an empty list if there is no selection or if it is empty.

Implemented in niftk::BaseView.

virtual mitk::DataStorage::Pointer niftk::IBaseView::GetDataStorage ( ) const
pure virtual

Implemented in niftk::BaseView.

virtual mitk::Point3D niftk::IBaseView::GetSelectedPosition ( ) const
pure virtual

Gets the selected position in the active render window part.

Implemented in niftk::BaseView.

virtual QmitkRenderWindow* niftk::IBaseView::GetSelectedRenderWindow ( ) const
pure virtual

Retrieves the currently selected RenderWindow from the mitkRenderWindowPart.

Returns
QmitkRenderWindow* The selected render window or NULL if it no render window is selected.

Implemented in niftk::BaseView.

virtual mitk::SliceNavigationController* niftk::IBaseView::GetSliceNavigationController ( )
pure virtual

Retrieve the current slice navigation controller from the currently focused render window.

Returns
mitk::SliceNavigationController* The slice navigation controller for the currenty focused render window, or nullptr if it can't be determined.

Implemented in niftk::BaseView.

virtual bool niftk::IBaseView::IsActiveEditorCursorVisible ( ) const
pure virtual

Tells if the cursor (aka. crosshair) is visible in the active editor.

Implemented in niftk::BaseView.

virtual void niftk::IBaseView::RequestRenderWindowUpdate ( mitk::RenderingManager::RequestType  requestType = mitk::RenderingManager::REQUEST_UPDATE_ALL)
pure virtual

Request an update of all render windows of the currently active render window part.

Parameters
requestTypeSpecifies the type of render windows for which an update will be requested.

Implemented in niftk::BaseView.

virtual void niftk::IBaseView::SetActiveEditorCursorVisible ( bool  visible) const
pure virtual

Shows or hides the cursor (aka. crosshair) is in the active editor.

Implemented in niftk::BaseView.

virtual void niftk::IBaseView::SetCurrentSelection ( mitk::DataNode::Pointer  dataNode)
pure virtual

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.

Implemented in niftk::BaseView.

virtual void niftk::IBaseView::SetSelectedPosition ( const mitk::Point3D &  selectedPosition)
pure virtual

Sets the selected position in the active render window part.

Implemented in niftk::BaseView.


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