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

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 =========================================================================*/
00067 #ifndef __vtkWindowToImageFilter_h
00068 #define __vtkWindowToImageFilter_h
00069 
00070 #include "vtkImageSource.h"
00071 
00072 class vtkWindow;
00073 
00074 class VTK_RENDERING_EXPORT vtkWindowToImageFilter : public vtkImageSource
00075 {
00076 public:
00077   static vtkWindowToImageFilter *New();
00078 
00079   vtkTypeRevisionMacro(vtkWindowToImageFilter,vtkImageSource);
00080   void PrintSelf(ostream& os, vtkIndent indent);   
00081 
00083   void SetInput(vtkWindow *input);
00084 
00086 
00088   vtkGetObjectMacro(Input,vtkWindow);
00090 
00092 
00093   vtkSetClampMacro(Magnification,int,1,2048);
00094   vtkGetMacro(Magnification,int);
00095   // Description:
00096   // Set/Get the flag that determines which buffer to read from.
00097   // The default is to read from the front buffer.   
00098   vtkBooleanMacro(ReadFrontBuffer, int);
00099   vtkGetMacro(ReadFrontBuffer, int);
00100   vtkSetMacro(ReadFrontBuffer, int);
00102   
00103 protected:
00104   vtkWindowToImageFilter();
00105   ~vtkWindowToImageFilter();
00106 
00107   // vtkWindow is not a vtkDataObject, so we need our own ivar.
00108   vtkWindow *Input;
00109   int Magnification;
00110   int ReadFrontBuffer;
00111   void ExecuteInformation();
00112   void ExecuteData(vtkDataObject *data);
00113 private:
00114   vtkWindowToImageFilter(const vtkWindowToImageFilter&);  // Not implemented.
00115   void operator=(const vtkWindowToImageFilter&);  // Not implemented.
00116 };
00117 
00118 #endif