VTK
vtkImageAccumulate.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImageAccumulate.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 =========================================================================*/
42 #ifndef __vtkImageAccumulate_h
43 #define __vtkImageAccumulate_h
44 
45 #include "vtkImageAlgorithm.h"
46 
48 
50 {
51 public:
52  static vtkImageAccumulate *New();
54  void PrintSelf(ostream& os, vtkIndent indent);
55 
57 
63  vtkSetVector3Macro(ComponentSpacing, double);
64  vtkGetVector3Macro(ComponentSpacing, double);
66 
68 
74  vtkSetVector3Macro(ComponentOrigin, double);
75  vtkGetVector3Macro(ComponentOrigin, double);
77 
79 
84  void SetComponentExtent(int extent[6]);
85  void SetComponentExtent(int minX, int maxX, int minY, int maxY,
86  int minZ, int maxZ);
87  void GetComponentExtent(int extent[6]);
88  int *GetComponentExtent() {return this->ComponentExtent;}
90 
91 
93 
96  void SetStencil(vtkImageStencilData *stencil);
97  vtkImageStencilData *GetStencil();
99 
101 
102  vtkSetClampMacro(ReverseStencil, int, 0, 1);
103  vtkBooleanMacro(ReverseStencil, int);
104  vtkGetMacro(ReverseStencil, int);
106 
108 
110  vtkGetVector3Macro(Min, double);
111  vtkGetVector3Macro(Max, double);
112  vtkGetVector3Macro(Mean, double);
113  vtkGetVector3Macro(StandardDeviation, double);
114  vtkGetMacro(VoxelCount, vtkIdType);
116 
118 
119  vtkSetClampMacro(IgnoreZero, int, 0, 1);
120  vtkGetMacro(IgnoreZero, int);
121  vtkBooleanMacro(IgnoreZero, int);
123 
124 protected:
127 
128  double ComponentSpacing[3];
129  double ComponentOrigin[3];
130  int ComponentExtent[6];
131 
132  virtual int RequestUpdateExtent(vtkInformation*,
135  virtual int RequestInformation (vtkInformation*,
138  virtual int RequestData(vtkInformation* request,
139  vtkInformationVector** inputVector,
140  vtkInformationVector* outputVector);
141 
143  double Min[3];
144  double Max[3];
145  double Mean[3];
146  double StandardDeviation[3];
148 
150 
152 
153 private:
154  vtkImageAccumulate(const vtkImageAccumulate&); // Not implemented.
155  void operator=(const vtkImageAccumulate&); // Not implemented.
156 };
157 
158 #endif
159 
160 
161