VTK
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 =========================================================================*/
28 #ifndef vtkRenderLargeImage_h
29 #define vtkRenderLargeImage_h
30 
31 #include "vtkFiltersHybridModule.h" // For export macro
32 #include "vtkAlgorithm.h"
33 #include "vtkImageData.h" // makes things a bit easier
34 
35 class vtkRenderer;
37 class vtkCollection;
38 class vtkRenderLargeImage2DHelperClass;
39 
40 class VTKFILTERSHYBRID_EXPORT vtkRenderLargeImage : public vtkAlgorithm
41 {
42 public:
43  static vtkRenderLargeImage *New();
45  void PrintSelf(ostream& os, vtkIndent indent);
46 
48 
51  vtkSetMacro(Magnification,int);
52  vtkGetMacro(Magnification,int);
54 
58  virtual void SetInput(vtkRenderer*);
59 
61 
64  vtkGetObjectMacro(Input,vtkRenderer);
66 
70  vtkImageData* GetOutput();
71 
75  virtual int ProcessRequest(vtkInformation*,
78 
79 protected:
82 
85  void RequestData(vtkInformation *,
87  void RequestInformation (vtkInformation *,
89 
90  // see algorithm for more info
92 
93  // Adjust the coordinates of all 2D actors to fit new window size
94  void Rescale2DActors();
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.
98  void Restore2DActors();
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 
103 private:
104  vtkRenderLargeImage(const vtkRenderLargeImage&) VTK_DELETE_FUNCTION;
105  void operator=(const vtkRenderLargeImage&) VTK_DELETE_FUNCTION;
106 };
107 
108 #endif
Use tiling to generate a large rendering.
a list of 2D actors
Store vtkAlgorithm input/output information.
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
Upstream/Downstream requests form the generalized interface through which executives invoke a algorit...
abstract specification for renderers
Definition: vtkRenderer.h:63
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkRenderLargeImage2DHelperClass * StoredData
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:59
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:39
topologically and geometrically regular array of data
Definition: vtkImageData.h:45
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
create and manipulate unsorted lists of objects
Definition: vtkCollection.h:51
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()