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 #ifndef __ContourInteractor_H 00019 #define __ContourInteractor_H 00020 00021 #include "mitkCommon.h" 00022 #include "MitkExtExports.h" 00023 #include <mitkInteractor.h> 00024 #include <mitkVector.h> 00025 00026 namespace mitk { 00027 00028 //##Documentation 00029 //## @brief Interactor for the creation of an mitk::Contour 00030 //## @ingroup Interaction 00031 class MitkExt_EXPORT ContourInteractor : public mitk::Interactor 00032 { 00033 public: 00034 mitkClassMacro(ContourInteractor, Interactor); 00035 mitkNewMacro2Param(Self, const char*, DataNode*); 00036 00037 00038 protected: 00039 ContourInteractor(const char * type, DataNode* dataNode); 00040 virtual ~ContourInteractor(); 00041 00042 virtual bool ExecuteAction(Action* action, mitk::StateEvent const* stateEvent); 00043 00048 virtual void Press (mitk::Point3D& op); 00049 00053 virtual void Release (mitk::Point3D& op); 00054 00058 virtual void Move (mitk::Point3D& op); 00059 00060 protected: 00061 bool m_Positive; 00062 bool m_Started; 00063 }; 00064 00065 } 00066 #endif //__ContourInteractor_H