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 MITKOVERLAY_H_HEADER_INCLUDED_C10DC4EB 00020 #define MITKOVERLAY_H_HEADER_INCLUDED_C10DC4EB 00021 00022 // MITK-Stuff 00023 #include "mitkCommon.h" 00024 #include "mitkPropertyList.h" 00025 00026 // QT-Stuff 00027 #include <QWidget> 00028 00029 #include "OverlaysExports.h" 00030 00031 00055 class Overlays_EXPORT QmitkOverlay : public QObject 00056 { 00057 Q_OBJECT 00058 00059 public: 00060 00062 enum DisplayPosition 00063 { 00064 top_Left = 0, 00065 top_Center = 1, 00066 top_Right = 2, 00067 middle_Left = 3, 00068 middle_Right = 4, 00069 bottom_Left = 5, 00070 bottom_Center = 6, 00071 bottom_Right = 7 00072 }; 00073 00077 QmitkOverlay(const char* id); 00078 00082 virtual ~QmitkOverlay(); 00083 00085 virtual void SetPosition( DisplayPosition ); 00086 00088 virtual DisplayPosition GetPosition(); 00089 00091 virtual void SetLayer( unsigned int ); 00092 00094 virtual unsigned int GetLayer(); 00095 00099 virtual void GenerateData( mitk::PropertyList::Pointer /*pl*/ ) {}; 00100 00104 virtual QWidget* GetWidget(); 00105 00106 00107 protected: 00108 00110 const char* m_Id; 00111 00113 DisplayPosition m_Position; 00114 00116 unsigned int m_Layer; 00117 00119 QWidget* m_Widget; 00120 }; 00121 00122 00123 #endif /* MITKOVERLAY_H_HEADER_INCLUDED_C10DC4EB */ 00124 00125