21#ifndef __qMRMLThreeDView_h
22#define __qMRMLThreeDView_h
26#include <ctkVTKRenderView.h>
28#include "qMRMLWidgetsExport.h"
31class qMRMLThreeDViewPrivate;
82 bool resetTranslation =
true,
83 bool resetDistance =
true);
113 qWarning(
"This function is deprecated. Use lookFromAxis(const ctkAxesWidget::Axis& axis) instead.");
114 this->lookFromAxis(axis);
122 QScopedPointer<qMRMLThreeDViewPrivate>
d_ptr;
3D view for view nodes. For performance reasons, the view block refreshes when the scene is in batch ...
Q_INVOKABLE void getDisplayableManagers(vtkCollection *displayableManagers)
Q_INVOKABLE void unsetViewCursor()
Restore default cursor in the view area.
qMRMLThreeDView(QWidget *parent=nullptr)
Constructors.
Q_INVOKABLE vtkMRMLViewNode * mrmlViewNode() const
Get the 3D View node observed by view.
Q_INVOKABLE void rotateToViewAxis(const std::string &axisLabel)
void setMRMLScene(vtkMRMLScene *newScene)
void addDisplayableManager(const QString &displayableManager)
virtual void resetFocalPoint()
void lookFromViewAxis(const ctkAxesWidget::Axis &axis)
void setMRMLViewNode(vtkMRMLViewNode *newViewNode)
Set the current viewNode to observe.
Q_INVOKABLE void rotateToViewAxis(unsigned int axisId)
Returns the interactor style of the view.
Q_INVOKABLE vtkMRMLCameraNode * cameraNode()
Returns camera node of the 3D view.
Q_INVOKABLE void resetCamera(bool resetRotation=true, bool resetTranslation=true, bool resetDistance=true)
QScopedPointer< qMRMLThreeDViewPrivate > d_ptr
ctkVTKRenderView Superclass
Superclass typedef.
Q_INVOKABLE void setDefaultViewCursor(const QCursor &cursor)
Set default cursor in the view area.
void dropEvent(QDropEvent *event) override
Q_INVOKABLE void setViewCursor(const QCursor &)
Set cursor in the view area.
void dragEnterEvent(QDragEnterEvent *event) override
~qMRMLThreeDView() override
Q_INVOKABLE vtkMRMLAbstractDisplayableManager * displayableManagerByClassName(const char *className)
Return a DisplayableManager given its class name.
Superclass for displayable manager classes.
MRML node to represent camera node.
A set of MRML Nodes that supports serialization and undo/redo.
MRML node to represent a 3D view.