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 00019 #ifndef MITKLEVELWINDOWPROPERTY_H_HEADER_INCLUDED_C10EEAA8 00020 #define MITKLEVELWINDOWPROPERTY_H_HEADER_INCLUDED_C10EEAA8 00021 00022 #include "mitkBaseProperty.h" 00023 #include "mitkLevelWindow.h" 00024 00025 namespace mitk { 00026 00027 //##Documentation 00028 //## @brief Property for level/window data 00029 //## 00030 //## @ingroup DataManagement 00031 class MITK_CORE_EXPORT LevelWindowProperty : public BaseProperty 00032 { 00033 00034 protected: 00035 LevelWindow m_LevWin; 00036 00037 LevelWindowProperty(); 00038 00039 LevelWindowProperty(const mitk::LevelWindow &levWin); 00040 00041 public: 00042 mitkClassMacro(LevelWindowProperty, BaseProperty); 00043 00044 itkNewMacro(LevelWindowProperty); 00045 mitkNewMacro1Param(LevelWindowProperty, const mitk::LevelWindow&); 00046 00047 virtual ~LevelWindowProperty(); 00048 00049 virtual bool operator==(const BaseProperty& property) const; 00050 00051 const mitk::LevelWindow & GetLevelWindow() const; 00052 00053 void SetLevelWindow(const LevelWindow &levWin); 00054 00055 virtual std::string GetValueAsString() const; 00056 00057 }; 00058 00059 } // namespace mitk 00060 00061 00062 00063 #endif /* MITKLEVELWINDOWPROPERTY_H_HEADER_INCLUDED_C10EEAA8 */