Slicer  4.10
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 void getDisplayableManagers (vtkCollection *displayableManagers)
 
Q_INVOKABLE vtkMRMLViewNodemrmlViewNode () const
 Get the 3D View node observed by view. More...
 
 qMRMLThreeDView (QWidget *parent=0)
 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 setViewCursor (const QCursor &)
 Set cursor in the view area. More...
 
Q_INVOKABLE void unsetViewCursor ()
 Restore default cursor in the view area. More...
 
virtual ~qMRMLThreeDView ()
 

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 39 of file qMRMLThreeDView.h.

Member Typedef Documentation

◆ Superclass

typedef ctkVTKRenderView qMRMLThreeDView::Superclass

Superclass typedef.

Definition at line 44 of file qMRMLThreeDView.h.

Constructor & Destructor Documentation

◆ qMRMLThreeDView()

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

Constructors.

◆ ~qMRMLThreeDView()

virtual qMRMLThreeDView::~qMRMLThreeDView ( )
virtual

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.

◆ 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)

◆ 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 103 of file qMRMLThreeDView.h.


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