Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkLineOperation.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 MITKLINEOPERATION_H_INCLUDED
18 #define MITKLINEOPERATION_H_INCLUDED
19 
21 #include "mitkCellOperation.h"
22 #include "mitkCommon.h"
23 
24 namespace mitk
25 {
26  //##Documentation
27  //## @brief Operation, that holds everything necessary for an operation on a line.
28  //##
29  //## Stores everything for de-/ selecting, inserting , moving and removing a line.
30  //## @ingroup Undo
32  {
33  public:
35  //##Documentation
36  //##@brief constructor.
37  //##
38  //## @param operationType is the type of that operation (see mitkOperation.h; e.g. move or add; Information for
39  //StateMachine::ExecuteOperation());
40  //## @param cellId Id of the cell
41  //## @param vector is for movement
42  //## @param pIdA and pIdB are Id's of two points
43  //## @param id is the Id of a line in a cell
44  LineOperation(OperationType operationType, int cellId, Vector3D vector, int pIdA = -1, int pIdB = -1, int id = -1);
45  LineOperation(OperationType operationType, int cellId = -1, int pIdA = -1, int pIdB = -1, int id = -1);
46 
47  virtual ~LineOperation(){};
48 
49  // int GetCellId();
50  int GetPIdA();
51  int GetPIdB();
52  int GetId();
53 
54  protected:
55  // int m_CellId;
56  int m_PIdA;
57  int m_PIdB;
58  int m_Id;
59  };
60 } // namespace mitk
61 #endif /* MITKLINEOPERATION_H_INCLUDED*/
#define MITKDATATYPESEXT_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
Operation, that holds everything necessary for an operation on a line.
#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