VTK
dox/Imaging/vtkImageStencilToImage.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkImageStencilToImage.h
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 =========================================================================*/
00030 #ifndef __vtkImageStencilToImage_h
00031 #define __vtkImageStencilToImage_h
00032 
00033 #include "vtkImageAlgorithm.h"
00034 
00035 class VTK_IMAGING_EXPORT vtkImageStencilToImage : public vtkImageAlgorithm
00036 {
00037 public:
00038   static vtkImageStencilToImage *New();
00039   vtkTypeMacro(vtkImageStencilToImage, vtkImageAlgorithm);
00040   void PrintSelf(ostream& os, vtkIndent indent);
00041 
00043 
00044   vtkSetMacro(OutsideValue, double);
00045   vtkGetMacro(OutsideValue, double);
00047 
00049 
00050   vtkSetMacro(InsideValue, double);
00051   vtkGetMacro(InsideValue, double);
00053 
00055 
00056   vtkSetMacro(OutputScalarType,int);
00057   vtkGetMacro(OutputScalarType,int);
00058   void SetOutputScalarTypeToFloat(){this->SetOutputScalarType(VTK_FLOAT);};
00059   void SetOutputScalarTypeToDouble(){this->SetOutputScalarType(VTK_DOUBLE);};
00060   void SetOutputScalarTypeToInt(){this->SetOutputScalarType(VTK_INT);};
00061   void SetOutputScalarTypeToUnsignedInt()
00062     {this->SetOutputScalarType(VTK_UNSIGNED_INT);};
00063   void SetOutputScalarTypeToLong(){this->SetOutputScalarType(VTK_LONG);};
00064   void SetOutputScalarTypeToUnsignedLong()
00065     {this->SetOutputScalarType(VTK_UNSIGNED_LONG);};
00066   void SetOutputScalarTypeToShort(){this->SetOutputScalarType(VTK_SHORT);};
00067   void SetOutputScalarTypeToUnsignedShort()
00068     {this->SetOutputScalarType(VTK_UNSIGNED_SHORT);};
00069   void SetOutputScalarTypeToUnsignedChar()
00070     {this->SetOutputScalarType(VTK_UNSIGNED_CHAR);};
00071   void SetOutputScalarTypeToChar()
00072     {this->SetOutputScalarType(VTK_CHAR);};
00074 
00075 protected:
00076   vtkImageStencilToImage();
00077   ~vtkImageStencilToImage();
00078 
00079   virtual int RequestInformation(vtkInformation *,
00080                                  vtkInformationVector **,
00081                                  vtkInformationVector *);
00082 
00083   virtual int RequestData(vtkInformation *,
00084                           vtkInformationVector **,
00085                           vtkInformationVector *);
00086 
00087   double OutsideValue;
00088   double InsideValue;
00089   int OutputScalarType;
00090 
00091   virtual int FillInputPortInformation(int, vtkInformation*);
00092 
00093 private:
00094   vtkImageStencilToImage(const vtkImageStencilToImage&);  // Not implemented.
00095   void operator=(const vtkImageStencilToImage&);  // Not implemented.
00096 };
00097 
00098 #endif