Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkImageSliceSelector.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef IMAGESLICESELECTOR_H_HEADER_INCLUDED_C1E4BE7B
18 #define IMAGESLICESELECTOR_H_HEADER_INCLUDED_C1E4BE7B
19 
20 #include "mitkSubImageSelector.h"
21 #include <MitkCoreExports.h>
22 
23 namespace mitk
24 {
25  //##Documentation
26  //## @brief Provides access to a slice of the input image
27  //##
28  //## If the input is generated by a ProcessObject, only the required data is
29  //## requested.
30  //## @ingroup Process
32  {
33  public:
35 
36  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
37 
38  itkGetConstMacro(SliceNr, int);
39  itkSetMacro(SliceNr, int);
40 
41  itkGetConstMacro(TimeNr, int);
42  itkSetMacro(TimeNr, int);
43 
44  itkGetConstMacro(ChannelNr, int);
45  itkSetMacro(ChannelNr, int);
46 
47  protected:
48  virtual void GenerateOutputInformation() override;
49 
50  virtual void GenerateInputRequestedRegion() override;
51 
52  virtual void GenerateData() override;
53 
55 
56  virtual ~ImageSliceSelector();
57 
58  int m_SliceNr;
59 
60  int m_TimeNr;
61 
62  int m_ChannelNr;
63  };
64 
65 } // namespace mitk
66 
67 #endif /* IMAGESLICESELECTOR_H_HEADER_INCLUDED_C1E4BE7B */
#define MITKCORE_EXPORT
Superclass of all classes generating some kind of mitk::BaseData.
DataCollection - Class to facilitate loading/accessing structured data.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
Base class of all classes providing access to parts of an image.
Provides access to a slice of the input image.