Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkCellOperation.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 
17 #ifndef MITKCELLOPERATION_H_INCLUDED
18 #define MITKCELLOPERATION_H_INCLUDED
19 
21 #include "mitkCommon.h"
22 #include "mitkOperation.h"
23 #include "mitkVector.h"
24 
25 namespace mitk
26 {
27  //##Documentation
28  //## @brief Operation, that holds everything necessary for an operation on a cell.
29  //##
30  //## @ingroup Undo
32  {
33  public:
35  //##Documentation
36  //##@brief constructor
37  //##
38  //## @param
39  //## operationType is the type of that operation (see mitkOperation.h; e.g. move or add; Information for
40  //StateMachine::ExecuteOperation());
41  //## cellId: Id of the cell and a vector if needed
42  CellOperation(OperationType operationType, int cellId, Vector3D vector);
43 
44  CellOperation(OperationType operationType, int cellId);
45 
46  virtual ~CellOperation(){};
47 
48  int GetCellId() { return m_CellId; };
49  Vector3D GetVector() { return m_Vector; };
50  protected:
51  int m_CellId;
53  };
54 } // namespace mitk
55 #endif /* MITKCELLOPERATION_H_INCLUDED*/
#define MITKDATATYPESEXT_EXPORT
Base class of all Operation-classes.
Definition: mitkOperation.h:33
DataCollection - Class to facilitate loading/accessing structured data.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
Operation, that holds everything necessary for an operation on a cell.
int OperationType
Definition: mitkOperation.h:27