VTK
dox/Imaging/Core/vtkImageStencilSource.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkImageStencilSource.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 =========================================================================*/
00031 #ifndef __vtkImageStencilSource_h
00032 #define __vtkImageStencilSource_h
00033 
00034 
00035 #include "vtkImagingCoreModule.h" // For export macro
00036 #include "vtkImageStencilAlgorithm.h"
00037 
00038 class vtkImageStencilData;
00039 class vtkImageData;
00040 
00041 class VTKIMAGINGCORE_EXPORT vtkImageStencilSource :
00042   public vtkImageStencilAlgorithm
00043 {
00044 public:
00045   static vtkImageStencilSource *New();
00046   vtkTypeMacro(vtkImageStencilSource, vtkImageStencilAlgorithm);
00047 
00048   void PrintSelf(ostream& os, vtkIndent indent);
00049 
00051 
00056   virtual void SetInformationInput(vtkImageData*);
00057   vtkGetObjectMacro(InformationInput, vtkImageData);
00059 
00061 
00064   vtkSetVector3Macro(OutputOrigin, double);
00065   vtkGetVector3Macro(OutputOrigin, double);
00067 
00069 
00072   vtkSetVector3Macro(OutputSpacing, double);
00073   vtkGetVector3Macro(OutputSpacing, double);
00075 
00077 
00079   vtkSetVector6Macro(OutputWholeExtent, int);
00080   vtkGetVector6Macro(OutputWholeExtent, int);
00082 
00084   virtual void ReportReferences(vtkGarbageCollector*);
00085 
00086 protected:
00087   vtkImageStencilSource();
00088   ~vtkImageStencilSource();
00089 
00090   virtual int RequestInformation(vtkInformation *, vtkInformationVector **,
00091                                  vtkInformationVector *);
00092 
00093   vtkImageData *InformationInput;
00094 
00095   int OutputWholeExtent[6];
00096   double OutputOrigin[3];
00097   double OutputSpacing[3];
00098 
00099 private:
00100   vtkImageStencilSource(const vtkImageStencilSource&);  // Not implemented.
00101   void operator=(const vtkImageStencilSource&);  // Not implemented.
00102 };
00103 
00104 #endif
00105