Slicer
5.1
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 | |
bool | enabled |
int | layout |
int | plotViewCount |
int | tableViewCount |
int | threeDViewCount |
Public Slots | |
void | pauseRender () |
void | resetSliceViews () |
void | resetThreeDViews () |
void | resumeRender () |
void | setEnabled (bool enable) |
void | setLayout (int newLayout) |
void | setLayoutNumberOfCompareViewColumns (int num) |
void | setLayoutNumberOfCompareViewRows (int num) |
void | setMaximizedViewNode (vtkMRMLAbstractViewNode *viewNode) |
void | setMRMLScene (vtkMRMLScene *scene) |
void | setRenderPaused (bool pause) |
Signals | |
void | activeMRMLPlotViewNodeChanged (vtkMRMLPlotViewNode *newActiveMRMLPlotViewNode) |
void | activeMRMLTableViewNodeChanged (vtkMRMLTableViewNode *newActiveMRMLTableViewNode) |
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 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 |
bool | isEnabled () const |
int | layout () const |
Q_INVOKABLE vtkMRMLLayoutLogic * | layoutLogic () const |
Q_INVOKABLE vtkMRMLAbstractViewNode * | maximizedViewNode () |
Return the view node that is temporarily shown maximized in the view layout. More... | |
Q_INVOKABLE vtkMRMLColorLogic * | mrmlColorLogic () const |
Q_INVOKABLE vtkMRMLScene * | mrmlScene () const |
Q_INVOKABLE vtkCollection * | mrmlSliceLogics () const |
Q_INVOKABLE QList< qMRMLLayoutViewFactory * > | mrmlViewFactories () const |
Q_INVOKABLE qMRMLLayoutViewFactory * | mrmlViewFactory (const QString &viewClassName) const |
Q_INVOKABLE vtkCollection * | mrmlViewLogics () const |
int | plotViewCount () const |
Q_INVOKABLE qMRMLPlotWidget * | plotWidget (int id) const |
qMRMLLayoutManager (QObject *parent=nullptr) | |
Constructors. More... | |
qMRMLLayoutManager (QWidget *viewport, QObject *parent) | |
virtual Q_INVOKABLE void | registerViewFactory (ctkLayoutViewFactory *viewFactory) |
Q_INVOKABLE void | setMRMLColorLogic (vtkMRMLColorLogic *colorLogic) |
Q_INVOKABLE QStringList | sliceViewNames () const |
Q_INVOKABLE qMRMLSliceWidget * | sliceWidget (const QString &name) const |
Get slice view widget 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 (const QString &name) const |
Get 3D widget identified by name. More... | |
Q_INVOKABLE qMRMLThreeDWidget * | threeDWidget (int id) const |
Q_INVOKABLE QWidget * | viewWidget (vtkMRMLNode *n) const |
~qMRMLLayoutManager () override | |
Protected Member Functions | |
void | onViewportChanged () override |
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 73 of file qMRMLLayoutManager.h.
typedef ctkLayoutFactory qMRMLLayoutManager::Superclass |
Superclass typedef.
Definition at line 92 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 temporarily disable the manager when loading a scene, it could otherwise change the layout.
Definition at line 83 of file qMRMLLayoutManager.h.
|
readwrite |
Definition at line 85 of file qMRMLLayoutManager.h.
|
read |
Definition at line 88 of file qMRMLLayoutManager.h.
|
read |
Definition at line 87 of file qMRMLLayoutManager.h.
|
read |
Definition at line 86 of file qMRMLLayoutManager.h.
|
explicit |
Constructors.
|
explicit |
|
override |
|
protected |
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 |
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 vtkMRMLAbstractViewNode* qMRMLLayoutManager::maximizedViewNode | ( | ) |
Return the view node that is temporarily shown maximized in the view layout.
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.
Q_INVOKABLE 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.
Q_INVOKABLE vtkCollection* qMRMLLayoutManager::mrmlViewLogics | ( | ) | const |
Return the up-to-date list of vtkMRMLViewLogics associated to the threeD views. The returned collection object is owned by the layout manager.
|
signal |
Signal emitted when editing of a node is requested from within the layout.
|
overrideprotected |
|
slot |
Equivalent to setRenderPaused(true)
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 |
Equivalent to setRenderPaused(false)
|
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.
|
slot |
Makes a view displayed maximized (taking the entire area) of the view layout. Setting the value to nullptr restores the original view layout.
Q_INVOKABLE void qMRMLLayoutManager::setMRMLColorLogic | ( | vtkMRMLColorLogic * | colorLogic | ) |
|
slot |
Set the MRML scene that should be listened for events
|
slot |
Calls setPauseRender(pause) on all slice and 3D views Tracks the previous pause state which is restored using resumeRender() Each pauseRender(true) should always be accompanied by a corresponding pauseRender(false) call
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 slice view widget 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 | ( | const QString & | name | ) | const |
Get 3D widget identified by name.
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 265 of file qMRMLLayoutManager.h.