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 00019 #ifndef MITKCELLOPERATION_H_INCLUDED 00020 #define MITKCELLOPERATION_H_INCLUDED 00021 00022 #include "mitkCommon.h" 00023 #include "MitkExtExports.h" 00024 #include "mitkOperation.h" 00025 #include "mitkVector.h" 00026 00027 namespace mitk { 00028 00029 //##Documentation 00030 //## @brief Operation, that holds everything necessary for an operation on a cell. 00031 //## 00032 //## @ingroup Undo 00033 class MitkExt_EXPORT CellOperation : public Operation 00034 { 00035 public: 00036 mitkClassMacro(CellOperation, Operation); 00037 //##Documentation 00038 //##@brief constructor 00039 //## 00040 //## @param 00041 //## operationType is the type of that operation (see mitkOperation.h; e.g. move or add; Information for StateMachine::ExecuteOperation()); 00042 //## cellId: Id of the cell and a vector if needed 00043 CellOperation(OperationType operationType, int cellId, Vector3D vector); 00044 00045 CellOperation(OperationType operationType, int cellId); 00046 00047 virtual ~CellOperation(){}; 00048 00049 int GetCellId() {return m_CellId;}; 00050 Vector3D GetVector() {return m_Vector;}; 00051 00052 protected: 00053 int m_CellId; 00054 Vector3D m_Vector; 00055 }; 00056 }//namespace mitk 00057 #endif /* MITKCELLOPERATION_H_INCLUDED*/