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 virtual bool isElementSupported(QDomElement layoutElement)
const;
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 virtual void beginSetupLayout();
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 virtual void setupView(QDomElement viewElement, QWidget* view);
138 virtual QWidget* createViewFromXML(QDomElement layoutElement);
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.