Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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,
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 SUBIMAGESELECTOR_H_HEADER_INCLUDED_C1E4F463
18 #define SUBIMAGESELECTOR_H_HEADER_INCLUDED_C1E4F463
19 
20 #include "mitkBaseData.h"
21 #include "mitkImageDataItem.h"
22 #include "mitkImageToImageFilter.h"
23 #include <MitkCoreExports.h>
24 
25 namespace mitk
26 {
27  //##Documentation
28  //## @brief Base class of all classes providing access to parts of an image
29  //##
30  //## Base class of all classes providing access to parts of an image, e.g., to
31  //## a slice (mitk::ImageSilceSelector) or a volume at a specific time
32  //## (mitk::ImageTimeSelector). If the input is generated by a ProcessObject,
33  //## only the required data is requested.
34  //## @ingroup Process
36  {
37  public:
40 
41  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
42 
43  virtual void SetPosNr(int p);
44 
46 
47  virtual ~SubImageSelector();
48 
49  protected:
50  mitk::Image::ImageDataItemPointer GetSliceData(int s = 0, int t = 0, int n = 0);
51  mitk::Image::ImageDataItemPointer GetVolumeData(int t = 0, int n = 0);
52  mitk::Image::ImageDataItemPointer GetChannelData(int n = 0);
53 
54  void SetSliceItem(mitk::Image::ImageDataItemPointer dataItem, int s = 0, int t = 0, int n = 0);
55  void SetVolumeItem(mitk::Image::ImageDataItemPointer dataItem, int t = 0, int n = 0);
56  void SetChannelItem(mitk::Image::ImageDataItemPointer dataItem, int n = 0);
57  };
58 
59 } // namespace mitk
60 
61 #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:44
Image class for storing images.
Definition: mitkImage.h:76
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.