VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Interaction
Widgets
vtkCameraRepresentation.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkCameraRepresentation.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
=========================================================================*/
35
#ifndef __vtkCameraRepresentation_h
36
#define __vtkCameraRepresentation_h
37
38
#include "vtkInteractionWidgetsModule.h"
// For export macro
39
#include "
vtkBorderRepresentation.h
"
40
41
class
vtkRenderer
;
42
class
vtkRenderWindowInteractor
;
43
class
vtkCamera
;
44
class
vtkCameraInterpolator
;
45
class
vtkPoints
;
46
class
vtkPolyData
;
47
class
vtkTransformPolyDataFilter
;
48
class
vtkPolyDataMapper2D
;
49
class
vtkProperty2D
;
50
class
vtkActor2D
;
51
52
class
VTKINTERACTIONWIDGETS_EXPORT
vtkCameraRepresentation
:
public
vtkBorderRepresentation
53
{
54
public
:
56
static
vtkCameraRepresentation
*
New
();
57
59
60
vtkTypeMacro(
vtkCameraRepresentation
,
vtkBorderRepresentation
);
61
void
PrintSelf
(ostream& os,
vtkIndent
indent);
63
65
67
void
SetCamera(
vtkCamera
*camera);
68
vtkGetObjectMacro(Camera,
vtkCamera
);
70
72
76
void
SetInterpolator(
vtkCameraInterpolator
*camInt);
77
vtkGetObjectMacro(Interpolator,
vtkCameraInterpolator
);
79
81
82
vtkSetClampMacro(NumberOfFrames,
int
,1,
VTK_LARGE_INTEGER
);
83
vtkGetMacro(NumberOfFrames,
int
);
85
87
89
vtkGetObjectMacro(Property,
vtkProperty2D
);
91
93
98
void
AddCameraToPath();
99
void
AnimatePath(
vtkRenderWindowInteractor
*rwi);
100
void
InitializePath();
102
104
105
virtual
void
BuildRepresentation
();
106
virtual
void
GetSize
(
double
size
[2])
107
{size[0]=6.0; size[1]=2.0;}
109
111
113
virtual
void
GetActors2D
(
vtkPropCollection
*);
114
virtual
void
ReleaseGraphicsResources
(
vtkWindow
*);
115
virtual
int
RenderOverlay
(
vtkViewport
*);
116
virtual
int
RenderOpaqueGeometry
(
vtkViewport
*);
117
virtual
int
RenderTranslucentPolygonalGeometry
(
vtkViewport
*);
118
virtual
int
HasTranslucentPolygonalGeometry
();
120
121
protected
:
122
vtkCameraRepresentation
();
123
~
vtkCameraRepresentation
();
124
125
// the camera and the interpolator
126
vtkCamera
*
Camera
;
127
vtkCameraInterpolator
*
Interpolator
;
128
int
NumberOfFrames
;
129
double
CurrentTime
;
130
131
// representation of the camera
132
vtkPoints
*
Points
;
133
vtkPolyData
*
PolyData
;
134
vtkTransformPolyDataFilter
*
TransformFilter
;
135
vtkPolyDataMapper2D
*
Mapper
;
136
vtkProperty2D
*
Property
;
137
vtkActor2D
*
Actor
;
138
139
private
:
140
vtkCameraRepresentation
(
const
vtkCameraRepresentation
&);
//Not implemented
141
void
operator=(
const
vtkCameraRepresentation
&);
//Not implemented
142
};
143
144
#endif
Generated on Thu May 24 2012 22:22:27 for VTK by
1.8.1