Slicer
4.8
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
|
#include <Libs/MRML/Widgets/qMRMLLayoutManager.h>
Public Types | |
typedef ctkLayoutFactory | Superclass |
Superclass typedef. More... | |
Properties | |
int | chartViewCount |
bool | enabled |
int | layout |
int | plotViewCount |
int | tableViewCount |
int | threeDViewCount |
Public Slots | |
void | resetSliceViews () |
void | resetThreeDViews () |
void | setEnabled (bool enable) |
void | setLayout (int newLayout) |
void | setLayoutNumberOfCompareViewColumns (int num) |
void | setLayoutNumberOfCompareViewRows (int num) |
void | setMRMLScene (vtkMRMLScene *scene) |
Signals | |
void | activeChartRendererChanged (vtkRenderer *newRenderer) |
void | activeMRMLChartViewNodeChanged (vtkMRMLChartViewNode *newActiveMRMLChartViewNode) |
void | activeMRMLPlotViewNodeChanged (vtkMRMLPlotViewNode *newActiveMRMLPlotViewNode) |
void | activeMRMLTableViewNodeChanged (vtkMRMLTableViewNode *newActiveMRMLChartViewNode) |
void | activeMRMLThreeDViewNodeChanged (vtkMRMLViewNode *newActiveMRMLThreeDViewNode) |
void | activePlotRendererChanged (vtkRenderer *newRenderer) |
void | activeTableRendererChanged (vtkRenderer *newRenderer) |
void | activeThreeDRendererChanged (vtkRenderer *newRenderer) |
void | layoutChanged (int) |
void | nodeAboutToBeEdited (vtkMRMLNode *node) |
Signal emitted when editing of a node is requested from within the layout. More... | |
Public Member Functions | |
Q_INVOKABLE vtkRenderer * | activeChartRenderer () const |
Q_INVOKABLE vtkMRMLChartViewNode * | activeMRMLChartViewNode () const |
Q_INVOKABLE vtkMRMLPlotViewNode * | activeMRMLPlotViewNode () const |
Q_INVOKABLE vtkMRMLTableViewNode * | activeMRMLTableViewNode () const |
Q_INVOKABLE vtkMRMLViewNode * | activeMRMLThreeDViewNode () const |
Q_INVOKABLE vtkRenderer * | activePlotRenderer () const |
Q_INVOKABLE vtkRenderer * | activeTableRenderer () const |
Q_INVOKABLE vtkRenderer * | activeThreeDRenderer () const |
int | chartViewCount () const |
Q_INVOKABLE qMRMLChartWidget * | chartWidget (int id) const |
bool | isEnabled () const |
int | layout () const |
Q_INVOKABLE vtkMRMLLayoutLogic * | layoutLogic () const |
Q_INVOKABLE vtkMRMLColorLogic * | mrmlColorLogic () const |
Q_INVOKABLE vtkMRMLScene * | mrmlScene () const |
Q_INVOKABLE vtkCollection * | mrmlSliceLogics () const |
Q_INVOKABLE QList< qMRMLLayoutViewFactory * > | mrmlViewFactories () const |
qMRMLLayoutViewFactory * | mrmlViewFactory (const QString &viewClassName) const |
int | plotViewCount () const |
Q_INVOKABLE qMRMLPlotWidget * | plotWidget (int id) const |
qMRMLLayoutManager (QObject *parent=0) | |
Constructors. More... | |
qMRMLLayoutManager (QWidget *viewport, QObject *parent) | |
virtual void | registerViewFactory (ctkLayoutViewFactory *viewFactory) |
Q_INVOKABLE void | setMRMLColorLogic (vtkMRMLColorLogic *colorLogic) |
Q_INVOKABLE QStringList | sliceViewNames () const |
Q_INVOKABLE qMRMLSliceWidget * | sliceWidget (const QString &name) const |
Get SliceViewWidget identified by name. More... | |
int | tableViewCount () const |
Q_INVOKABLE qMRMLTableWidget * | tableWidget (int id) const |
int | threeDViewCount () const |
Return the number of instantiated ThreeDRenderView. More... | |
Q_INVOKABLE qMRMLThreeDWidget * | threeDWidget (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) | |
Protected Attributes | |
QScopedPointer< qMRMLLayoutManagerPrivate > | d_ptr |
MRML layout manager that instantiates the QT widgets and layouts from the layout node and the view nodes in the scene. The management (creation, configuration and deletion) of the view widgets are delegated to qMRMLLayoutViewFactory. Example to change a default factory:
You can also register ctkLayoutViewFactories that are not related to MRML view nodes.
Definition at line 75 of file qMRMLLayoutManager.h.
typedef ctkLayoutFactory qMRMLLayoutManager::Superclass |
Superclass typedef.
Definition at line 95 of file qMRMLLayoutManager.h.
|
read |
Definition at line 89 of file qMRMLLayoutManager.h.
|
readwrite |
This property controls whether the layout manager reacts to layout node changes or note. When enabled (default), the layout is updated each time the layout node is modified and when the scene leaves batch-process state. It can be useful to temporarilly disable the manager when loading a scene, it could otherwise change the layout.
Definition at line 85 of file qMRMLLayoutManager.h.
|
readwrite |
Definition at line 87 of file qMRMLLayoutManager.h.
|
read |
Definition at line 91 of file qMRMLLayoutManager.h.
|
read |
Definition at line 90 of file qMRMLLayoutManager.h.
|
read |
Definition at line 88 of file qMRMLLayoutManager.h.
|
explicit |
Constructors.
|
explicit |
|
virtual |
|
protected |
Q_INVOKABLE vtkRenderer* qMRMLLayoutManager::activeChartRenderer | ( | ) | const |
Return the renderer of the active chart view.
|
signal |
Q_INVOKABLE vtkMRMLChartViewNode* qMRMLLayoutManager::activeMRMLChartViewNode | ( | ) | const |
Return the view node of the active chart view.
|
signal |
Q_INVOKABLE vtkMRMLPlotViewNode* qMRMLLayoutManager::activeMRMLPlotViewNode | ( | ) | const |
Return the view node of the active plot view.
|
signal |
Q_INVOKABLE vtkMRMLTableViewNode* qMRMLLayoutManager::activeMRMLTableViewNode | ( | ) | const |
Return the view node of the active table view.
|
signal |
Q_INVOKABLE vtkMRMLViewNode* qMRMLLayoutManager::activeMRMLThreeDViewNode | ( | ) | const |
Return the view node of the active 3D view.
|
signal |
Q_INVOKABLE vtkRenderer* qMRMLLayoutManager::activePlotRenderer | ( | ) | const |
Return the renderer of the active plot view.
|
signal |
Q_INVOKABLE vtkRenderer* qMRMLLayoutManager::activeTableRenderer | ( | ) | const |
Return the renderer of the active table view.
|
signal |
Q_INVOKABLE vtkRenderer* qMRMLLayoutManager::activeThreeDRenderer | ( | ) | const |
Return the renderer of the active 3D view.
|
signal |
int qMRMLLayoutManager::chartViewCount | ( | ) | const |
Q_INVOKABLE qMRMLChartWidget* qMRMLLayoutManager::chartWidget | ( | int | id | ) | const |
bool qMRMLLayoutManager::isEnabled | ( | ) | const |
Return the enabled property value.
int qMRMLLayoutManager::layout | ( | ) | const |
Returns the current layout. it's the same value than vtkMRMLLayoutNode::ViewArrangement
|
signal |
Q_INVOKABLE vtkMRMLLayoutLogic* qMRMLLayoutManager::layoutLogic | ( | ) | const |
Return the layout logic instantiated and used by the manager.
Q_INVOKABLE vtkMRMLColorLogic* qMRMLLayoutManager::mrmlColorLogic | ( | ) | const |
Q_INVOKABLE vtkMRMLScene* qMRMLLayoutManager::mrmlScene | ( | ) | const |
Return the mrml scene of the layout manager. It is the scene that is set by setMRMLScene().
Q_INVOKABLE vtkCollection* qMRMLLayoutManager::mrmlSliceLogics | ( | ) | const |
Return the up-to-date list of vtkMRMLSliceLogics associated to the slice views. The returned collection object is owned by the layout manager.
Q_INVOKABLE QList<qMRMLLayoutViewFactory*> qMRMLLayoutManager::mrmlViewFactories | ( | ) | const |
Return the list of registered MRML view factories.
qMRMLLayoutViewFactory* qMRMLLayoutManager::mrmlViewFactory | ( | const QString & | viewClassName | ) | const |
Return the view factory that handles the viewClassName view nodes. This can be used to replace a view factory with another one.
|
signal |
Signal emitted when editing of a node is requested from within the layout.
|
protectedvirtual |
int qMRMLLayoutManager::plotViewCount | ( | ) | const |
Q_INVOKABLE qMRMLPlotWidget* qMRMLLayoutManager::plotWidget | ( | int | id | ) | const |
|
virtual |
Reimplemented for internal reasons. If the registered view factory is a qMRMLLayoutViewFactory, then set its layoutManager and its mrmlScene.
|
slot |
Reset focal view around volumes
|
slot |
Reset focal view around volumes
|
slot |
Set the enabled property value
|
slot |
Change the current layout (see vtkMRMLLayoutNode::SlicerLayout) It creates views if needed.
|
slot |
|
slot |
Change the number of viewers in comparison modes It creates views if needed.
Q_INVOKABLE void qMRMLLayoutManager::setMRMLColorLogic | ( | vtkMRMLColorLogic * | colorLogic | ) |
|
slot |
Set the MRML scene that should be listened for events
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.
int qMRMLLayoutManager::tableViewCount | ( | ) | const |
Q_INVOKABLE qMRMLTableWidget* qMRMLLayoutManager::tableWidget | ( | int | id | ) | const |
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)
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).
|
protected |
Definition at line 254 of file qMRMLLayoutManager.h.