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:
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 
60 
63 
65 
70 
71 protected:
74 
81 
82  // see algorithm for more info
84 
85  // Adjust the coordinates of all 2D actors to fit new window size
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.
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
vtkImageData.h
vtkRenderLargeImage::~vtkRenderLargeImage
~vtkRenderLargeImage()
vtkGetObjectMacro
#define vtkGetObjectMacro(name, type)
Definition: vtkSetGet.h:232
vtkRenderLargeImage::SetInput
virtual void SetInput(vtkRenderer *)
vtkAlgorithm
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:62
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkgl::x
GLint GLint GLint GLint GLint x
Definition: vtkgl.h:11318
vtkRenderLargeImage::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkRenderLargeImage::New
static vtkRenderLargeImage * New()
vtkAlgorithm.h
vtkRenderLargeImage::Magnification
int Magnification
Definition: vtkRenderLargeImage.h:75
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkCollection
create and manipulate unsorted lists of objects
Definition: vtkCollection.h:53
VTKFILTERSHYBRID_EXPORT
#define VTKFILTERSHYBRID_EXPORT
Definition: vtkFiltersHybridModule.h:15
vtkRenderLargeImage::RequestData
void RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkRenderLargeImage::Shift2DActors
void Shift2DActors(int x, int y)
vtkRenderLargeImage::RequestInformation
void RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:45
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkRenderLargeImage::FillOutputPortInformation
virtual int FillOutputPortInformation(int port, vtkInformation *info)
vtkRenderLargeImage::StoredData
vtkRenderLargeImage2DHelperClass * StoredData
Definition: vtkRenderLargeImage.h:93
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkRenderLargeImage::Restore2DActors
void Restore2DActors()
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkFiltersHybridModule.h
vtkgl::y
GLint GLint GLint GLint GLint GLint y
Definition: vtkgl.h:11318
vtkRenderLargeImage::GetOutput
vtkImageData * GetOutput()
vtkRenderer
abstract specification for renderers
Definition: vtkRenderer.h:64
vtkRenderLargeImage::Input
vtkRenderer * Input
Definition: vtkRenderLargeImage.h:76
vtkActor2DCollection
a list of 2D actors
Definition: vtkActor2DCollection.h:38
vtkRenderLargeImage
Use tiling to generate a large rendering.
Definition: vtkRenderLargeImage.h:40
vtkRenderLargeImage::ProcessRequest
virtual int ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkRenderLargeImage::Rescale2DActors
void Rescale2DActors()
vtkRenderLargeImage::vtkRenderLargeImage
vtkRenderLargeImage()