Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

Imaging/vtkImageAccumulate.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkImageAccumulate.h,v $
00005   Language:  C++
00006 
00007   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 
00008   All rights reserved.
00009   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00010 
00011      This software is distributed WITHOUT ANY WARRANTY; without even 
00012      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00013      PURPOSE.  See the above copyright notice for more information.
00014 
00015 =========================================================================*/
00057 #ifndef __vtkImageAccumulate_h
00058 #define __vtkImageAccumulate_h
00059 
00060 
00061 #include "vtkImageToImageFilter.h"
00062 
00063 class vtkImageStencilData;
00064 
00065 class VTK_IMAGING_EXPORT vtkImageAccumulate : public vtkImageToImageFilter
00066 {
00067 public:
00068   static vtkImageAccumulate *New();
00069   vtkTypeRevisionMacro(vtkImageAccumulate,vtkImageToImageFilter);
00070   void PrintSelf(ostream& os, vtkIndent indent);
00071 
00073 
00078   vtkSetVector3Macro(ComponentSpacing, float);
00079   vtkGetVector3Macro(ComponentSpacing, float);
00081 
00083 
00089   vtkSetVector3Macro(ComponentOrigin, float);
00090   vtkGetVector3Macro(ComponentOrigin, float);
00092 
00094 
00099   void SetComponentExtent(int extent[6]);
00100   void SetComponentExtent(int minX, int maxX, int minY, int maxY,
00101         int minZ, int maxZ);
00102   void GetComponentExtent(int extent[6]);
00103   int *GetComponentExtent() {return this->ComponentExtent;}
00105 
00106 
00108 
00109   void SetStencil(vtkImageStencilData *stencil);
00110   vtkImageStencilData *GetStencil();
00112 
00114 
00115   vtkSetMacro(ReverseStencil, int);
00116   vtkBooleanMacro(ReverseStencil, int);
00117   vtkGetMacro(ReverseStencil, int);
00119 
00121 
00122   vtkGetVector3Macro(Min, double);
00123   vtkGetVector3Macro(Max, double);
00124   vtkGetVector3Macro(Mean, double);
00125   vtkGetVector3Macro(StandardDeviation, double);
00126   vtkGetMacro(VoxelCount, long int);
00128  
00129   
00130 protected:
00131   vtkImageAccumulate();
00132   ~vtkImageAccumulate();
00133 
00134   float ComponentSpacing[3];
00135   float ComponentOrigin[3];
00136   int ComponentExtent[6];
00137 
00138   void ExecuteInformation(vtkImageData *input, vtkImageData *output);
00139   void ComputeInputUpdateExtent(int inExt[6], int outExt[6]);
00140   void ExecuteInformation(){this->vtkImageToImageFilter::ExecuteInformation();};
00141   void ExecuteData(vtkDataObject *out);
00142 
00143   double Min[3];
00144   double Max[3];
00145   double Mean[3];
00146   double StandardDeviation[3];
00147   long int VoxelCount;
00148 
00149   int ReverseStencil;
00150 
00151 private:
00152   vtkImageAccumulate(const vtkImageAccumulate&);  // Not implemented.
00153   void operator=(const vtkImageAccumulate&);  // Not implemented.
00154 };
00155 
00156 #endif
00157 
00158 
00159