Medical Imaging Interaction Toolkit  2022.04.99-194dd5d8
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 (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef IMAGESLICESELECTOR_H_HEADER_INCLUDED_C1E4BE7B
14 #define IMAGESLICESELECTOR_H_HEADER_INCLUDED_C1E4BE7B
15 
16 #include "mitkSubImageSelector.h"
17 #include <MitkCoreExports.h>
18 
19 namespace mitk
20 {
21  //##Documentation
22  //## @brief Provides access to a slice of the input image
23  //##
24  //## If the input is generated by a ProcessObject, only the required data is
25  //## requested.
26  //## @ingroup Process
28  {
29  public:
31 
32  itkFactorylessNewMacro(Self);
33 
34  itkCloneMacro(Self);
35 
36  itkGetConstMacro(SliceNr, int);
37  itkSetMacro(SliceNr, int);
38 
39  itkGetConstMacro(TimeNr, int);
40  itkSetMacro(TimeNr, int);
41 
42  itkGetConstMacro(ChannelNr, int);
43  itkSetMacro(ChannelNr, int);
44 
45  protected:
46  void GenerateOutputInformation() override;
47 
48  void GenerateInputRequestedRegion() override;
49 
50  void GenerateData() override;
51 
53 
54  ~ImageSliceSelector() override;
55 
56  int m_SliceNr;
57 
58  int m_TimeNr;
59 
61  };
62 
63 } // namespace mitk
64 
65 #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:36
Base class of all classes providing access to parts of an image.
Provides access to a slice of the input image.