21 #ifndef __qMRMLLayoutManager_h 22 #define __qMRMLLayoutManager_h 25 #include <QStringList> 29 #include <ctkLayoutFactory.h> 32 #include "qMRMLWidgetsExport.h" 38 class qMRMLLayoutManagerPrivate;
83 Q_PROPERTY(
bool enabled READ isEnabled WRITE setEnabled)
85 Q_PROPERTY(
int layout READ layout WRITE setLayout NOTIFY layoutChanged DESIGNABLE false)
86 Q_PROPERTY(
int threeDViewCount READ threeDViewCount DESIGNABLE false)
87 Q_PROPERTY(
int tableViewCount READ tableViewCount DESIGNABLE false)
88 Q_PROPERTY(
int plotViewCount READ plotViewCount DESIGNABLE false)
101 bool isEnabled()const;
107 Q_INVOKABLE virtual
void registerViewFactory(ctkLayoutViewFactory* viewFactory);
138 Q_INVOKABLE QStringList sliceViewNames() const;
141 int threeDViewCount()const;
142 int tableViewCount()const;
143 int plotViewCount()const;
155 Q_INVOKABLE vtkCollection* mrmlSliceLogics()const;
159 Q_INVOKABLE vtkCollection* mrmlViewLogics()const;
185 Q_INVOKABLE vtkRenderer* activeThreeDRenderer()const;
195 Q_INVOKABLE vtkRenderer* activeTableRenderer()const;
205 Q_INVOKABLE vtkRenderer* activePlotRenderer()const;
211 void setEnabled(
bool enable);
219 void setLayout(
int newLayout);
227 void setLayoutNumberOfCompareViewRows(
int num);
228 void setLayoutNumberOfCompareViewColumns(
int num);
232 void resetThreeDViews();
236 void resetSliceViews();
242 void setRenderPaused(
bool pause);
253 void activeMRMLThreeDViewNodeChanged(
vtkMRMLViewNode* newActiveMRMLThreeDViewNode);
256 void activeThreeDRendererChanged(vtkRenderer* newRenderer);
257 void activeTableRendererChanged(vtkRenderer* newRenderer);
258 void activePlotRendererChanged(vtkRenderer* newRenderer);
259 void layoutChanged(
int);
265 QScopedPointer<qMRMLLayoutManagerPrivate> d_ptr;
266 qMRMLLayoutManager(qMRMLLayoutManagerPrivate* obj, QWidget* viewport, QObject* parent);
268 void onViewportChanged() override;
270 using ctkLayoutManager::setLayout;
ctkLayoutFactory Superclass
Superclass typedef.
MRML node to represent Plot view parameters.
MRML logic class for layout manipulation.
MRML logic class for color manipulation.
Abstract MRML node to represent a view. The class holds the properties common to any view type (3D...
A set of MRML Nodes that supports serialization and undo/redo.
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.