Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
mitkIContextMenuAction.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 #ifndef mitkIContextMenuAction_H_
17 #define mitkIContextMenuAction_H_
18 
19 #include <berryMacros.h>
20 #include <berryQtViewPart.h>
21 
22 #include <vector>
23 #include <mitkDataNode.h>
24 #include "mitkDataStorage.h"
25 
27 
28 namespace mitk
29 {
38  {
39 
43  virtual void Run( const QList<mitk::DataNode::Pointer>& selectedNodes ) = 0;
44 
45  // Setters
46  virtual void SetDataStorage(mitk::DataStorage* dataStorage) = 0;
47  virtual void SetSmoothed(bool smoothed) = 0;
48  virtual void SetDecimated(bool decimated) = 0;
49  virtual void SetFunctionality(berry::QtViewPart* functionality) = 0;
50  };
51 }
52 
53 Q_DECLARE_INTERFACE(mitk::IContextMenuAction, "org.mitk.datamanager.IContextMenuAction")
54 
55 #endif // mitkIContextMenuAction_H_
Data management class that handles 'was created by' relations.
virtual void Run(const QList< mitk::DataNode::Pointer > &selectedNodes)=0
Executes the action, that linked to the context menu entry.
DataCollection - Class to facilitate loading/accessing structured data.
virtual void SetDataStorage(mitk::DataStorage *dataStorage)=0
virtual void SetFunctionality(berry::QtViewPart *functionality)=0
virtual void SetDecimated(bool decimated)=0
virtual void SetSmoothed(bool smoothed)=0