VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Hybrid
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
;
34
class
vtkActor2DCollection
;
35
class
vtkCollection
;
36
class
vtkRenderLargeImage2DHelperClass;
37
38
class
VTK_HYBRID_EXPORT
vtkRenderLargeImage
:
public
vtkAlgorithm
39
{
40
public
:
41
static
vtkRenderLargeImage
*
New
();
42
vtkTypeMacro(
vtkRenderLargeImage
,
vtkAlgorithm
);
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
*,
66
vtkInformationVector
**,
67
vtkInformationVector
*);
69
70
protected
:
71
vtkRenderLargeImage
();
72
~
vtkRenderLargeImage
();
73
74
int
Magnification
;
75
vtkRenderer
*
Input
;
76
void
RequestData(
vtkInformation
*,
77
vtkInformationVector
**,
vtkInformationVector
*);
78
void
RequestInformation (
vtkInformation
*,
79
vtkInformationVector
**,
vtkInformationVector
*);
80
81
// see algorithm for more info
82
virtual
int
FillOutputPortInformation
(
int
port
,
vtkInformation
*
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
Generated on Sun Sep 9 2012 13:03:39 for VTK by
1.8.1.2