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 mitkSetRegionTool_h_Included 00019 #define mitkSetRegionTool_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 00047 class MitkExt_EXPORT SetRegionTool : public FeedbackContourTool 00048 { 00049 public: 00050 00051 mitkClassMacro(SetRegionTool, FeedbackContourTool); 00052 00053 protected: 00054 00055 SetRegionTool(int paintingPixelValue = 1); // purposely hidden 00056 virtual ~SetRegionTool(); 00057 00058 virtual void Activated(); 00059 virtual void Deactivated(); 00060 00061 virtual bool OnMousePressed (Action*, const StateEvent*); 00062 virtual bool OnMouseReleased(Action*, const StateEvent*); 00063 virtual bool OnInvertLogic (Action*, const StateEvent*); 00064 00065 int m_PaintingPixelValue; 00066 00067 bool m_FillContour; 00068 bool m_StatusFillWholeSlice; 00069 00070 Contour::Pointer m_SegmentationContourInWorldCoordinates; 00071 Contour::Pointer m_WholeImageContourInWorldCoordinates; 00072 }; 00073 00074 } // namespace 00075 00076 #endif 00077 00078