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 | Signals | Public Member Functions | Protected Attributes
qMRMLWidget Class Reference

Base class for any widget that requires a MRML Scene. More...

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

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

Public Types

typedef QWidget Superclass
 

Public Slots

virtual void setMRMLScene (vtkMRMLScene *newScene)
 Set the MRML scene associated with the widget. More...
 

Signals

void mrmlSceneChanged (vtkMRMLScene *)
 

Public Member Functions

Q_INVOKABLE vtkMRMLScenemrmlScene () const
 Return a pointer on the current MRML scene. More...
 
 qMRMLWidget (QWidget *parent=0, Qt::WindowFlags f=0)
 
virtual ~qMRMLWidget ()
 

Protected Attributes

QScopedPointer< qMRMLWidgetPrivate > d_ptr
 

Detailed Description

Base class for any widget that requires a MRML Scene.

Definition at line 35 of file qMRMLWidget.h.

Member Typedef Documentation

◆ Superclass

typedef QWidget qMRMLWidget::Superclass

Definition at line 40 of file qMRMLWidget.h.

Constructor & Destructor Documentation

◆ qMRMLWidget()

qMRMLWidget::qMRMLWidget ( QWidget *  parent = 0,
Qt::WindowFlags  f = 0 
)
explicit

◆ ~qMRMLWidget()

virtual qMRMLWidget::~qMRMLWidget ( )
virtual

Member Function Documentation

◆ mrmlScene()

Q_INVOKABLE vtkMRMLScene* qMRMLWidget::mrmlScene ( ) const

Return a pointer on the current MRML scene.

◆ mrmlSceneChanged

void qMRMLWidget::mrmlSceneChanged ( vtkMRMLScene )
signal

When designing custom qMRMLWidget in the designer, you can connect the mrmlSceneChanged signal directly to the aggregated MRML widgets that have a setMRMLScene slot.

◆ setMRMLScene

virtual void qMRMLWidget::setMRMLScene ( vtkMRMLScene newScene)
virtualslot

Set the MRML scene associated with the widget.

Reimplemented in qMRMLUnitWidget, and qMRMLColorPickerWidget.

Member Data Documentation

◆ d_ptr

QScopedPointer<qMRMLWidgetPrivate> qMRMLWidget::d_ptr
protected

Definition at line 58 of file qMRMLWidget.h.


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