VTK  9.3.20240329
vtkRenderLargeImage.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
42 #ifndef vtkRenderLargeImage_h
43 #define vtkRenderLargeImage_h
44 
45 #include "vtkAlgorithm.h"
46 #include "vtkFiltersHybridModule.h" // For export macro
47 #include "vtkImageData.h" // makes things a bit easier
48 
49 VTK_ABI_NAMESPACE_BEGIN
50 class vtkRenderer;
52 class vtkCollection;
53 class vtkRenderLargeImage2DHelperClass;
54 
55 class VTKFILTERSHYBRID_EXPORT vtkRenderLargeImage : public vtkAlgorithm
56 {
57 public:
60  void PrintSelf(ostream& os, vtkIndent indent) override;
61 
63 
66  vtkSetMacro(Magnification, int);
67  vtkGetMacro(Magnification, int);
69 
73  virtual void SetInput(vtkRenderer*);
74 
76 
79  vtkGetObjectMacro(Input, vtkRenderer);
81 
86 
92 
93 protected:
96 
101 
102  // see algorithm for more info
104 
105  // Adjust the coordinates of all 2D actors to fit new window size
107  // Shift each actor according to the tile we are rendering
108  void Shift2DActors(int x, int y);
109  // put them all back to their previous state when finished.
111  // 2D Actors need to be rescaled and shifted about for each tile
112  // use this helper class to make life easier.
113  vtkRenderLargeImage2DHelperClass* StoredData;
114 
115 private:
116  vtkRenderLargeImage(const vtkRenderLargeImage&) = delete;
117  void operator=(const vtkRenderLargeImage&) = delete;
118 };
119 
120 VTK_ABI_NAMESPACE_END
121 #endif
a list of 2D actors
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:162
create and manipulate ordered lists of objects
Definition: vtkCollection.h:46
topologically and geometrically regular array of data
Definition: vtkImageData.h:156
a simple class to control print indentation
Definition: vtkIndent.h:108
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
static vtkRenderLargeImage * New()
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)
vtkTypeBool ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
see vtkAlgorithm for details
abstract specification for renderers
Definition: vtkRenderer.h:172
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447
int vtkTypeBool
Definition: vtkABI.h:64