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 "vtkAlgorithm.h"
31 #include "vtkImageData.h" // makes things a bit easier
32 
33 class vtkRenderer;
35 class vtkCollection;
36 class vtkRenderLargeImage2DHelperClass;
37 
39 {
40 public:
41  static vtkRenderLargeImage *New();
43  void PrintSelf(ostream& os, vtkIndent indent);
44 
46 
47  vtkSetMacro(Magnification,int);
48  vtkGetMacro(Magnification,int);
50 
52  virtual void SetInput(vtkRenderer*);
53 
55 
57  vtkGetObjectMacro(Input,vtkRenderer);
59 
61  vtkImageData* GetOutput();
62 
64 
65  virtual int ProcessRequest(vtkInformation*,
69 
70 protected:
73 
76  void RequestData(vtkInformation *,
78  void RequestInformation (vtkInformation *,
80 
81  // see algorithm for more info
83 
84  // Adjust the coordinates of all 2D actors to fit new window size
85  void Rescale2DActors();
86  // Shift each actor according to the tile we are rendering
87  void Shift2DActors(int x, int y);
88  // put them all back to their previous state when finished.
89  void Restore2DActors();
90  // 2D Actors need to be rescaled and shifted about for each tile
91  // use this helper class to make life easier.
92  vtkRenderLargeImage2DHelperClass *StoredData;
93 
94 private:
95  vtkRenderLargeImage(const vtkRenderLargeImage&); // Not implemented.
96  void operator=(const vtkRenderLargeImage&); // Not implemented.
97 };
98 
99 #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:69
vtkRenderLargeImage2DHelperClass * StoredData
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:59
virtual int FillOutputPortInformation(int port, vtkInformation *info)
a simple class to control print indentation
Definition: vtkIndent.h:37
topologically and geometrically regular array of data
Definition: vtkImageData.h:43
create and manipulate unsorted lists of objects
Definition: vtkCollection.h:51
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
#define VTK_HYBRID_EXPORT
void PrintSelf(ostream &os, vtkIndent indent)