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

dox/Rendering/vtkWindowToImageFilter.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkWindowToImageFilter.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 =========================================================================*/ 00052 #ifndef __vtkWindowToImageFilter_h 00053 #define __vtkWindowToImageFilter_h 00054 00055 #include "vtkImageSource.h" 00056 00057 class vtkWindow; 00058 00059 class VTK_RENDERING_EXPORT vtkWindowToImageFilter : public vtkImageSource 00060 { 00061 public: 00062 static vtkWindowToImageFilter *New(); 00063 00064 vtkTypeRevisionMacro(vtkWindowToImageFilter,vtkImageSource); 00065 void PrintSelf(ostream& os, vtkIndent indent); 00066 00068 void SetInput(vtkWindow *input); 00069 00071 00073 vtkGetObjectMacro(Input,vtkWindow); 00075 00077 00078 vtkSetClampMacro(Magnification,int,1,2048); 00079 vtkGetMacro(Magnification,int); 00080 // Description: 00081 // Set/Get the flag that determines which buffer to read from. 00082 // The default is to read from the front buffer. 00083 vtkBooleanMacro(ReadFrontBuffer, int); 00084 vtkGetMacro(ReadFrontBuffer, int); 00085 vtkSetMacro(ReadFrontBuffer, int); 00087 00088 protected: 00089 vtkWindowToImageFilter(); 00090 ~vtkWindowToImageFilter(); 00091 00092 // vtkWindow is not a vtkDataObject, so we need our own ivar. 00093 vtkWindow *Input; 00094 int Magnification; 00095 int ReadFrontBuffer; 00096 void ExecuteInformation(); 00097 void ExecuteData(vtkDataObject *data); 00098 private: 00099 vtkWindowToImageFilter(const vtkWindowToImageFilter&); // Not implemented. 00100 void operator=(const vtkWindowToImageFilter&); // Not implemented. 00101 }; 00102 00103 #endif