Slicer 4.2
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
Public Types | Properties | Public Slots | Signals | Public Member Functions | Protected Member Functions | Protected Attributes
qMRMLLayoutManager Class Reference

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

Inheritance diagram for qMRMLLayoutManager:
Inheritance graph
[legend]

List of all members.

Public Types

typedef ctkLayoutManager Superclass
 Superclass typedef.

Properties

int chartViewCount
int layout
int threeDViewCount

Public Slots

void setLayout (int newLayout)
void setLayoutNumberOfCompareViewColumns (int num)
void setLayoutNumberOfCompareViewRows (int num)
void setMRMLScene (vtkMRMLScene *scene)
 Set the MRML scene that should be listened for events.

Signals

void activeChartRendererChanged (vtkRenderer *newRenderer)
void activeMRMLChartViewNodeChanged (vtkMRMLChartViewNode *newActiveMRMLChartViewNode)
void activeMRMLThreeDViewNodeChanged (vtkMRMLViewNode *newActiveMRMLThreeDViewNode)
void activeThreeDRendererChanged (vtkRenderer *newRenderer)
void layoutChanged (int)
void sliceWidgetCreated (qMRMLSliceWidget *sliceWidget)

Public Member Functions

Q_INVOKABLE vtkRenderer * activeChartRenderer () const
Q_INVOKABLE vtkMRMLChartViewNodeactiveMRMLChartViewNode () const
Q_INVOKABLE vtkMRMLViewNodeactiveMRMLThreeDViewNode () const
Q_INVOKABLE vtkRenderer * activeThreeDRenderer () const
int chartViewCount () const
Q_INVOKABLE qMRMLChartWidgetchartWidget (int id) const
int layout () const
Q_INVOKABLE vtkMRMLLayoutLogiclayoutLogic () const
Q_INVOKABLE vtkMRMLColorLogicmrmlColorLogic () const
Q_INVOKABLE vtkMRMLScenemrmlScene () const
 Return the MRMLScene for the LayoutManager.
Q_INVOKABLE vtkCollection * mrmlSliceLogics () const
 Return the up-to-date list of vtkMRMLSliceLogics associated to the slice views.
 qMRMLLayoutManager (QObject *parent=0)
 Constructors.
 qMRMLLayoutManager (QWidget *viewport, QObject *parent)
Q_INVOKABLE void setMRMLColorLogic (vtkMRMLColorLogic *colorLogic)
Q_INVOKABLE QStringList sliceViewNames () const
Q_INVOKABLE qMRMLSliceWidgetsliceWidget (const QString &name) const
 Get SliceViewWidget identified by name.
int threeDViewCount () const
 Return the number of instantiated ThreeDRenderView.
Q_INVOKABLE qMRMLThreeDWidgetthreeDWidget (int id) const
Q_INVOKABLE QWidget * viewWidget (vtkMRMLNode *n) const
virtual ~qMRMLLayoutManager ()

Protected Member Functions

virtual void onViewportChanged ()
 qMRMLLayoutManager (qMRMLLayoutManagerPrivate *obj, QWidget *viewport, QObject *parent)
virtual void setupView (QDomElement viewElement, QWidget *view)
virtual QWidget * viewFromXML (QDomElement layoutElement)
virtual QList< QWidget * > viewsFromXML (QDomElement layoutElement)

Protected Attributes

QScopedPointer
< qMRMLLayoutManagerPrivate > 
d_ptr

Detailed Description

Definition at line 47 of file qMRMLLayoutManager.h.


Member Typedef Documentation

typedef ctkLayoutManager qMRMLLayoutManager::Superclass

Superclass typedef.

Definition at line 56 of file qMRMLLayoutManager.h.


Property Documentation

int qMRMLLayoutManager::chartViewCount [read]

Definition at line 53 of file qMRMLLayoutManager.h.

int qMRMLLayoutManager::layout [read, write]

Definition at line 51 of file qMRMLLayoutManager.h.

int qMRMLLayoutManager::threeDViewCount [read]

Definition at line 52 of file qMRMLLayoutManager.h.


Constructor & Destructor Documentation

qMRMLLayoutManager::qMRMLLayoutManager ( QObject *  parent = 0) [explicit]

Constructors.

qMRMLLayoutManager::qMRMLLayoutManager ( QWidget *  viewport,
QObject *  parent 
) [explicit]
virtual qMRMLLayoutManager::~qMRMLLayoutManager ( ) [virtual]
qMRMLLayoutManager::qMRMLLayoutManager ( qMRMLLayoutManagerPrivate *  obj,
QWidget *  viewport,
QObject *  parent 
) [protected]

Member Function Documentation

Q_INVOKABLE vtkRenderer* qMRMLLayoutManager::activeChartRenderer ( ) const
void qMRMLLayoutManager::activeChartRendererChanged ( vtkRenderer *  newRenderer) [signal]
Q_INVOKABLE vtkMRMLChartViewNode* qMRMLLayoutManager::activeMRMLChartViewNode ( ) const
void qMRMLLayoutManager::activeMRMLChartViewNodeChanged ( vtkMRMLChartViewNode newActiveMRMLChartViewNode) [signal]
Q_INVOKABLE vtkMRMLViewNode* qMRMLLayoutManager::activeMRMLThreeDViewNode ( ) const
void qMRMLLayoutManager::activeMRMLThreeDViewNodeChanged ( vtkMRMLViewNode newActiveMRMLThreeDViewNode) [signal]
Q_INVOKABLE vtkRenderer* qMRMLLayoutManager::activeThreeDRenderer ( ) const
void qMRMLLayoutManager::activeThreeDRendererChanged ( vtkRenderer *  newRenderer) [signal]
int qMRMLLayoutManager::chartViewCount ( ) const
Q_INVOKABLE qMRMLChartWidget* qMRMLLayoutManager::chartWidget ( int  id) const
int qMRMLLayoutManager::layout ( ) const

Returns the current layout. it's the same value than vtkMRMLLayoutNode::ViewArrangement

See also:
vtkMRMLLayoutNode::SlicerLayout
void qMRMLLayoutManager::layoutChanged ( int  ) [signal]
Q_INVOKABLE vtkMRMLLayoutLogic* qMRMLLayoutManager::layoutLogic ( ) const
Q_INVOKABLE vtkMRMLColorLogic* qMRMLLayoutManager::mrmlColorLogic ( ) const
Q_INVOKABLE vtkMRMLScene* qMRMLLayoutManager::mrmlScene ( ) const

Return the MRMLScene for the LayoutManager.

Q_INVOKABLE vtkCollection* qMRMLLayoutManager::mrmlSliceLogics ( ) const

Return the up-to-date list of vtkMRMLSliceLogics associated to the slice views.

virtual void qMRMLLayoutManager::onViewportChanged ( ) [protected, virtual]
void qMRMLLayoutManager::setLayout ( int  newLayout) [slot]

Change the current layout (see vtkMRMLLayoutNode::SlicerLayout) It creates views if needed.

void qMRMLLayoutManager::setLayoutNumberOfCompareViewColumns ( int  num) [slot]
void qMRMLLayoutManager::setLayoutNumberOfCompareViewRows ( int  num) [slot]

Change the number of viewers in comparison modes It creates views if needed.

Q_INVOKABLE void qMRMLLayoutManager::setMRMLColorLogic ( vtkMRMLColorLogic colorLogic)
void qMRMLLayoutManager::setMRMLScene ( vtkMRMLScene scene) [slot]

Set the MRML scene that should be listened for events.

virtual void qMRMLLayoutManager::setupView ( QDomElement  viewElement,
QWidget *  view 
) [protected, virtual]
Q_INVOKABLE QStringList qMRMLLayoutManager::sliceViewNames ( ) const

Get the list of SliceWidgetNames All slice widget names are returned, even those from hidden and not currently used widgets.

Q_INVOKABLE qMRMLSliceWidget* qMRMLLayoutManager::sliceWidget ( const QString &  name) const

Get SliceViewWidget identified by name.

void qMRMLLayoutManager::sliceWidgetCreated ( qMRMLSliceWidget sliceWidget) [signal]
int qMRMLLayoutManager::threeDViewCount ( ) const

Return the number of instantiated ThreeDRenderView.

Q_INVOKABLE qMRMLThreeDWidget* qMRMLLayoutManager::threeDWidget ( int  id) const

Get ThreeDWidget identified by id where id is an integer ranging from 0 to N-1 with N being the number of instantiated qMRMLThreeDView (that should also be equal to the number of vtkMRMLViewNode)

virtual QWidget* qMRMLLayoutManager::viewFromXML ( QDomElement  layoutElement) [protected, virtual]
virtual QList<QWidget*> qMRMLLayoutManager::viewsFromXML ( QDomElement  layoutElement) [protected, virtual]
Q_INVOKABLE QWidget* qMRMLLayoutManager::viewWidget ( vtkMRMLNode n) const

Get the view widget representing a particular node (can be used for SliceNodes or ViewNodes, returning qMRMLSliceWidget or qMRMLThreeDWidget respectively).


Member Data Documentation

QScopedPointer<qMRMLLayoutManagerPrivate> qMRMLLayoutManager::d_ptr [protected]

Definition at line 130 of file qMRMLLayoutManager.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines