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 MITKUSLookupTableSOURCE_H_HEADER_INCLUDED 00020 #define MITKUSLookupTableSOURCE_H_HEADER_INCLUDED 00021 00022 #include "mitkCommon.h" 00023 #include "MitkExtExports.h" 00024 #include "mitkLookupTableSource.h" 00025 00026 00027 class mitk::LookupTable; 00028 00029 namespace mitk 00030 { 00031 00032 00033 class MitkExt_EXPORT USLookupTableSource : public LookupTableSource 00034 { 00035 public: 00036 typedef enum {DSRDoppler, StrainRate, DefaultLUT} LookupTableMode; 00037 00038 mitkClassMacro( USLookupTableSource, LookupTableSource ); 00039 itkNewMacro( Self ); 00040 00042 typedef mitk::LookupTable OutputType; 00043 00044 void SetUseDSRDopplerLookupTable() {m_Mode = DSRDoppler; this->Modified();}; 00045 00046 void SetUseStrainRateLookupTable() {m_Mode = StrainRate; this->Modified();}; 00047 00048 protected: 00049 USLookupTableSource(); 00050 virtual ~USLookupTableSource(); 00051 00056 virtual void GenerateData(); 00057 00062 vtkLookupTable* BuildVtkLookupTable( ); 00063 00070 vtkLookupTable* BuildDSRDopplerLookupTable(); 00071 00078 vtkLookupTable* BuildStrainRateLookupTable(); 00079 00084 vtkLookupTable* BuildDefaultLookupTable(); 00085 00086 00087 00088 private: 00089 LookupTableMode m_Mode; 00090 OutputTypePointer m_LookupTable; 00091 00092 }; 00093 00094 } // namespace mitk 00095 00096 00097 00098 #endif /* MITKLookupTableSOURCE_H_HEADER_INCLUDED */