VTK
vtkImageShrink3D.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImageShrink3D.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
28 #ifndef __vtkImageShrink3D_h
29 #define __vtkImageShrink3D_h
30 
31 
33 
35 {
36 public:
37  static vtkImageShrink3D *New();
39  void PrintSelf(ostream& os, vtkIndent indent);
40 
42 
43  vtkSetVector3Macro(ShrinkFactors,int);
44  vtkGetVector3Macro(ShrinkFactors,int);
46 
48 
49  vtkSetVector3Macro(Shift,int);
50  vtkGetVector3Macro(Shift,int);
52 
54 
59  void SetAveraging(int);
60  int GetAveraging() {return this->GetMean();};
61  vtkBooleanMacro(Averaging,int);
63 
64  void SetMean(int);
65  vtkGetMacro(Mean,int);
66  vtkBooleanMacro(Mean,int);
67 
68  void SetMinimum(int);
69  vtkGetMacro(Minimum,int);
70  vtkBooleanMacro(Minimum,int);
71 
72  void SetMaximum(int);
73  vtkGetMacro(Maximum,int);
74  vtkBooleanMacro(Maximum,int);
75 
76  void SetMedian(int);
77  vtkGetMacro(Median,int);
78  vtkBooleanMacro(Median,int);
79 
80 protected:
83 
84  int ShrinkFactors[3];
85  int Shift[3];
86  int Mean;
87  int Minimum;
88  int Maximum;
89  int Median;
90 
93 
94  void ThreadedRequestData(vtkInformation *request,
95  vtkInformationVector **inputVector,
96  vtkInformationVector *outputVector,
97  vtkImageData ***inData, vtkImageData **outData,
98  int ext[6], int id);
99 
100  void InternalRequestUpdateExtent(int *inExt, int *outExt);
101 
102 private:
103  vtkImageShrink3D(const vtkImageShrink3D&); // Not implemented.
104  void operator=(const vtkImageShrink3D&); // Not implemented.
105 };
106 
107 #endif
108 
109 
110