Medical Imaging Interaction Toolkit  2024.06.99-60d9b802
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 mitkImageSliceSelector_h
14 #define mitkImageSliceSelector_h
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
mitk::ImageSliceSelector::m_SliceNr
int m_SliceNr
Definition: mitkImageSliceSelector.h:56
mitk::SubImageSelector
Base class of all classes providing access to parts of an image.
Definition: mitkSubImageSelector.h:31
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::ImageSliceSelector
Provides access to a slice of the input image.
Definition: mitkImageSliceSelector.h:27
mitk::ImageSliceSelector::m_TimeNr
int m_TimeNr
Definition: mitkImageSliceSelector.h:58
mitk::BaseDataSource
Superclass of all classes generating some kind of mitk::BaseData.
Definition: mitkBaseDataSource.h:71
MitkCoreExports.h
mitkSubImageSelector.h
mitk::ImageSliceSelector::m_ChannelNr
int m_ChannelNr
Definition: mitkImageSliceSelector.h:60
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
MITKCORE_EXPORT
#define MITKCORE_EXPORT
Definition: MitkCoreExports.h:15