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 http://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 MITKLINEOPERATION_H_INCLUDED 00020 #define MITKLINEOPERATION_H_INCLUDED 00021 00022 #include "mitkCommon.h" 00023 #include "MitkExtExports.h" 00024 #include "mitkCellOperation.h" 00025 00026 00027 namespace mitk { 00028 00029 //##Documentation 00030 //## @brief Operation, that holds everything necessary for an operation on a line. 00031 //## 00032 //## Stores everything for de-/ selecting, inserting , moving and removing a line. 00033 //## @ingroup Undo 00034 class MitkExt_EXPORT LineOperation : public mitk::CellOperation 00035 { 00036 public: 00037 mitkClassMacro(LineOperation, CellOperation); 00038 //##Documentation 00039 //##@brief constructor. 00040 //## 00041 //## @param operationType is the type of that operation (see mitkOperation.h; e.g. move or add; Information for StateMachine::ExecuteOperation()); 00042 //## @param cellId Id of the cell 00043 //## @param vector is for movement 00044 //## @param pIdA and pIdB are Id's of two points 00045 //## @param id is the Id of a line in a cell 00046 LineOperation(OperationType operationType, int cellId, Vector3D vector, int pIdA = -1, int pIdB = -1, int id = -1); 00047 LineOperation(OperationType operationType, int cellId = -1, int pIdA = -1, int pIdB = -1, int id = -1); 00048 00049 virtual ~LineOperation(){}; 00050 00051 //int GetCellId(); 00052 int GetPIdA(); 00053 int GetPIdB(); 00054 int GetId(); 00055 00056 protected: 00057 // int m_CellId; 00058 int m_PIdA; 00059 int m_PIdB; 00060 int m_Id; 00061 }; 00062 }//namespace mitk 00063 #endif /* MITKLINEOPERATION_H_INCLUDED*/ 00064 00065