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 QWidget* viewWidget(
int id)
const;
90 QWidget* viewWidget(
const QString& name)
const;
93 virtual void beginSetupLayout();
98 QStringList viewNodeNames()
const;
102 virtual vtkRenderer* activeRenderer()
const;
111 virtual void onNodeAdded(vtkObject* scene, vtkObject* node);
112 virtual void onNodeRemoved(vtkObject* scene, vtkObject* node);
113 virtual void onNodeModified(vtkObject* node);
120 virtual void onSceneModified();
124 void viewCreated(QWidget* createdView);
132 QScopedPointer<qMRMLLayoutViewFactoryPrivate>
d_ptr;
134 virtual void setupView(QDomElement viewElement, QWidget* view);
137 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.