VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Rendering
vtkDistanceToCamera.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkDistanceToCamera.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
=========================================================================*/
15
/*-------------------------------------------------------------------------
16
Copyright 2008 Sandia Corporation.
17
Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18
the U.S. Government retains certain rights in this software.
19
-------------------------------------------------------------------------*/
31
#ifndef __vtkDistanceToCamera_h
32
#define __vtkDistanceToCamera_h
33
34
#include "
vtkPolyDataAlgorithm.h
"
35
36
class
vtkRenderer
;
37
38
class
VTK_RENDERING_EXPORT
vtkDistanceToCamera
:
public
vtkPolyDataAlgorithm
39
{
40
public
:
41
static
vtkDistanceToCamera
*
New
();
42
vtkTypeMacro(
vtkDistanceToCamera
,
vtkPolyDataAlgorithm
);
43
void
PrintSelf
(ostream& os,
vtkIndent
indent);
44
46
47
void
SetRenderer(
vtkRenderer
* ren);
48
vtkGetObjectMacro(Renderer,
vtkRenderer
);
50
52
54
vtkSetMacro(ScreenSize,
double
);
55
vtkGetMacro(ScreenSize,
double
);
57
59
60
vtkSetMacro(Scaling,
bool
);
61
vtkGetMacro(Scaling,
bool
);
62
vtkBooleanMacro(Scaling,
bool
);
64
66
virtual
unsigned
long
GetMTime
();
67
68
protected
:
69
vtkDistanceToCamera
();
70
~
vtkDistanceToCamera
();
71
72
int
RequestData
(
73
vtkInformation
*,
74
vtkInformationVector
**,
75
vtkInformationVector
*);
76
77
vtkRenderer
*
Renderer
;
78
double
ScreenSize
;
79
bool
Scaling
;
80
int
LastRendererSize[2];
81
double
LastCameraPosition[3];
82
double
LastCameraFocalPoint[3];
83
double
LastCameraViewUp[3];
84
double
LastCameraParallelScale
;
85
86
private
:
87
vtkDistanceToCamera
(
const
vtkDistanceToCamera
&);
// Not implemented.
88
void
operator=(
const
vtkDistanceToCamera
&);
// Not implemented.
89
};
90
91
#endif
Generated on Thu Mar 13 2014 08:10:29 for VTK by
1.8.1.2