39 auto isMultiComponentImage =
42 tr(
"MultiComponentImage"), QString(
": / Qmitk / Images_48.png"), isMultiComponentImage,
this));
47 new QmitkNodeDescriptor(tr(
"ImageMask"), QString(
":/Qmitk/Binaerbilder_48.png"), isBinaryImage,
this));
51 new QmitkNodeDescriptor(tr(
"LabelSetImage"), QString(
":/Qmitk/LabelSetImage_48.png"), isLabelSetImage,
this));
62 new QmitkNodeDescriptor(tr(
"NoneBinaryImage"), QString(
":/Qmitk/Images_48.png"), isNoneBinaryImage,
this));
67 _Descriptor->setParent(
this);
78 _Descriptor->setParent(0);
89 if ((*it)->CheckNode(_Node))
100 if (_ClassName ==
"Unknown")
109 if ((*it)->GetNameOfClass() == _ClassName)
124 if ((*it)->CheckNode(_Node))
127 lastDescriptor = *it;
139 QSet<QmitkNodeDescriptor *> nodeDescriptors;
146 nodeDescriptors.insert(lastDescriptor);
153 lastDescriptor = descr;
161 : m_UnknownDataNodeDescriptor(new
QmitkNodeDescriptor(
"Unknown", QString(
":/Qmitk/DataTypeUnknown_48.png"), 0, this))
QmitkNodeDescriptor * GetUnknownDataNodeDescriptor() const
virtual void Initialize()
QmitkNodeQmitkNodeDescriptor is Decorator class for the mitk::DataNode which enhances certain mitk::D...
virtual ~QmitkNodeDescriptorManager()
virtual QAction * GetSeparator() const
virtual QList< QAction * > GetBatchActions() const
QmitkNodeDescriptorManager manages a set of QmitkNodeDescriptors.
QmitkNodeDescriptorManager()
void RemoveDescriptor(QmitkNodeDescriptor *_Descriptor)
static Pointer New(const mitk::NodePredicateBase *_arg)
QList< QmitkNodeDescriptor * > m_NodeDescriptors
QmitkNodeDescriptor * GetDescriptor(const mitk::DataNode *_Node) const
static Pointer New(const char *_arg)
static Pointer New(const char *_arg)
virtual QList< QAction * > GetActions() const
QList< QAction * > GetActions(const mitk::DataNode *_Node) const
void AddDescriptor(QmitkNodeDescriptor *_Descriptor)
QmitkNodeDescriptor * m_UnknownDataNodeDescriptor
static QmitkNodeDescriptorManager * GetInstance()
Class for nodes of the DataTree.