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 "vtkDataSetAlgorithm.h"
35 
36 #define VTK_PROJECTED_TEXTURE_USE_PINHOLE 0
37 #define VTK_PROJECTED_TEXTURE_USE_TWO_MIRRORS 1
38 
40 {
41 public:
42  static vtkProjectedTexture *New();
44  void PrintSelf(ostream& os, vtkIndent indent);
45 
47 
48  vtkSetVector3Macro(Position,double);
49  vtkGetVectorMacro(Position,double,3);
51 
53 
55  void SetFocalPoint(double focalPoint[3]);
56  void SetFocalPoint(double x, double y, double z);
57  vtkGetVectorMacro(FocalPoint,double,3);
59 
61 
63  vtkSetMacro(CameraMode, int);
64  vtkGetMacro(CameraMode, int);
68 
70 
71  vtkSetMacro(MirrorSeparation, double);
72  vtkGetMacro(MirrorSeparation, double);
74 
76 
77  vtkGetVectorMacro(Orientation,double,3);
79 
81 
82  vtkSetVector3Macro(Up,double);
83  vtkGetVectorMacro(Up,double,3);
85 
87 
93  vtkSetVector3Macro(AspectRatio,double);
94  vtkGetVectorMacro(AspectRatio,double,3);
96 
98 
99  vtkSetVector2Macro(SRange,double);
100  vtkGetVectorMacro(SRange,double,2);
102 
104 
105  vtkSetVector2Macro(TRange,double);
106  vtkGetVectorMacro(TRange,double,2);
108 
109 protected:
112 
114  void ComputeNormal();
115 
117 
118  double Position[3];
119  double Orientation[3];
120  double FocalPoint[3];
121  double Up[3];
123  double AspectRatio[3];
124  double SRange[2];
125  double TRange[2];
126 private:
127  vtkProjectedTexture(const vtkProjectedTexture&); // Not implemented.
128  void operator=(const vtkProjectedTexture&); // Not implemented.
129 };
130 
131 #endif
132