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 =========================================================================*/
27 #ifndef vtkRenderLargeImage_h
28 #define vtkRenderLargeImage_h
29 
30 #include "vtkFiltersHybridModule.h" // For export macro
31 #include "vtkAlgorithm.h"
32 #include "vtkImageData.h" // makes things a bit easier
33 
34 class vtkRenderer;
36 class vtkCollection;
37 class vtkRenderLargeImage2DHelperClass;
38 
40 {
41 public:
42  static vtkRenderLargeImage *New();
44  void PrintSelf(ostream& os, vtkIndent indent);
45 
47 
48  vtkSetMacro(Magnification,int);
49  vtkGetMacro(Magnification,int);
51 
53  virtual void SetInput(vtkRenderer*);
54 
56 
58  vtkGetObjectMacro(Input,vtkRenderer);
60 
62  vtkImageData* GetOutput();
63 
65 
66  virtual int ProcessRequest(vtkInformation*,
70 
71 protected:
74 
77  void RequestData(vtkInformation *,
79  void RequestInformation (vtkInformation *,
81 
82  // see algorithm for more info
84 
85  // Adjust the coordinates of all 2D actors to fit new window size
86  void Rescale2DActors();
87  // Shift each actor according to the tile we are rendering
88  void Shift2DActors(int x, int y);
89  // put them all back to their previous state when finished.
90  void Restore2DActors();
91  // 2D Actors need to be rescaled and shifted about for each tile
92  // use this helper class to make life easier.
93  vtkRenderLargeImage2DHelperClass *StoredData;
94 
95 private:
96  vtkRenderLargeImage(const vtkRenderLargeImage&); // Not implemented.
97  void operator=(const vtkRenderLargeImage&); // Not implemented.
98 };
99 
100 #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)
abstract specification for renderers
Definition: vtkRenderer.h:62
vtkRenderLargeImage2DHelperClass * StoredData
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:61
virtual int FillOutputPortInformation(int port, vtkInformation *info)
a simple class to control print indentation
Definition: vtkIndent.h:38
#define VTKFILTERSHYBRID_EXPORT
topologically and geometrically regular array of data
Definition: vtkImageData.h:44
create and manipulate unsorted lists of objects
Definition: vtkCollection.h:52
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)