VTK  9.2.5
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 =========================================================================*/
54 #ifndef vtkRenderLargeImage_h
55 #define vtkRenderLargeImage_h
56 
57 #include "vtkAlgorithm.h"
58 #include "vtkFiltersHybridModule.h" // For export macro
59 #include "vtkImageData.h" // makes things a bit easier
60 
61 class vtkRenderer;
63 class vtkCollection;
64 class vtkRenderLargeImage2DHelperClass;
65 
66 class VTKFILTERSHYBRID_EXPORT vtkRenderLargeImage : public vtkAlgorithm
67 {
68 public:
71  void PrintSelf(ostream& os, vtkIndent indent) override;
72 
74 
77  vtkSetMacro(Magnification, int);
78  vtkGetMacro(Magnification, int);
80 
84  virtual void SetInput(vtkRenderer*);
85 
87 
90  vtkGetObjectMacro(Input, vtkRenderer);
92 
97 
103 
104 protected:
107 
112 
113  // see algorithm for more info
115 
116  // Adjust the coordinates of all 2D actors to fit new window size
118  // Shift each actor according to the tile we are rendering
119  void Shift2DActors(int x, int y);
120  // put them all back to their previous state when finished.
122  // 2D Actors need to be rescaled and shifted about for each tile
123  // use this helper class to make life easier.
124  vtkRenderLargeImage2DHelperClass* StoredData;
125 
126 private:
127  vtkRenderLargeImage(const vtkRenderLargeImage&) = delete;
128  void operator=(const vtkRenderLargeImage&) = delete;
129 };
130 
131 #endif
a list of 2D actors
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:122
create and manipulate ordered lists of objects
Definition: vtkCollection.h:56
topologically and geometrically regular array of data
Definition: vtkImageData.h:163
a simple class to control print indentation
Definition: vtkIndent.h:119
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:182
@ info
Definition: vtkX3D.h:382
@ port
Definition: vtkX3D.h:453
int vtkTypeBool
Definition: vtkABI.h:69