VTK  9.2.6
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=========================================================================*/
32#ifndef vtkProjectedTexture_h
33#define vtkProjectedTexture_h
34
35#include "vtkDataSetAlgorithm.h"
36#include "vtkFiltersModelingModule.h" // For export macro
37
38#define VTK_PROJECTED_TEXTURE_USE_PINHOLE 0
39#define VTK_PROJECTED_TEXTURE_USE_TWO_MIRRORS 1
40
41class VTKFILTERSMODELING_EXPORT vtkProjectedTexture : public vtkDataSetAlgorithm
42{
43public:
46 void PrintSelf(ostream& os, vtkIndent indent) override;
47
49
52 vtkSetVector3Macro(Position, double);
53 vtkGetVectorMacro(Position, double, 3);
55
57
61 void SetFocalPoint(double focalPoint[3]);
62 void SetFocalPoint(double x, double y, double z);
63 vtkGetVectorMacro(FocalPoint, double, 3);
65
67
71 vtkSetMacro(CameraMode, int);
72 vtkGetMacro(CameraMode, int);
76
78
81 vtkSetMacro(MirrorSeparation, double);
82 vtkGetMacro(MirrorSeparation, double);
84
86
89 vtkGetVectorMacro(Orientation, double, 3);
91
93
96 vtkSetVector3Macro(Up, double);
97 vtkGetVectorMacro(Up, double, 3);
99
101
111 vtkSetVector3Macro(AspectRatio, double);
112 vtkGetVectorMacro(AspectRatio, double, 3);
114
116
119 vtkSetVector2Macro(SRange, double);
120 vtkGetVectorMacro(SRange, double, 2);
122
124
127 vtkSetVector2Macro(TRange, double);
128 vtkGetVectorMacro(TRange, double, 2);
130
131protected:
133 ~vtkProjectedTexture() override = default;
134
137
139
140 double Position[3];
141 double Orientation[3];
142 double FocalPoint[3];
143 double Up[3];
145 double AspectRatio[3];
146 double SRange[2];
147 double TRange[2];
148
149private:
151 void operator=(const vtkProjectedTexture&) = delete;
152};
153
154#endif
Superclass for algorithms that produce output of the same type as input.
a simple class to control print indentation
Definition vtkIndent.h:34
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
assign texture coordinates for a projected texture
static vtkProjectedTexture * New()
void SetCameraModeToPinhole()
Set/Get the camera mode of the projection – pinhole projection or two mirror projection.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when a request asks the algorithm to do its work.
void SetFocalPoint(double focalPoint[3])
Set/Get the focal point of the projector (a point that lies along the center axis of the projector's ...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetCameraModeToTwoMirror()
Set/Get the camera mode of the projection – pinhole projection or two mirror projection.
void SetFocalPoint(double x, double y, double z)
Set/Get the focal point of the projector (a point that lies along the center axis of the projector's ...
~vtkProjectedTexture() override=default
#define VTK_PROJECTED_TEXTURE_USE_PINHOLE
#define VTK_PROJECTED_TEXTURE_USE_TWO_MIRRORS