Slicer  5.0
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
qMRMLThreeDView Class Reference

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

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

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

Public Types

typedef ctkVTKRenderView Superclass
 Superclass typedef. More...
 

Public Slots

void lookFromViewAxis (const ctkAxesWidget::Axis &axis)
 Look from a given axis, need a mrml view node to be set. More...
 
virtual void resetFocalPoint ()
 
void setMRMLScene (vtkMRMLScene *newScene)
 
void setMRMLViewNode (vtkMRMLViewNode *newViewNode)
 Set the current viewNode to observe. More...
 

Public Member Functions

void addDisplayableManager (const QString &displayableManager)
 
Q_INVOKABLE vtkMRMLCameraNodecameraNode ()
 Returns camera node of the 3D view. More...
 
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 vtkMRMLViewNodemrmlViewNode () const
 Get the 3D View node observed by view. More...
 
 qMRMLThreeDView (QWidget *parent=nullptr)
 Constructors. More...
 
Q_INVOKABLE void resetCamera (bool resetRotation=true, bool resetTranslation=true, bool resetDistance=true)
 
Q_INVOKABLE void rotateToViewAxis (unsigned int axisId)
 Returns the interactor style of the view. More...
 
Q_INVOKABLE void rotateToViewAxis (const std::string &axisLabel)
 
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 void unsetViewCursor ()
 Restore default cursor in the view area. More...
 
 ~qMRMLThreeDView () override
 

Protected Attributes

QScopedPointer< qMRMLThreeDViewPrivate > d_ptr
 

Detailed Description

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

See also
qMRMLThreeDWidget, qMRMLThreeDViewControllerWidget, qMRMLSliceView

Definition at line 42 of file qMRMLThreeDView.h.

Member Typedef Documentation

◆ Superclass

typedef ctkVTKRenderView qMRMLThreeDView::Superclass

Superclass typedef.

Definition at line 47 of file qMRMLThreeDView.h.

Constructor & Destructor Documentation

◆ qMRMLThreeDView()

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

Constructors.

◆ ~qMRMLThreeDView()

qMRMLThreeDView::~qMRMLThreeDView ( )
override

Member Function Documentation

◆ addDisplayableManager()

void qMRMLThreeDView::addDisplayableManager ( const QString &  displayableManager)

Add a displayable manager to the view, the displayable manager is proper to the 3D view and is not shared with other views. If you want to register a displayable manager with all the 3D views (existing or future), you need to do it via vtkMRMLThreeDViewDisplayableManagerFactory::RegisterDisplayableManager() By default: vtkMRMLCameraDisplayableManager, vtkMRMLViewDisplayableManager and vtkMRMLModelDisplayableManager are already registered.

◆ cameraNode()

Q_INVOKABLE vtkMRMLCameraNode* qMRMLThreeDView::cameraNode ( )

Returns camera node of the 3D view.

◆ displayableManagerByClassName()

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

Return a DisplayableManager given its class name.

◆ dragEnterEvent()

void qMRMLThreeDView::dragEnterEvent ( QDragEnterEvent *  event)
override

◆ dropEvent()

void qMRMLThreeDView::dropEvent ( QDropEvent *  event)
override

◆ getDisplayableManagers()

Q_INVOKABLE void qMRMLThreeDView::getDisplayableManagers ( vtkCollection *  displayableManagers)

◆ lookFromViewAxis

void qMRMLThreeDView::lookFromViewAxis ( const ctkAxesWidget::Axis &  axis)
slot

Look from a given axis, need a mrml view node to be set.

◆ mrmlViewNode()

Q_INVOKABLE vtkMRMLViewNode* qMRMLThreeDView::mrmlViewNode ( ) const

Get the 3D View node observed by view.

◆ resetCamera()

Q_INVOKABLE void qMRMLThreeDView::resetCamera ( bool  resetRotation = true,
bool  resetTranslation = true,
bool  resetDistance = true 
)

◆ resetFocalPoint

virtual void qMRMLThreeDView::resetFocalPoint ( )
virtualslot

Reimplemented to hide items to not take into account when computing the boundaries

◆ rotateToViewAxis() [1/2]

Q_INVOKABLE void qMRMLThreeDView::rotateToViewAxis ( unsigned int  axisId)

Returns the interactor style of the view.

Methods to rotate/reset the camera, Can defined a view axis by its index (from 0 to 5) or its label (defined in vtkMRMLViewNode::AxisLabels) to rotate to the axis ranged in that order: -X, +X, -Y, +Y, -Z, +Z

◆ rotateToViewAxis() [2/2]

Q_INVOKABLE void qMRMLThreeDView::rotateToViewAxis ( const std::string &  axisLabel)

◆ setDefaultViewCursor()

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

Set default cursor in the view area.

◆ setMRMLScene

void qMRMLThreeDView::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

◆ setMRMLViewNode

void qMRMLThreeDView::setMRMLViewNode ( vtkMRMLViewNode newViewNode)
slot

Set the current viewNode to observe.

◆ setViewCursor()

Q_INVOKABLE void qMRMLThreeDView::setViewCursor ( const QCursor &  )

Set cursor in the view area.

◆ unsetViewCursor()

Q_INVOKABLE void qMRMLThreeDView::unsetViewCursor ( )

Restore default cursor in the view area.

Member Data Documentation

◆ d_ptr

QScopedPointer<qMRMLThreeDViewPrivate> qMRMLThreeDView::d_ptr
protected

Definition at line 118 of file qMRMLThreeDView.h.


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