21 #ifndef __qMRMLLayoutManager_h 22 #define __qMRMLLayoutManager_h 25 #include <QStringList> 29 #include <ctkLayoutFactory.h> 32 #include "qMRMLWidgetsExport.h" 39 class qMRMLLayoutManagerPrivate;
85 Q_PROPERTY(
bool enabled READ isEnabled WRITE setEnabled)
87 Q_PROPERTY(
int layout READ layout WRITE setLayout NOTIFY layoutChanged DESIGNABLE false)
88 Q_PROPERTY(
int threeDViewCount READ threeDViewCount DESIGNABLE false)
89 Q_PROPERTY(
int chartViewCount READ chartViewCount DESIGNABLE false)
90 Q_PROPERTY(
int tableViewCount READ tableViewCount DESIGNABLE false)
91 Q_PROPERTY(
int plotViewCount READ plotViewCount DESIGNABLE false)
104 bool isEnabled()const;
110 Q_INVOKABLE virtual
void registerViewFactory(ctkLayoutViewFactory* viewFactory);
141 Q_INVOKABLE QStringList sliceViewNames() const;
144 int threeDViewCount()const;
145 int chartViewCount()const;
146 int tableViewCount()const;
147 int plotViewCount()const;
160 Q_INVOKABLE vtkCollection* mrmlSliceLogics()const;
164 Q_INVOKABLE vtkCollection* mrmlViewLogics()const;
187 Q_INVOKABLE vtkRenderer* activeThreeDRenderer()const;
197 Q_INVOKABLE vtkRenderer* activeChartRenderer()const;
207 Q_INVOKABLE vtkRenderer* activeTableRenderer()const;
217 Q_INVOKABLE vtkRenderer* activePlotRenderer()const;
223 void setEnabled(
bool enable);
231 void setLayout(
int newLayout);
235 void setLayoutNumberOfCompareViewRows(
int num);
236 void setLayoutNumberOfCompareViewColumns(
int num);
240 void resetThreeDViews();
244 void resetSliceViews();
250 void setRenderPaused(
bool pause);
261 void activeMRMLThreeDViewNodeChanged(
vtkMRMLViewNode* newActiveMRMLThreeDViewNode);
265 void activeThreeDRendererChanged(vtkRenderer* newRenderer);
266 void activeChartRendererChanged(vtkRenderer* newRenderer);
267 void activeTableRendererChanged(vtkRenderer* newRenderer);
268 void activePlotRendererChanged(vtkRenderer* newRenderer);
269 void layoutChanged(
int);
275 QScopedPointer<qMRMLLayoutManagerPrivate> d_ptr;
276 qMRMLLayoutManager(qMRMLLayoutManagerPrivate* obj, QWidget* viewport, QObject* parent);
278 void onViewportChanged() override;
280 using ctkLayoutManager::setLayout;
ctkLayoutFactory Superclass
Superclass typedef.
MRML node for referencing a collection of data to plot.
MRML node to represent Plot view parameters.
MRML logic class for layout manipulation.
MRML logic class for color manipulation.
A set of MRML Nodes that supports serialization and undo/redo.
MRML node to represent chart view parameters.
MRML node to represent a 3D view.
MRML node to represent table view parameters.
MRML node to represent a table object.
Abstract Superclass for all specific types of MRML nodes.