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 | Signals | Public Member Functions | Static 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=nullptr, Qt::WindowFlags f=Qt::WindowFlags())
 
 ~qMRMLWidget () override
 

Static Public Member Functions

static Q_INVOKABLE QPixmap pixmapFromIcon (const QIcon &icon)
 
static Q_INVOKABLE void postInitializeApplication ()
 Initialization that needs to be performed after application object is created. More...
 
static Q_INVOKABLE void preInitializeApplication ()
 

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 = nullptr,
Qt::WindowFlags  f = Qt::WindowFlags() 
)
explicit

◆ ~qMRMLWidget()

qMRMLWidget::~qMRMLWidget ( )
override

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.

◆ pixmapFromIcon()

static Q_INVOKABLE QPixmap qMRMLWidget::pixmapFromIcon ( const QIcon &  icon)
static

◆ postInitializeApplication()

static Q_INVOKABLE void qMRMLWidget::postInitializeApplication ( )
static

Initialization that needs to be performed after application object is created.

◆ preInitializeApplication()

static Q_INVOKABLE void qMRMLWidget::preInitializeApplication ( )
static

Initialization that needs to be performed before creating the Qt application object. Sets default application attributes related to hi-DPI, OpenGL surface format initialization, etc.

◆ 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 69 of file qMRMLWidget.h.


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