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 mitkCorrectorTool2D_h_Included 00019 #define mitkCorrectorTool2D_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 00050 class MitkExt_EXPORT CorrectorTool2D : public FeedbackContourTool 00051 { 00052 public: 00053 00054 mitkClassMacro(CorrectorTool2D, FeedbackContourTool); 00055 itkNewMacro(CorrectorTool2D); 00056 00057 virtual const char** GetXPM() const; 00058 virtual const char* GetName() const; 00059 00060 protected: 00061 00062 CorrectorTool2D(int paintingPixelValue = 1); // purposely hidden 00063 virtual ~CorrectorTool2D(); 00064 00065 virtual void Activated(); 00066 virtual void Deactivated(); 00067 00068 virtual bool OnMousePressed (Action*, const StateEvent*); 00069 virtual bool OnMouseMoved (Action*, const StateEvent*); 00070 virtual bool OnMouseReleased(Action*, const StateEvent*); 00071 00072 int m_PaintingPixelValue; 00073 00074 Image::Pointer m_WorkingSlice; 00075 }; 00076 00077 } // namespace 00078 00079 #endif 00080 00081