Medical Imaging Interaction Toolkit  2018.4.99-87d68d9f
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 (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef MITKLINEOPERATION_H_INCLUDED
14 #define MITKLINEOPERATION_H_INCLUDED
15 
17 #include "mitkCellOperation.h"
18 #include "mitkCommon.h"
19 
20 namespace mitk
21 {
22  //##Documentation
23  //## @brief Operation, that holds everything necessary for an operation on a line.
24  //##
25  //## Stores everything for de-/ selecting, inserting , moving and removing a line.
26  //## @ingroup Undo
28  {
29  public:
31  //##Documentation
32  //##@brief constructor.
33  //##
34  //## @param operationType is the type of that operation (see mitkOperation.h; e.g. move or add; Information for
35  //StateMachine::ExecuteOperation());
36  //## @param cellId Id of the cell
37  //## @param vector is for movement
38  //## @param pIdA and pIdB are Id's of two points
39  //## @param id is the Id of a line in a cell
40  LineOperation(OperationType operationType, int cellId, Vector3D vector, int pIdA = -1, int pIdB = -1, int id = -1);
41  LineOperation(OperationType operationType, int cellId = -1, int pIdA = -1, int pIdB = -1, int id = -1);
42 
43  ~LineOperation() override{};
44 
45  // int GetCellId();
46  int GetPIdA();
47  int GetPIdB();
48  int GetId();
49 
50  protected:
51  // int m_CellId;
52  int m_PIdA;
53  int m_PIdB;
54  int m_Id;
55  };
56 } // namespace mitk
57 #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:40
Operation, that holds everything necessary for an operation on a cell.
int OperationType
Definition: mitkOperation.h:23