VTK  9.1.0
vtkRenderLargeImage.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkRenderLargeImage.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
31#ifndef vtkRenderLargeImage_h
32#define vtkRenderLargeImage_h
33
34#include "vtkAlgorithm.h"
35#include "vtkFiltersHybridModule.h" // For export macro
36#include "vtkImageData.h" // makes things a bit easier
37
38class vtkRenderer;
40class vtkCollection;
41class vtkRenderLargeImage2DHelperClass;
42
43class VTKFILTERSHYBRID_EXPORT vtkRenderLargeImage : public vtkAlgorithm
44{
45public:
48 void PrintSelf(ostream& os, vtkIndent indent) override;
49
51
54 vtkSetMacro(Magnification, int);
55 vtkGetMacro(Magnification, int);
57
61 virtual void SetInput(vtkRenderer*);
62
64
67 vtkGetObjectMacro(Input, vtkRenderer);
69
74
80
81protected:
84
89
90 // see algorithm for more info
92
93 // Adjust the coordinates of all 2D actors to fit new window size
95 // Shift each actor according to the tile we are rendering
96 void Shift2DActors(int x, int y);
97 // put them all back to their previous state when finished.
99 // 2D Actors need to be rescaled and shifted about for each tile
100 // use this helper class to make life easier.
101 vtkRenderLargeImage2DHelperClass* StoredData;
102
103private:
105 void operator=(const vtkRenderLargeImage&) = delete;
106};
107
108#endif
a list of 2D actors
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:64
create and manipulate ordered lists of objects
Definition: vtkCollection.h:53
topologically and geometrically regular array of data
Definition: vtkImageData.h:57
a simple class to control print indentation
Definition: vtkIndent.h:43
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Use tiling to generate a large rendering.
void RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkRenderLargeImage2DHelperClass * StoredData
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkRenderLargeImage() override
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
vtkImageData * GetOutput()
Get the output data object for a port on this algorithm.
void RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
virtual void SetInput(vtkRenderer *)
Indicates what renderer to get the pixel data from.
void Shift2DActors(int x, int y)
static vtkRenderLargeImage * New()
vtkTypeBool ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
see vtkAlgorithm for details
abstract specification for renderers
Definition: vtkRenderer.h:73
@ info
Definition: vtkX3D.h:382
@ port
Definition: vtkX3D.h:453
int vtkTypeBool
Definition: vtkABI.h:69