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

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 =========================================================================*/
00064 #ifndef __vtkWindowToImageFilter_h
00065 #define __vtkWindowToImageFilter_h
00066 
00067 #include "vtkImageAlgorithm.h"
00068 
00069 class vtkWindow;
00070 
00071 class VTK_RENDERING_EXPORT vtkWindowToImageFilter : public vtkImageAlgorithm
00072 {
00073 public:
00074   static vtkWindowToImageFilter *New();
00075 
00076   vtkTypeRevisionMacro(vtkWindowToImageFilter,vtkImageAlgorithm);
00077   void PrintSelf(ostream& os, vtkIndent indent);   
00078 
00080   void SetInput(vtkWindow *input);
00081 
00083 
00085   vtkGetObjectMacro(Input,vtkWindow);
00087 
00089 
00090   vtkSetClampMacro(Magnification,int,1,2048);
00091   vtkGetMacro(Magnification,int);
00093 
00095 
00097   vtkBooleanMacro(ReadFrontBuffer, int);
00098   vtkGetMacro(ReadFrontBuffer, int);
00099   vtkSetMacro(ReadFrontBuffer, int);
00101   
00103 
00105   vtkBooleanMacro(ShouldRerender, int);
00106   vtkSetMacro(ShouldRerender, int);
00107   vtkGetMacro(ShouldRerender, int);
00109   
00111 
00113   vtkSetVector4Macro(Viewport,double);
00114   vtkGetVectorMacro(Viewport,double,4);
00116 
00117 protected:
00118   vtkWindowToImageFilter();
00119   ~vtkWindowToImageFilter();
00120 
00121   // vtkWindow is not a vtkDataObject, so we need our own ivar.
00122   vtkWindow *Input;
00123   int Magnification;
00124   int ReadFrontBuffer;
00125   int ShouldRerender;
00126   double Viewport[4];
00127 
00128   virtual void ExecuteInformation(vtkInformation *, 
00129                                   vtkInformationVector *, 
00130                                   vtkInformationVector *);
00131 
00132   void ExecuteData(vtkDataObject *data);
00133 
00134 private:
00135   vtkWindowToImageFilter(const vtkWindowToImageFilter&);  // Not implemented.
00136   void operator=(const vtkWindowToImageFilter&);  // Not implemented.
00137 };
00138 
00139 #endif