VTK  9.3.1
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
13 #ifndef vtkRenderLargeImage_h
14 #define vtkRenderLargeImage_h
15 
16 #include "vtkAlgorithm.h"
17 #include "vtkFiltersHybridModule.h" // For export macro
18 #include "vtkImageData.h" // makes things a bit easier
19 
20 VTK_ABI_NAMESPACE_BEGIN
21 class vtkRenderer;
23 class vtkCollection;
24 class vtkRenderLargeImage2DHelperClass;
25 
26 class VTKFILTERSHYBRID_EXPORT vtkRenderLargeImage : public vtkAlgorithm
27 {
28 public:
29  static vtkRenderLargeImage* New();
31  void PrintSelf(ostream& os, vtkIndent indent) override;
32 
34 
37  vtkSetMacro(Magnification, int);
38  vtkGetMacro(Magnification, int);
40 
44  virtual void SetInput(vtkRenderer*);
45 
47 
50  vtkGetObjectMacro(Input, vtkRenderer);
52 
56  vtkImageData* GetOutput();
57 
63 
64 protected:
66  ~vtkRenderLargeImage() override;
67 
71  void RequestInformation(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
72 
73  // see algorithm for more info
75 
76  // Adjust the coordinates of all 2D actors to fit new window size
77  void Rescale2DActors();
78  // Shift each actor according to the tile we are rendering
79  void Shift2DActors(int x, int y);
80  // put them all back to their previous state when finished.
81  void Restore2DActors();
82  // 2D Actors need to be rescaled and shifted about for each tile
83  // use this helper class to make life easier.
84  vtkRenderLargeImage2DHelperClass* StoredData;
85 
86 private:
88  void operator=(const vtkRenderLargeImage&) = delete;
89 };
90 
91 VTK_ABI_NAMESPACE_END
92 #endif
Use tiling to generate a large rendering.
a list of 2D actors
Store vtkAlgorithm input/output information.
abstract specification for renderers
Definition: vtkRenderer.h:61
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int vtkTypeBool
Definition: vtkABI.h:64
virtual vtkTypeBool ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
Upstream/Downstream requests form the generalized interface through which executives invoke a algorit...
vtkRenderLargeImage2DHelperClass * StoredData
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:51
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Fill the output port information objects for this algorithm.
a simple class to control print indentation
Definition: vtkIndent.h:28
topologically and geometrically regular array of data
Definition: vtkImageData.h:42
create and manipulate ordered lists of objects
Definition: vtkCollection.h:44
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()