21 #ifndef __qMRMLLayoutViewFactory_h 22 #define __qMRMLLayoutViewFactory_h 25 #include <QStringList> 28 #include <ctkLayoutViewFactory.h> 29 #include <ctkVTKObject.h> 32 #include "qMRMLWidgetsExport.h" 34 class qMRMLLayoutViewFactoryPrivate;
52 Q_PROPERTY(QString viewClassName READ viewClassName);
65 virtual QString viewClassName()
const;
69 bool isElementSupported(QDomElement layoutElement)
const override;
88 Q_INVOKABLE QWidget* viewWidget(
int id)
const;
90 Q_INVOKABLE QWidget* viewWidget(
const QString& name)
const;
91 Q_INVOKABLE QWidget* viewWidgetByLayoutLabel(
const QString& layoutLabel)
const;
92 Q_INVOKABLE
int viewCount()
const;
94 void beginSetupLayout()
override;
99 QStringList viewNodeNames()
const;
103 virtual vtkRenderer* activeRenderer()
const;
112 virtual void onNodeAdded(vtkObject* scene, vtkObject* node);
113 virtual void onNodeRemoved(vtkObject* scene, vtkObject* node);
114 virtual void onNodeModified(vtkObject* node);
121 virtual void onSceneModified();
125 void viewCreated(QWidget* createdView);
133 QScopedPointer<qMRMLLayoutViewFactoryPrivate>
d_ptr;
135 void setupView(QDomElement viewElement, QWidget* view)
override;
138 QWidget* createViewFromXML(QDomElement layoutElement)
override;
140 QList<QWidget*> createViewsFromXML(QDomElement layoutElement)
override;
ctkLayoutViewFactory Superclass
Superclass typedef.
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.
QScopedPointer< qMRMLLayoutViewFactoryPrivate > d_ptr
Abstract Superclass for all specific types of MRML nodes.