13 #ifndef QmitkDataNodeContextMenu_h
14 #define QmitkDataNodeContextMenu_h
59 void SetSurfaceDecimation(
bool surfaceDecimation);
61 void SetSelectedNodes(
const QList<mitk::DataNode::Pointer>& selectedNodes);
65 void OnContextMenuRequested(
const QPoint& pos);
66 void OnExtensionPointActionTriggered(QAction* action);
70 using DescriptorActionListType = std::vector<std::pair<QmitkNodeDescriptor*, QAction*>>;
71 using ConfigurationElementsType = std::map<QAction*, berry::IConfigurationElement::Pointer>;
73 void InitNodeDescriptors();
74 void InitDefaultActions();
75 void InitExtensionPointActions();
76 void InitServiceActions();
78 void AddColorAction(QWidgetAction* colorAction);
79 void AddDescriptorActionList(DescriptorActionListType& descriptorActionList);
82 QList<QAction*> GetActions(
const QList<mitk::DataNode::Pointer>& nodes);
89 QList<mitk::DataNode::Pointer> m_SelectedNodes;
92 DescriptorActionListType m_DescriptorActionList;
95 ConfigurationElementsType m_ConfigElements;
135 bool m_SurfaceDecimation;