Rendering/vtkWindowToImageFilter.h Source File

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