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 IMAGECHANNELSELECTOR_H_HEADER_INCLUDED_C1E4F4E7 00020 #define IMAGECHANNELSELECTOR_H_HEADER_INCLUDED_C1E4F4E7 00021 00022 #include "mitkCommon.h" 00023 #include "mitkSubImageSelector.h" 00024 00025 namespace mitk { 00026 00027 //##Documentation 00028 //## @brief Provides access to a channel of the input image 00029 //## 00030 //## If the input is generated by a ProcessObject, only the required data is 00031 //## requested. 00032 //## @ingroup Process 00033 class MITK_CORE_EXPORT ImageChannelSelector : public SubImageSelector 00034 { 00035 public: 00036 mitkClassMacro(ImageChannelSelector,SubImageSelector); 00037 00038 itkNewMacro(Self); 00039 00040 itkGetConstMacro(ChannelNr,int); 00041 itkSetMacro(ChannelNr,int); 00042 00043 protected: 00044 ImageChannelSelector(); 00045 00046 virtual ~ImageChannelSelector(); 00047 00048 virtual void GenerateOutputInformation(); 00049 00050 virtual void GenerateInputRequestedRegion(); 00051 00052 virtual void GenerateData(); 00053 00054 int m_ChannelNr; 00055 }; 00056 00057 } // namespace mitk 00058 00059 00060 00061 #endif /* IMAGECHANNELSELECTOR_H_HEADER_INCLUDED_C1E4F4E7 */