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 virtual
void registerViewFactory(ctkLayoutViewFactory* viewFactory);
138 Q_INVOKABLE QStringList sliceViewNames() const;
141 int threeDViewCount()const;
142 int chartViewCount()const;
143 int tableViewCount()const;
144 int plotViewCount()const;
157 Q_INVOKABLE vtkCollection* mrmlSliceLogics()const;
180 Q_INVOKABLE vtkRenderer* activeThreeDRenderer()const;
190 Q_INVOKABLE vtkRenderer* activeChartRenderer()const;
200 Q_INVOKABLE vtkRenderer* activeTableRenderer()const;
210 Q_INVOKABLE vtkRenderer* activePlotRenderer()const;
216 void setEnabled(
bool enable);
224 void setLayout(
int newLayout);
228 void setLayoutNumberOfCompareViewRows(
int num);
229 void setLayoutNumberOfCompareViewColumns(
int num);
233 void resetThreeDViews();
237 void resetSliceViews();
240 void activeMRMLThreeDViewNodeChanged(
vtkMRMLViewNode * newActiveMRMLThreeDViewNode);
244 void activeThreeDRendererChanged(vtkRenderer* newRenderer);
245 void activeChartRendererChanged(vtkRenderer* newRenderer);
246 void activeTableRendererChanged(vtkRenderer* newRenderer);
247 void activePlotRendererChanged(vtkRenderer* newRenderer);
248 void layoutChanged(
int);
254 QScopedPointer<qMRMLLayoutManagerPrivate> d_ptr;
255 qMRMLLayoutManager(qMRMLLayoutManagerPrivate* obj, QWidget* viewport, QObject* parent);
257 virtual
void onViewportChanged();
259 using ctkLayoutManager::setLayout;
261 Q_DECLARE_PRIVATE(qMRMLLayoutManager);
262 Q_DISABLE_COPY(qMRMLLayoutManager);
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.