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 "vtkImagingStatisticsModule.h" // For export macro
46 #include "vtkImageAlgorithm.h"
47 
49 
51 {
52 public:
55  void PrintSelf(ostream& os, vtkIndent indent);
56 
58 
64  vtkSetVector3Macro(ComponentSpacing, double);
65  vtkGetVector3Macro(ComponentSpacing, double);
67 
69 
75  vtkSetVector3Macro(ComponentOrigin, double);
76  vtkGetVector3Macro(ComponentOrigin, double);
78 
80 
85  void SetComponentExtent(int extent[6]);
86  void SetComponentExtent(int minX, int maxX, int minY, int maxY,
87  int minZ, int maxZ);
88  void GetComponentExtent(int extent[6]);
89  int *GetComponentExtent() {return this->ComponentExtent;}
91 
92 
94 
100 
102 
103  vtkSetClampMacro(ReverseStencil, int, 0, 1);
104  vtkBooleanMacro(ReverseStencil, int);
105  vtkGetMacro(ReverseStencil, int);
107 
109 
111  vtkGetVector3Macro(Min, double);
112  vtkGetVector3Macro(Max, double);
113  vtkGetVector3Macro(Mean, double);
114  vtkGetVector3Macro(StandardDeviation, double);
115  vtkGetMacro(VoxelCount, vtkIdType);
117 
119 
120  vtkSetClampMacro(IgnoreZero, int, 0, 1);
121  vtkGetMacro(IgnoreZero, int);
122  vtkBooleanMacro(IgnoreZero, int);
124 
125 protected:
128 
129  double ComponentSpacing[3];
130  double ComponentOrigin[3];
131  int ComponentExtent[6];
132 
139  virtual int RequestData(vtkInformation* request,
140  vtkInformationVector** inputVector,
141  vtkInformationVector* outputVector);
142 
144  double Min[3];
145  double Max[3];
146  double Mean[3];
147  double StandardDeviation[3];
149 
151 
153 
154 private:
155  vtkImageAccumulate(const vtkImageAccumulate&); // Not implemented.
156  void operator=(const vtkImageAccumulate&); // Not implemented.
157 };
158 
159 #endif
160 
161 
162 
vtkImageAccumulate::New
static vtkImageAccumulate * New()
vtkImageAccumulate::RequestInformation
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkImagingStatisticsModule.h
vtkSetVector3Macro
#define vtkSetVector3Macro(name, type)
Definition: vtkSetGet.h:287
vtkIdType
int vtkIdType
Definition: vtkType.h:275
vtkImageAccumulate::SetComponentExtent
void SetComponentExtent(int minX, int maxX, int minY, int maxY, int minZ, int maxZ)
vtkImageAccumulate::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkImageAlgorithm.h
vtkImageAccumulate::SetComponentExtent
void SetComponentExtent(int extent[6])
vtkImageAccumulate::ReverseStencil
int ReverseStencil
Definition: vtkImageAccumulate.h:150
vtkImageAlgorithm
Generic algorithm superclass for image algs.
Definition: vtkImageAlgorithm.h:40
vtkImageAccumulate::VoxelCount
vtkIdType VoxelCount
Definition: vtkImageAccumulate.h:148
vtkImageAccumulate::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkImageAccumulate::IgnoreZero
int IgnoreZero
Definition: vtkImageAccumulate.h:143
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkSetClampMacro
#define vtkSetClampMacro(name, type, min, max)
Definition: vtkSetGet.h:143
vtkGetVector3Macro
#define vtkGetVector3Macro(name, type)
Definition: vtkSetGet.h:304
vtkImageAccumulate::~vtkImageAccumulate
~vtkImageAccumulate()
vtkImageAccumulate::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
vtkgl::stencil
GLint GLfloat GLint stencil
Definition: vtkgl.h:12368
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkImageAccumulate::SetStencilData
void SetStencilData(vtkImageStencilData *stencil)
vtkImageAccumulate::GetStencil
vtkImageStencilData * GetStencil()
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkImageAccumulate
Generalized histograms up to 3 dimensions.
Definition: vtkImageAccumulate.h:51
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkImageAccumulate::GetComponentExtent
int * GetComponentExtent()
Definition: vtkImageAccumulate.h:89
vtkImageStencilData
efficient description of an image stencil
Definition: vtkImageStencilData.h:37
vtkImageAccumulate::GetComponentExtent
void GetComponentExtent(int extent[6])
vtkX3D::extent
@ extent
Definition: vtkX3D.h:345
vtkImageAccumulate::vtkImageAccumulate
vtkImageAccumulate()
VTKIMAGINGSTATISTICS_EXPORT
#define VTKIMAGINGSTATISTICS_EXPORT
Definition: vtkImagingStatisticsModule.h:15
vtkImageAccumulate::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)