VTK
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 
41 {
42 public:
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);
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:
113 
116 
118 
119  double Position[3];
120  double Orientation[3];
121  double FocalPoint[3];
122  double Up[3];
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 
vtkgl::z
GLdouble GLdouble z
Definition: vtkgl.h:11754
vtkSetVector2Macro
#define vtkSetVector2Macro(name, type)
Definition: vtkSetGet.h:254
vtkSetVector3Macro
#define vtkSetVector3Macro(name, type)
Definition: vtkSetGet.h:287
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkProjectedTexture::MirrorSeparation
double MirrorSeparation
Definition: vtkProjectedTexture.h:123
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkgl::x
GLint GLint GLint GLint GLint x
Definition: vtkgl.h:11318
vtkFiltersModelingModule.h
vtkGetVectorMacro
#define vtkGetVectorMacro(name, type, count)
Definition: vtkSetGet.h:424
vtkProjectedTexture::~vtkProjectedTexture
~vtkProjectedTexture()
Definition: vtkProjectedTexture.h:112
vtkDataSetAlgorithm
Superclass for algorithms that produce output of the same type as input.
Definition: vtkDataSetAlgorithm.h:51
VTK_PROJECTED_TEXTURE_USE_TWO_MIRRORS
#define VTK_PROJECTED_TEXTURE_USE_TWO_MIRRORS
Definition: vtkProjectedTexture.h:38
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkProjectedTexture::New
static vtkProjectedTexture * New()
vtkProjectedTexture::vtkProjectedTexture
vtkProjectedTexture()
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkProjectedTexture
assign texture coordinates for a projected texture
Definition: vtkProjectedTexture.h:41
vtkProjectedTexture::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkDataSetAlgorithm.h
vtkgl::y
GLint GLint GLint GLint GLint GLint y
Definition: vtkgl.h:11318
VTK_PROJECTED_TEXTURE_USE_PINHOLE
#define VTK_PROJECTED_TEXTURE_USE_PINHOLE
Definition: vtkProjectedTexture.h:37
vtkProjectedTexture::CameraMode
int CameraMode
Definition: vtkProjectedTexture.h:117
VTKFILTERSMODELING_EXPORT
#define VTKFILTERSMODELING_EXPORT
Definition: vtkFiltersModelingModule.h:15
vtkProjectedTexture::SetCameraModeToPinhole
void SetCameraModeToPinhole()
Definition: vtkProjectedTexture.h:66
vtkProjectedTexture::SetFocalPoint
void SetFocalPoint(double x, double y, double z)
vtkProjectedTexture::ComputeNormal
void ComputeNormal()
vtkProjectedTexture::SetCameraModeToTwoMirror
void SetCameraModeToTwoMirror()
Definition: vtkProjectedTexture.h:67
vtkProjectedTexture::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkProjectedTexture::SetFocalPoint
void SetFocalPoint(double focalPoint[3])