Slicer  4.8
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
List of all members | Public Types | Properties | Public Slots | Signals | Public Member Functions | Protected Member Functions | Protected Attributes
qMRMLSliceWidget Class Reference

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

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

Public Types

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

Properties

QString sliceOrientation
 

Public Slots

void fitSliceToBackground ()
 Fit slices to background. More...
 
void setImageDataConnection (vtkAlgorithmOutput *newImageDataConnection)
 
void setMRMLScene (vtkMRMLScene *newScene)
 
void setMRMLSliceNode (vtkMRMLSliceNode *newSliceNode)
 
void setSliceOrientation (const QString &orienation)
 
- Public Slots inherited from qMRMLWidget
virtual void setMRMLScene (vtkMRMLScene *newScene)
 Set the MRML scene associated with the widget. More...
 

Signals

void nodeAboutToBeEdited (vtkMRMLNode *node)
 Signal emitted when editing of a node is requested from within the slice widget. More...
 
- Signals inherited from qMRMLWidget
void mrmlSceneChanged (vtkMRMLScene *)
 

Public Member Functions

Q_INVOKABLE vtkAlgorithmOutput * imageDataConnection () const
 
Q_INVOKABLE vtkInteractorObserver * interactorStyle () const
 
Q_INVOKABLE vtkMRMLSliceCompositeNodemrmlSliceCompositeNode () const
 
Q_INVOKABLE vtkMRMLSliceNodemrmlSliceNode () const
 
vtkCornerAnnotation * overlayCornerAnnotation () const
 Return the overlay corner annotation of the view. More...
 
 qMRMLSliceWidget (QWidget *parent=0)
 Constructors. More...
 
void setSliceLogics (vtkCollection *logics)
 propagates the logics to the qMRMLSliceControllerWidget More...
 
void setSliceViewColor (const QColor &newSliceViewColor)
 
void setSliceViewLabel (const QString &newSliceViewLabel)
 
void setSliceViewName (const QString &newSliceViewName)
 
Q_INVOKABLE qMRMLSliceControllerWidgetsliceController () const
 Get slice controller. More...
 
Q_INVOKABLE vtkMRMLSliceLogicsliceLogic () const
 
QString sliceOrientation () const
 
Q_INVOKABLE qMRMLSliceViewsliceView () const
 
QColor sliceViewColor () const
 
QString sliceViewLabel () const
 
QString sliceViewName () const
 
virtual ~qMRMLSliceWidget ()
 
- Public Member Functions inherited from qMRMLWidget
Q_INVOKABLE vtkMRMLScenemrmlScene () const
 Return a pointer on the current MRML scene. More...
 
 qMRMLWidget (QWidget *parent=0, Qt::WindowFlags f=0)
 
virtual ~qMRMLWidget ()
 

Protected Member Functions

 qMRMLSliceWidget (qMRMLSliceWidgetPrivate *obj, QWidget *parent)
 
virtual void showEvent (QShowEvent *)
 

Protected Attributes

QScopedPointer< qMRMLSliceWidgetPrivate > d_ptr
 
- Protected Attributes inherited from qMRMLWidget
QScopedPointer< qMRMLWidgetPrivate > d_ptr
 

Detailed Description

Definition at line 49 of file qMRMLSliceWidget.h.

Member Typedef Documentation

◆ Superclass

Superclass typedef.

Definition at line 55 of file qMRMLSliceWidget.h.

Property Documentation

◆ sliceOrientation

QString qMRMLSliceWidget::sliceOrientation
readwrite

Definition at line 52 of file qMRMLSliceWidget.h.

Constructor & Destructor Documentation

◆ qMRMLSliceWidget() [1/2]

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

Constructors.

◆ ~qMRMLSliceWidget()

virtual qMRMLSliceWidget::~qMRMLSliceWidget ( )
virtual

◆ qMRMLSliceWidget() [2/2]

qMRMLSliceWidget::qMRMLSliceWidget ( qMRMLSliceWidgetPrivate *  obj,
QWidget *  parent 
)
protected

Constructor allowing derived class to specify a specialized pimpl.

Note
You are responsible to call init() in the constructor of derived class. Doing so ensures the derived class is fully instantiated in case virtual method are called within init() itself.

Member Function Documentation

◆ fitSliceToBackground

void qMRMLSliceWidget::fitSliceToBackground ( )
slot

Fit slices to background.

◆ imageDataConnection()

Q_INVOKABLE vtkAlgorithmOutput* qMRMLSliceWidget::imageDataConnection ( ) const
See also
qMRMLSliceControllerWidget::imageData()
setImageData();

◆ interactorStyle()

Q_INVOKABLE vtkInteractorObserver* qMRMLSliceWidget::interactorStyle ( ) const

Returns the interactor style of the view A const vtkInteractorObserver pointer is returned as you shouldn't mess too much with it. If you do, be aware that you are probably unsynchronizing the view from the nodes/logics.

◆ mrmlSliceCompositeNode()

Q_INVOKABLE vtkMRMLSliceCompositeNode* qMRMLSliceWidget::mrmlSliceCompositeNode ( ) const

◆ mrmlSliceNode()

Q_INVOKABLE vtkMRMLSliceNode* qMRMLSliceWidget::mrmlSliceNode ( ) const

◆ nodeAboutToBeEdited

void qMRMLSliceWidget::nodeAboutToBeEdited ( vtkMRMLNode node)
signal

Signal emitted when editing of a node is requested from within the slice widget.

◆ overlayCornerAnnotation()

vtkCornerAnnotation* qMRMLSliceWidget::overlayCornerAnnotation ( ) const

Return the overlay corner annotation of the view.

◆ setImageDataConnection

void qMRMLSliceWidget::setImageDataConnection ( vtkAlgorithmOutput *  newImageDataConnection)
slot
See also
qMRMLSliceControllerWidget::setImageData()
imageData()

◆ setMRMLScene

void qMRMLSliceWidget::setMRMLScene ( vtkMRMLScene newScene)
slot

◆ setMRMLSliceNode

void qMRMLSliceWidget::setMRMLSliceNode ( vtkMRMLSliceNode newSliceNode)
slot

◆ setSliceLogics()

void qMRMLSliceWidget::setSliceLogics ( vtkCollection *  logics)

propagates the logics to the qMRMLSliceControllerWidget

◆ setSliceOrientation

void qMRMLSliceWidget::setSliceOrientation ( const QString &  orienation)
slot

◆ setSliceViewColor()

void qMRMLSliceWidget::setSliceViewColor ( const QColor &  newSliceViewColor)

◆ setSliceViewLabel()

void qMRMLSliceWidget::setSliceViewLabel ( const QString &  newSliceViewLabel)

◆ setSliceViewName()

void qMRMLSliceWidget::setSliceViewName ( const QString &  newSliceViewName)

◆ showEvent()

virtual void qMRMLSliceWidget::showEvent ( QShowEvent *  )
protectedvirtual

◆ sliceController()

Q_INVOKABLE qMRMLSliceControllerWidget* qMRMLSliceWidget::sliceController ( ) const

Get slice controller.

◆ sliceLogic()

Q_INVOKABLE vtkMRMLSliceLogic* qMRMLSliceWidget::sliceLogic ( ) const

◆ sliceOrientation()

QString qMRMLSliceWidget::sliceOrientation ( ) const

◆ sliceView()

Q_INVOKABLE qMRMLSliceView* qMRMLSliceWidget::sliceView ( ) const

Get a reference to the underlying slice view. It is the widget that renders the view (contains vtkRenderWindow).

See also
sliceController()

◆ sliceViewColor()

QColor qMRMLSliceWidget::sliceViewColor ( ) const

◆ sliceViewLabel()

QString qMRMLSliceWidget::sliceViewLabel ( ) const

◆ sliceViewName()

QString qMRMLSliceWidget::sliceViewName ( ) const

Member Data Documentation

◆ d_ptr

QScopedPointer<qMRMLSliceWidgetPrivate> qMRMLSliceWidget::d_ptr
protected

Definition at line 150 of file qMRMLSliceWidget.h.


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