Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkSurfaceOperation.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 #pragma once
18 
19 #include "mitkOperation.h"
20 #include <MitkCoreExports.h>
21 
22 #include <vtkPolyData.h>
23 
24 namespace mitk
25 {
26  /*
27  * @brief Operation that stores polydata for changing surfaces
28  */
30  {
31  public:
32  /*
33  * Constructor
34  * @param operationType type of the operation (OpSURFACECHANGED)
35  * @param polyData the polydata object to replace in the surface
36  * @param t the time step
37  */
38  SurfaceOperation(mitk::OperationType operationType, vtkPolyData *polyData, unsigned int t);
39 
40  virtual ~SurfaceOperation();
41 
42  vtkPolyData *GetVtkPolyData();
43 
44  unsigned int GetTimeStep();
45 
46  private:
47  vtkPolyData *m_polyData;
48  unsigned int m_timeStep;
49  };
50 }; // end namespace mitk
#define MITKCORE_EXPORT
Base class of all Operation-classes.
Definition: mitkOperation.h:33
DataCollection - Class to facilitate loading/accessing structured data.
int OperationType
Definition: mitkOperation.h:27