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