Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkLineOperation.cpp
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 #include "mitkLineOperation.h"
18 
19 mitk::LineOperation::LineOperation(OperationType operationType, int cellId, Vector3D vector, int pIdA, int pIdB, int id)
20  : mitk::CellOperation(operationType, cellId, vector), m_PIdA(pIdA), m_PIdB(pIdB), m_Id(id)
21 {
22 }
23 mitk::LineOperation::LineOperation(OperationType operationType, int cellId, int pIdA, int pIdB, int id)
24  : mitk::CellOperation(operationType, cellId), m_PIdA(pIdA), m_PIdB(pIdB), m_Id(id)
25 {
26 }
27 
29 {
30  return m_PIdA;
31 }
32 
34 {
35  return m_PIdB;
36 }
37 
39 {
40  return m_Id;
41 }
LineOperation(OperationType operationType, int cellId, Vector3D vector, int pIdA=-1, int pIdB=-1, int id=-1)
constructor.
DataCollection - Class to facilitate loading/accessing structured data.
Operation, that holds everything necessary for an operation on a cell.
int OperationType
Definition: mitkOperation.h:27