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 Language: C++ 00006 00007 Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 00008 All rights reserved. 00009 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00010 00011 This software is distributed WITHOUT ANY WARRANTY; without even 00012 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00013 PURPOSE. See the above copyright notice for more information. 00014 00015 =========================================================================*/ 00056 #ifndef __vtkWindowToImageFilter_h 00057 #define __vtkWindowToImageFilter_h 00058 00059 #include "vtkImageSource.h" 00060 00061 class vtkWindow; 00062 00063 class VTK_RENDERING_EXPORT vtkWindowToImageFilter : public vtkImageSource 00064 { 00065 public: 00066 static vtkWindowToImageFilter *New(); 00067 00068 vtkTypeRevisionMacro(vtkWindowToImageFilter,vtkImageSource); 00069 void PrintSelf(ostream& os, vtkIndent indent); 00070 00072 void SetInput(vtkWindow *input); 00073 00075 00077 vtkGetObjectMacro(Input,vtkWindow); 00079 00081 00082 vtkSetClampMacro(Magnification,int,1,2048); 00083 vtkGetMacro(Magnification,int); 00084 // Description: 00085 // Set/Get the flag that determines which buffer to read from. 00086 // The default is to read from the front buffer. 00087 vtkBooleanMacro(ReadFrontBuffer, int); 00088 vtkGetMacro(ReadFrontBuffer, int); 00089 vtkSetMacro(ReadFrontBuffer, int); 00091 00092 protected: 00093 vtkWindowToImageFilter(); 00094 ~vtkWindowToImageFilter(); 00095 00096 // vtkWindow is not a vtkDataObject, so we need our own ivar. 00097 vtkWindow *Input; 00098 int Magnification; 00099 int ReadFrontBuffer; 00100 void ExecuteInformation(); 00101 void ExecuteData(vtkDataObject *data); 00102 private: 00103 vtkWindowToImageFilter(const vtkWindowToImageFilter&); // Not implemented. 00104 void operator=(const vtkWindowToImageFilter&); // Not implemented. 00105 }; 00106 00107 #endif