00001 /*========================================================================= 00002 00003 Program: Medical Imaging & Interaction Toolkit 00004 Language: C++ 00005 Date: $Date: 2009-05-28 17:19:30 +0200 (Thu, 28 May 2009) $ 00006 Version: $Revision: 17495 $ 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 00019 #ifndef MITKSCALARBAROVERLAY_H_HEADER_INCLUDED_C10DC4EB 00020 #define MITKSCALARBAROVERLAY_H_HEADER_INCLUDED_C10DC4EB 00021 00022 #include "OverlaysExports.h" 00023 00024 // MITK-Stuff 00025 #include "mitkCommon.h" 00026 #include "mitkPropertyList.h" 00027 #include "QmitkOverlay.h" 00028 #include <QmitkScalarBar.h> 00029 00030 00038 class Overlays_EXPORT QmitkScalarBarOverlay : public QmitkOverlay 00039 { 00040 Q_OBJECT 00041 00042 public: 00043 00047 QmitkScalarBarOverlay( const char* id ); 00048 00052 virtual ~QmitkScalarBarOverlay(); 00053 00063 virtual void GenerateData( mitk::PropertyList::Pointer ); 00064 00068 virtual QWidget* GetWidget(); 00069 00070 protected: 00071 00080 void GetProperties( mitk::PropertyList::Pointer ); 00081 00082 void SetupCallback( mitk::BaseProperty::Pointer prop ); 00083 00084 void SetScaleFactor(); 00085 00087 QmitkScalarBar* m_Widget; 00088 00089 mitk::PropertyList::Pointer m_PropertyList; 00090 }; 00091 00092 00093 #endif /* MITKSCALARBAROVERLAY_H_HEADER_INCLUDED_C10DC4EB */ 00094 00095