Slicer 5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
qMRMLAbstractViewWidget Class Referenceabstract

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

Inheritance diagram for qMRMLAbstractViewWidget:
Collaboration diagram for qMRMLAbstractViewWidget:

Public Types

typedef qMRMLWidget Superclass
 Superclass typedef.
 
- Public Types inherited from qMRMLWidget
typedef QWidget Superclass
 

Properties

QColor viewColor
 
QString viewLabel
 

Public Slots

virtual void pauseRender ()
 
virtual void resumeRender ()
 
virtual void setMRMLAbstractViewNode (vtkMRMLAbstractViewNode *newViewNode)=0
 Set the current viewNode to observe.
 
virtual void setRenderPaused (bool pause)
 
- Public Slots inherited from qMRMLWidget
virtual void setMRMLScene (vtkMRMLScene *newScene)
 Set the MRML scene associated with the widget.
 

Public Member Functions

virtual Q_INVOKABLE qMRMLViewControllerBarcontrollerWidget () const =0
 Get slice controller.
 
virtual Q_INVOKABLE vtkMRMLAbstractLogiclogic () const
 
virtual Q_INVOKABLE vtkMRMLAbstractViewNodemrmlAbstractViewNode () const =0
 Get the View node observed by view.
 
 qMRMLAbstractViewWidget (QWidget *parent=nullptr)
 Constructors.
 
virtual Q_INVOKABLE void setViewColor (const QColor &newViewColor)
 
virtual Q_INVOKABLE void setViewLabel (const QString &newViewLabel)
 
virtual Q_INVOKABLE QColor viewColor () const
 
virtual Q_INVOKABLE QString viewLabel () const
 
virtual Q_INVOKABLE QWidget * viewWidget () const =0
 
 ~qMRMLAbstractViewWidget () override=default
 
- Public Member Functions inherited from qMRMLWidget
Q_INVOKABLE vtkMRMLScenemrmlScene () const
 Return a pointer on the current MRML scene.
 
 qMRMLWidget (QWidget *parent=nullptr, Qt::WindowFlags f=Qt::WindowFlags())
 
 ~qMRMLWidget () override
 

Additional Inherited Members

- Signals inherited from qMRMLWidget
void mrmlSceneChanged (vtkMRMLScene *)
 
- Static Public Member Functions inherited from qMRMLWidget
static Q_INVOKABLE QPixmap pixmapFromIcon (const QIcon &icon)
 
static Q_INVOKABLE void postInitializeApplication ()
 Initialization that needs to be performed after application object is created.
 
static Q_INVOKABLE void preInitializeApplication ()
 
- Protected Attributes inherited from qMRMLWidget
QScopedPointer< qMRMLWidgetPrivate > d_ptr
 

Detailed Description

Definition at line 37 of file qMRMLAbstractViewWidget.h.

Member Typedef Documentation

◆ Superclass

Property Documentation

◆ viewColor

QColor qMRMLAbstractViewWidget::viewColor
readwrite

Definition at line 42 of file qMRMLAbstractViewWidget.h.

◆ viewLabel

QString qMRMLAbstractViewWidget::viewLabel
readwrite

Definition at line 41 of file qMRMLAbstractViewWidget.h.

Constructor & Destructor Documentation

◆ qMRMLAbstractViewWidget()

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

Constructors.

◆ ~qMRMLAbstractViewWidget()

qMRMLAbstractViewWidget::~qMRMLAbstractViewWidget ( )
overridedefault

Member Function Documentation

◆ controllerWidget()

virtual Q_INVOKABLE qMRMLViewControllerBar * qMRMLAbstractViewWidget::controllerWidget ( ) const
pure virtual

Get slice controller.

Implemented in qMRMLPlotWidget, qMRMLSliceWidget, qMRMLTableWidget, and qMRMLThreeDWidget.

◆ logic()

virtual Q_INVOKABLE vtkMRMLAbstractLogic * qMRMLAbstractViewWidget::logic ( ) const
virtual
See also
qMRMLSliceControllerWidget::viewLogic()

Reimplemented in qMRMLSliceWidget, and qMRMLThreeDWidget.

◆ mrmlAbstractViewNode()

virtual Q_INVOKABLE vtkMRMLAbstractViewNode * qMRMLAbstractViewWidget::mrmlAbstractViewNode ( ) const
pure virtual

Get the View node observed by view.

Implemented in qMRMLPlotWidget, qMRMLSliceWidget, qMRMLTableWidget, and qMRMLThreeDWidget.

◆ pauseRender

virtual void qMRMLAbstractViewWidget::pauseRender ( )
virtualslot

Increments the pause render count

See also
setPauseRender()

◆ resumeRender

virtual void qMRMLAbstractViewWidget::resumeRender ( )
virtualslot

De-increments the pause render count and calls scheduleRender() if one is currently pending

See also
setPauseRender()

◆ setMRMLAbstractViewNode

virtual void qMRMLAbstractViewWidget::setMRMLAbstractViewNode ( vtkMRMLAbstractViewNode * newViewNode)
pure virtualslot

Set the current viewNode to observe.

◆ setRenderPaused

virtual void qMRMLAbstractViewWidget::setRenderPaused ( bool pause)
virtualslot

Calls pauseRender() if pause is true or resumeRender() if pause is false

See also
pauseRender(), resumeRender()

◆ setViewColor()

virtual Q_INVOKABLE void qMRMLAbstractViewWidget::setViewColor ( const QColor & newViewColor)
virtual

Set the color displayed in the controlled widget.

See also
viewColor()

◆ setViewLabel()

virtual Q_INVOKABLE void qMRMLAbstractViewWidget::setViewLabel ( const QString & newViewLabel)
virtual

Set the text displayed in the controlled widget label.

See also
viewLabel()

◆ viewColor()

virtual Q_INVOKABLE QColor qMRMLAbstractViewWidget::viewColor ( ) const
virtual

Get the color displayed in the controlled widget.

See also
setViewColor()

◆ viewLabel()

virtual Q_INVOKABLE QString qMRMLAbstractViewWidget::viewLabel ( ) const
virtual

Get the text displayed in the controlled widget label.

See also
setViewLabel()

◆ viewWidget()

virtual Q_INVOKABLE QWidget * qMRMLAbstractViewWidget::viewWidget ( ) const
pure virtual

Get a reference to the underlying view widget. Be careful if you change the viewWidget, you might unsynchronize the view from the nodes/logics.

Implemented in qMRMLPlotWidget, qMRMLSliceWidget, qMRMLTableWidget, and qMRMLThreeDWidget.


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