Medical Imaging Interaction Toolkit  2018.4.99-f51274ea
Medical Imaging Interaction Toolkit
mitkSubImageSelector.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 SUBIMAGESELECTOR_H_HEADER_INCLUDED_C1E4F463
14 #define SUBIMAGESELECTOR_H_HEADER_INCLUDED_C1E4F463
15 
16 #include "mitkBaseData.h"
17 #include "mitkImageDataItem.h"
18 #include "mitkImageToImageFilter.h"
19 #include <MitkCoreExports.h>
20 
21 namespace mitk
22 {
23  //##Documentation
24  //## @brief Base class of all classes providing access to parts of an image
25  //##
26  //## Base class of all classes providing access to parts of an image, e.g., to
27  //## a slice (mitk::ImageSilceSelector) or a volume at a specific time
28  //## (mitk::ImageTimeSelector). If the input is generated by a ProcessObject,
29  //## only the required data is requested.
30  //## @ingroup Process
32  {
33  public:
36 
37  itkFactorylessNewMacro(Self);
38 
39  itkCloneMacro(Self);
40 
41  virtual void SetPosNr(int p);
42 
44 
45  ~SubImageSelector() override;
46 
47  protected:
48  mitk::Image::ImageDataItemPointer GetSliceData(int s = 0, int t = 0, int n = 0);
49  mitk::Image::ImageDataItemPointer GetVolumeData(int t = 0, int n = 0);
50  mitk::Image::ImageDataItemPointer GetChannelData(int n = 0);
51 
52  void SetSliceItem(mitk::Image::ImageDataItemPointer dataItem, int s = 0, int t = 0, int n = 0);
53  void SetVolumeItem(mitk::Image::ImageDataItemPointer dataItem, int t = 0, int n = 0);
54  void SetChannelItem(mitk::Image::ImageDataItemPointer dataItem, int n = 0);
55  };
56 
57 } // namespace mitk
58 
59 #endif /* SUBIMAGESELECTOR_H_HEADER_INCLUDED_C1E4F463 */
#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:40
Superclass of all classes having one or more Images as input and generating Images as output...
Base class of all classes providing access to parts of an image.