Medical Imaging Interaction Toolkit  2018.4.99-12ad79a3
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 (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 #include "mitkLineOperation.h"
14 
15 mitk::LineOperation::LineOperation(OperationType operationType, int cellId, Vector3D vector, int pIdA, int pIdB, int id)
16  : mitk::CellOperation(operationType, cellId, vector), m_PIdA(pIdA), m_PIdB(pIdB), m_Id(id)
17 {
18 }
19 mitk::LineOperation::LineOperation(OperationType operationType, int cellId, int pIdA, int pIdB, int id)
20  : mitk::CellOperation(operationType, cellId), m_PIdA(pIdA), m_PIdB(pIdB), m_Id(id)
21 {
22 }
23 
25 {
26  return m_PIdA;
27 }
28 
30 {
31  return m_PIdB;
32 }
33 
35 {
36  return m_Id;
37 }
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:23