21 #ifndef __qMRMLSceneAnnotationModel_h 22 #define __qMRMLSceneAnnotationModel_h 28 #include "qSlicerAnnotationsModuleWidgetsExport.h" 29 class qMRMLSceneAnnotationModelPrivate;
48 Q_PROPERTY(
bool annotationsAreParent READ areAnnotationsParent WRITE setAnnotationsAreParent)
51 Q_PROPERTY (
int lockColumn READ lockColumn WRITE setLockColumn)
62 Q_PROPERTY (
int editColumn READ editColumn WRITE setEditColumn)
68 Q_PROPERTY (
int valueColumn READ valueColumn WRITE setValueColumn)
74 Q_PROPERTY (
int textColumn READ textColumn WRITE setTextColumn)
86 bool areAnnotationsParent()const;
89 void setAnnotationsAreParent(
bool parentable);
93 int lockColumn()const;
96 void setLockColumn(
int column);
100 int editColumn()const;
103 void setEditColumn(
int column);
107 int valueColumn()const;
110 void setValueColumn(
int column);
114 int textColumn()const;
117 void setTextColumn(
int column);
126 bool canBeAParent(
vtkMRMLNode* node)const override;
130 QObject *parent=
nullptr);
132 void updateItemDataFromNode(QStandardItem* item,
vtkMRMLNode* node,
int column) override;
134 void updateNodeFromItemData(
vtkMRMLNode* node, QStandardItem* item) override;
136 QFlags<Qt::ItemFlag> nodeFlags(
vtkMRMLNode* node,
int column)const override;
137 int maxColumnId()const override;
The Visibility icon is in the same column than the name by default.
Abstract Superclass for all specific types of MRML nodes.