00001 /*========================================================================= 00002 00003 Program: Medical Imaging & Interaction Toolkit 00004 Language: C++ 00005 Date: $Date$ 00006 Version: $Revision: $ 00007 00008 Copyright (c) German Cancer Research Center, Division of Medical and 00009 Biological Informatics. All rights reserved. 00010 See MITKCopyright.txt or https://www.mitk.org/copyright.html for details. 00011 00012 This software is distributed WITHOUT ANY WARRANTY; without even 00013 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00014 PURPOSE. See the above copyright notices for more information. 00015 00016 =========================================================================*/ 00017 00018 #pragma once 00019 00020 #include "mitkCommon.h" 00021 #include "mitkOperation.h" 00022 00023 #include <vtkPolyData.h> 00024 00025 namespace mitk { 00026 00027 /* 00028 * @brief Operation that stores polydata for changing surfaces 00029 */ 00030 class MITK_CORE_EXPORT SurfaceOperation : public Operation 00031 { 00032 public: 00033 00034 /* 00035 * Constructor 00036 * @param operationType type of the operation (OpSURFACECHANGED) 00037 * @param polyData the polydata object to replace in the surface 00038 * @param t the time step 00039 */ 00040 SurfaceOperation(mitk::OperationType operationType, vtkPolyData* polyData, unsigned int t); 00041 00042 virtual ~SurfaceOperation(); 00043 00044 vtkPolyData* GetVtkPolyData(); 00045 00046 unsigned int GetTimeStep(); 00047 00048 private: 00049 00050 vtkPolyData* m_polyData; 00051 unsigned int m_timeStep; 00052 }; 00053 }; // end namespace mitk 00054