#include <vtkWindowToImageFilter.h>
Inheritance diagram for vtkWindowToImageFilter:
vtkWindowToImageFilter provides methods needed to read the data in a vtkWindow and use it as input to the imaging pipeline. This is useful for saving an image to a file for example. Use this filter to convert RenderWindows or ImageWindows to an image format.
To force an update of the output image, call vtkWindowToImageFilter's Modified method after rendering to the window.
In VTK versions 4 and later, this filter is part of the canonical way to output an image of a window to a file (replacing the obsolete SaveImageAsPPM method for vtkRenderWindows that existed in 3.2 and earlier). Connect this filter to the output of the window, and filter's output to a writer such as vtkPNGWriter.
Definition at line 63 of file vtkWindowToImageFilter.h.
Public Types | |
typedef vtkImageSource | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
void | SetInput (vtkWindow *input) |
virtual vtkWindow * | GetInput () |
virtual void | SetMagnification (int) |
virtual int | GetMagnification () |
virtual void | ReadFrontBufferOn () |
virtual void | ReadFrontBufferOff () |
virtual int | GetReadFrontBuffer () |
virtual void | SetReadFrontBuffer (int) |
Static Public Member Functions | |
vtkWindowToImageFilter * | New () |
int | IsTypeOf (const char *type) |
vtkWindowToImageFilter * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
vtkWindowToImageFilter () | |
~vtkWindowToImageFilter () | |
void | ExecuteInformation () |
void | ExecuteData (vtkDataObject *data) |
Protected Attributes | |
vtkWindow * | Input |
int | Magnification |
int | ReadFrontBuffer |
|
Reimplemented from vtkImageSource. Definition at line 68 of file vtkWindowToImageFilter.h. |
|
|
|
|
|
Create an object with Debug turned off, modified time initialized to zero, and reference counting on. Reimplemented from vtkObject.
|
|
Reimplemented from vtkImageSource.
|
|
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h. Reimplemented from vtkImageSource.
|
|
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h. Reimplemented from vtkImageSource.
|
|
Reimplemented from vtkImageSource.
|
|
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes. Reimplemented from vtkImageSource.
|
|
Indicates what renderer to get the pixel data from. |
|
Returns which renderer is being used as the source for the pixel data. |
|
The magnification of the current render window |
|
The magnification of the current render window |
|
The magnification of the current render window |
|
The magnification of the current render window |
|
The magnification of the current render window |
|
The magnification of the current render window |
|
Reimplemented from vtkSource.
|
|
|
|
Definition at line 97 of file vtkWindowToImageFilter.h. |
|
Definition at line 98 of file vtkWindowToImageFilter.h. |
|
Definition at line 99 of file vtkWindowToImageFilter.h. |