dox/Imaging/vtkImageAlphaFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   BioImageXD
00004   Module:    $RCSfile: vtkImageAlphaFilter.h,v $
00005 
00006  Copyright (C) 2005  BioImageXD Project
00007  See CREDITS.txt for details
00008 
00009  This program is free software; you can redistribute it and/or modify
00010  it under the terms of the GNU General Public License as published by
00011  the Free Software Foundation; either version 2 of the License, or
00012  (at your option) any later version.
00013 
00014  This program is distributed in the hope that it will be useful,
00015  but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  GNU General Public License for more details.
00018 
00019  You should have received a copy of the GNU General Public License
00020  along with this program; if not, write to the Free Software
00021  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00022 
00023 =========================================================================*/
00037 #ifndef __vtkImageAlphaFilter_h
00038 #define __vtkImageAlphaFilter_h
00039 
00040 
00041 #include "vtkImageMultipleInputFilter.h"
00042 
00043 class VTK_IMAGING_EXPORT vtkImageAlphaFilter : public vtkImageMultipleInputFilter
00044 {
00045 public:
00046   static vtkImageAlphaFilter *New();
00047   vtkTypeRevisionMacro(vtkImageAlphaFilter,vtkImageMultipleInputFilter);
00048   void PrintSelf(ostream& os, vtkIndent indent);
00049 
00051 
00053   vtkBooleanMacro(MaximumMode,int);
00054   vtkSetMacro(MaximumMode,int);
00055   vtkGetMacro(MaximumMode,int);
00056   // Description:
00057   // In the average mode, the alpha channel value will be the
00058   // average of all scalar values that are larger than AverageThreshold
00059   vtkBooleanMacro(AverageMode,int);
00060   vtkSetMacro(AverageMode,int);
00061   vtkGetMacro(AverageMode,int);
00063 
00064   vtkSetMacro(AverageThreshold,int);
00065   vtkGetMacro(AverageThreshold,int);
00066 
00067 protected:
00068   vtkImageAlphaFilter();
00069   ~vtkImageAlphaFilter();
00070 
00071 
00072   void ExecuteInformation(vtkImageData **inputs, vtkImageData *output);
00073   void ComputeInputUpdateExtent(int inExt[6], int outExt[6]);
00074   
00075   void ThreadedExecute(vtkImageData **inDatas, vtkImageData *outData,
00076                        int extent[6], int id);
00077   
00078 
00079   void InitOutput(int outExt[6], vtkImageData *outData);
00080 private:
00081   vtkImageAlphaFilter(const vtkImageAlphaFilter&);  // Not implemented.
00082   void operator=(const vtkImageAlphaFilter&);  // Not implemented.
00083 
00084   int AverageMode;
00085   int AverageThreshold;
00086   int MaximumMode;
00087 };
00088 
00089 #endif
00090 
00091 
00092 
00093 

Generated on Sat Dec 30 06:06:56 2006 for VTK by  doxygen 1.5.1