VTK
dox
build
vtk6-aGN9bD
vtk6-6.3.0+dfsg1
Filters
Modeling
vtkProjectedTexture.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkProjectedTexture.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
=========================================================================*/
31
#ifndef vtkProjectedTexture_h
32
#define vtkProjectedTexture_h
33
34
#include "
vtkFiltersModelingModule.h
"
// For export macro
35
#include "
vtkDataSetAlgorithm.h
"
36
37
#define VTK_PROJECTED_TEXTURE_USE_PINHOLE 0
38
#define VTK_PROJECTED_TEXTURE_USE_TWO_MIRRORS 1
39
40
class
VTKFILTERSMODELING_EXPORT
vtkProjectedTexture
:
public
vtkDataSetAlgorithm
41
{
42
public
:
43
static
vtkProjectedTexture
*
New
();
44
vtkTypeMacro
(
vtkProjectedTexture
,
vtkDataSetAlgorithm
);
45
void
PrintSelf
(ostream& os,
vtkIndent
indent);
46
48
49
vtkSetVector3Macro
(Position,
double
);
50
vtkGetVectorMacro
(Position,
double
,3);
52
54
56
void
SetFocalPoint(
double
focalPoint[3]);
57
void
SetFocalPoint(
double
x,
double
y,
double
z);
58
vtkGetVectorMacro
(FocalPoint,
double
,3);
60
62
64
vtkSetMacro
(CameraMode,
int
);
65
vtkGetMacro
(CameraMode,
int
);
66
void
SetCameraModeToPinhole
() {this->SetCameraMode(
VTK_PROJECTED_TEXTURE_USE_PINHOLE
);}
67
void
SetCameraModeToTwoMirror
() {this->SetCameraMode(
VTK_PROJECTED_TEXTURE_USE_TWO_MIRRORS
);}
69
71
72
vtkSetMacro
(MirrorSeparation,
double
);
73
vtkGetMacro
(MirrorSeparation,
double
);
75
77
78
vtkGetVectorMacro
(Orientation,
double
,3);
80
82
83
vtkSetVector3Macro
(Up,
double
);
84
vtkGetVectorMacro
(Up,
double
,3);
86
88
94
vtkSetVector3Macro
(AspectRatio,
double
);
95
vtkGetVectorMacro
(AspectRatio,
double
,3);
97
99
100
vtkSetVector2Macro
(SRange,
double
);
101
vtkGetVectorMacro
(SRange,
double
,2);
103
105
106
vtkSetVector2Macro
(TRange,
double
);
107
vtkGetVectorMacro
(TRange,
double
,2);
109
110
protected
:
111
vtkProjectedTexture
();
112
~vtkProjectedTexture
() {}
113
114
int
RequestData
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*);
115
void
ComputeNormal();
116
117
int
CameraMode
;
118
119
double
Position[3];
120
double
Orientation[3];
121
double
FocalPoint[3];
122
double
Up[3];
123
double
MirrorSeparation
;
124
double
AspectRatio[3];
125
double
SRange[2];
126
double
TRange[2];
127
private
:
128
vtkProjectedTexture
(
const
vtkProjectedTexture
&);
// Not implemented.
129
void
operator=(
const
vtkProjectedTexture
&);
// Not implemented.
130
};
131
132
#endif
133
vtkProjectedTexture
assign texture coordinates for a projected texture
Definition:
vtkProjectedTexture.h:40
vtkProjectedTexture::CameraMode
int CameraMode
Definition:
vtkProjectedTexture.h:117
vtkInformation
Store vtkAlgorithm input/output information.
Definition:
vtkInformation.h:85
vtkFiltersModelingModule.h
vtkGetMacro
#define vtkGetMacro(name, type)
Definition:
vtkSetGet.h:93
VTKFILTERSMODELING_EXPORT
#define VTKFILTERSMODELING_EXPORT
Definition:
vtkFiltersModelingModule.h:15
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition:
vtkSetGet.h:642
vtkProjectedTexture::SetCameraModeToTwoMirror
void SetCameraModeToTwoMirror()
Definition:
vtkProjectedTexture.h:67
vtkProjectedTexture::MirrorSeparation
double MirrorSeparation
Definition:
vtkProjectedTexture.h:123
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:38
vtkDataSetAlgorithm::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Definition:
vtkDataSetAlgorithm.h:159
vtkProjectedTexture::SetCameraModeToPinhole
void SetCameraModeToPinhole()
Definition:
vtkProjectedTexture.h:66
VTK_PROJECTED_TEXTURE_USE_TWO_MIRRORS
#define VTK_PROJECTED_TEXTURE_USE_TWO_MIRRORS
Definition:
vtkProjectedTexture.h:38
vtkProjectedTexture::~vtkProjectedTexture
~vtkProjectedTexture()
Definition:
vtkProjectedTexture.h:112
vtkDataSetAlgorithm.h
vtkInformationVector
Store zero or more vtkInformation instances.
Definition:
vtkInformationVector.h:40
vtkDataSetAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkDataSetAlgorithm
Superclass for algorithms that produce output of the same type as input.
Definition:
vtkDataSetAlgorithm.h:50
VTK_PROJECTED_TEXTURE_USE_PINHOLE
#define VTK_PROJECTED_TEXTURE_USE_PINHOLE
Definition:
vtkProjectedTexture.h:37
vtkSetVector3Macro
#define vtkSetVector3Macro(name, type)
Definition:
vtkSetGet.h:287
vtkGetVectorMacro
#define vtkGetVectorMacro(name, type, count)
Definition:
vtkSetGet.h:424
vtkDataSetAlgorithm::New
static vtkDataSetAlgorithm * New()
vtkSetVector2Macro
#define vtkSetVector2Macro(name, type)
Definition:
vtkSetGet.h:254
vtkSetMacro
#define vtkSetMacro(name, type)
Definition:
vtkSetGet.h:79
Generated by
1.8.13