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 mitkContourTool_h_Included 00019 #define mitkContourTool_h_Included 00020 00021 #include "mitkCommon.h" 00022 #include "MitkExtExports.h" 00023 #include "mitkFeedbackContourTool.h" 00024 00025 namespace mitk 00026 { 00027 00028 class Image; 00029 00051 class MitkExt_EXPORT ContourTool : public FeedbackContourTool 00052 { 00053 public: 00054 00055 mitkClassMacro(ContourTool, FeedbackContourTool); 00056 00057 protected: 00058 00059 ContourTool(int paintingPixelValue = 1); // purposely hidden 00060 virtual ~ContourTool(); 00061 00062 virtual void Activated(); 00063 virtual void Deactivated(); 00064 00065 virtual bool OnMousePressed (Action*, const StateEvent*); 00066 virtual bool OnMouseMoved (Action*, const StateEvent*); 00067 virtual bool OnMouseReleased(Action*, const StateEvent*); 00068 virtual bool OnInvertLogic (Action*, const StateEvent*); 00069 00070 00071 int m_PaintingPixelValue; 00072 }; 00073 00074 } // namespace 00075 00076 #endif 00077 00078