21#ifndef __qMRMLNodeFactory_h
22#define __qMRMLNodeFactory_h
31#include "qMRMLWidgetsExport.h"
35class qMRMLNodeFactoryPrivate;
84 Q_INVOKABLE
void addAttribute(
const QString& attributeName,
const QString& attributeValue);
86 Q_INVOKABLE QString
attribute(
const QString& attributeName)
const;
90 Q_INVOKABLE QString
baseName(
const QString& className)
const;
114 QScopedPointer<qMRMLNodeFactoryPrivate>
d_ptr;
vtkMRMLScene * mrmlScene() const
void nodeInstantiated(vtkMRMLNode *node)
Q_INVOKABLE void addAttribute(const QString &attributeName, const QString &attributeValue)
QObject Superclass
Constructors.
Q_INVOKABLE void removeAttribute(const QString &attributeName)
Q_INVOKABLE QString attribute(const QString &attributeName) const
Q_INVOKABLE void setBaseName(const QString &className, const QString &baseName)
Base name used to generate a name for create node.
void nodeAdded(vtkMRMLNode *node)
QHash< QString, QString > AttributeType
Convenient typedef.
void setMRMLScene(vtkMRMLScene *mrmlScene)
Set MRML scene.
Q_INVOKABLE QString baseName(const QString &className) const
void nodeInitialized(vtkMRMLNode *node)
QScopedPointer< qMRMLNodeFactoryPrivate > d_ptr
static vtkMRMLNode * createNode(vtkMRMLScene *scene, const QString &className, const AttributeType &attributes=AttributeType())
Convenient method allowing to create a new node and add it to the scene.
qMRMLNodeFactory(QObject *parent=nullptr)
~qMRMLNodeFactory() override
Q_INVOKABLE vtkMRMLNode * createNode(const QString &className)
Abstract Superclass for all specific types of MRML nodes.
A set of MRML Nodes that supports serialization and undo/redo.