Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

vtkImageAccumulate.h

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