Slicer  5.1
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
List of all members | Public Types | Public Slots | Public Member Functions | Protected Attributes
qMRMLSliceView Class Reference

2D view for slice nodes. For performance reasons, the view block refreshs when the scene is in batch process state. More...

#include <Libs/MRML/Widgets/qMRMLSliceView.h>

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

Public Types

typedef ctkVTKSliceView Superclass
 Superclass typedef. More...
 

Public Slots

void setMRMLScene (vtkMRMLScene *newScene)
 
void setMRMLSliceNode (vtkMRMLSliceNode *newSliceNode)
 Set the current viewNode to observe. More...
 

Public Member Functions

Q_INVOKABLE void addDisplayableManager (const QString &displayableManager)
 
Q_INVOKABLE QList< double > convertDeviceToXYZ (const QList< int > &xy) const
 
Q_INVOKABLE QList< double > convertRASToXYZ (const QList< double > &ras) const
 
Q_INVOKABLE QList< double > convertXYZToRAS (const QList< double > &xyz) const
 
Q_INVOKABLE vtkMRMLAbstractDisplayableManagerdisplayableManagerByClassName (const char *className)
 Return a DisplayableManager given its class name. More...
 
void dragEnterEvent (QDragEnterEvent *event) override
 
void dropEvent (QDropEvent *event) override
 
Q_INVOKABLE void getDisplayableManagers (vtkCollection *displayableManagers)
 
Q_INVOKABLE vtkMRMLSliceNodemrmlSliceNode () const
 Get the 3D View node observed by view. More...
 
 qMRMLSliceView (QWidget *parent=nullptr)
 Constructors. More...
 
Q_INVOKABLE void setDefaultViewCursor (const QCursor &cursor)
 Set default cursor in the view area. More...
 
Q_INVOKABLE void setViewCursor (const QCursor &)
 Set cursor in the view area. More...
 
Q_INVOKABLE vtkMRMLSliceViewInteractorStylesliceViewInteractorStyle () const
 Returns the interactor style of the view. More...
 
Q_INVOKABLE void unsetViewCursor ()
 Restore default cursor in the view area. More...
 
 ~qMRMLSliceView () override
 

Protected Attributes

QScopedPointer< qMRMLSliceViewPrivate > d_ptr
 

Detailed Description

2D view for slice nodes. For performance reasons, the view block refreshs when the scene is in batch process state.

See also
qMRMLSliceWidget, qMRMLSliceControllerWidget, qMRMLThreeDView

Definition at line 42 of file qMRMLSliceView.h.

Member Typedef Documentation

◆ Superclass

typedef ctkVTKSliceView qMRMLSliceView::Superclass

Superclass typedef.

Definition at line 48 of file qMRMLSliceView.h.

Constructor & Destructor Documentation

◆ qMRMLSliceView()

qMRMLSliceView::qMRMLSliceView ( QWidget *  parent = nullptr)
explicit

Constructors.

◆ ~qMRMLSliceView()

qMRMLSliceView::~qMRMLSliceView ( )
override

Member Function Documentation

◆ addDisplayableManager()

Q_INVOKABLE void qMRMLSliceView::addDisplayableManager ( const QString &  displayableManager)

Add a displayable manager to the view, the displayable manager is proper to the 2D view and is not shared with other views. If you want to register a displayable manager with all the 2D views (existing or future), you need to do it via vtkMRMLSliceViewDisplayableManagerFactory::RegisterDisplayableManager() By default: vtkMRMLModelSliceDisplayableManager, vtkMRMLVolumeGlyphSliceDisplayableManager and vtkMRMLCrosshairDisplayableManager are registered.

See also
getDisplayableManagers

◆ convertDeviceToXYZ()

Q_INVOKABLE QList<double> qMRMLSliceView::convertDeviceToXYZ ( const QList< int > &  xy) const

Convert device coordinates to XYZ coordinates. The x and y components of the return value are the positions within a LightBox pane and the z component of the return value (rounded to the nearest integer) is the pane in the LightBox

◆ convertRASToXYZ()

Q_INVOKABLE QList<double> qMRMLSliceView::convertRASToXYZ ( const QList< double > &  ras) const

Convert RAS to XYZ coordinates. parameters ras and return value are of length 3. Z component of the return value is the pane in the LightBox.

◆ convertXYZToRAS()

Q_INVOKABLE QList<double> qMRMLSliceView::convertXYZToRAS ( const QList< double > &  xyz) const

Convert XYZ to RAS coordinates. parameters xyz and return value are of length 3. Z component of parameter xyz is the LightBox pane and the X and Y components of parameter xyz is the position in the LightBox pane.

◆ displayableManagerByClassName()

Q_INVOKABLE vtkMRMLAbstractDisplayableManager* qMRMLSliceView::displayableManagerByClassName ( const char *  className)

Return a DisplayableManager given its class name.

◆ dragEnterEvent()

void qMRMLSliceView::dragEnterEvent ( QDragEnterEvent *  event)
override

◆ dropEvent()

void qMRMLSliceView::dropEvent ( QDropEvent *  event)
override

◆ getDisplayableManagers()

Q_INVOKABLE void qMRMLSliceView::getDisplayableManagers ( vtkCollection *  displayableManagers)

Get the displayable managers registered in this view

See also
addDisplayableManager

◆ mrmlSliceNode()

Q_INVOKABLE vtkMRMLSliceNode* qMRMLSliceView::mrmlSliceNode ( ) const

Get the 3D View node observed by view.

◆ setDefaultViewCursor()

Q_INVOKABLE void qMRMLSliceView::setDefaultViewCursor ( const QCursor &  cursor)

Set default cursor in the view area.

◆ setMRMLScene

void qMRMLSliceView::setMRMLScene ( vtkMRMLScene newScene)
slot

Set the MRML scene that should be listened for events When the scene is in batch process state, the view blocks all refresh.

See also
renderEnabled

◆ setMRMLSliceNode

void qMRMLSliceView::setMRMLSliceNode ( vtkMRMLSliceNode newSliceNode)
slot

Set the current viewNode to observe.

◆ setViewCursor()

Q_INVOKABLE void qMRMLSliceView::setViewCursor ( const QCursor &  )

Set cursor in the view area.

◆ sliceViewInteractorStyle()

Q_INVOKABLE vtkMRMLSliceViewInteractorStyle* qMRMLSliceView::sliceViewInteractorStyle ( ) const

Returns the interactor style of the view.

◆ unsetViewCursor()

Q_INVOKABLE void qMRMLSliceView::unsetViewCursor ( )

Restore default cursor in the view area.

Member Data Documentation

◆ d_ptr

QScopedPointer<qMRMLSliceViewPrivate> qMRMLSliceView::d_ptr
protected

Definition at line 116 of file qMRMLSliceView.h.


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