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