VTK
vtkPointGaussianMapper.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4 
5  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
6  All rights reserved.
7  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
8 
9  This software is distributed WITHOUT ANY WARRANTY; without even
10  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11  PURPOSE. See the above copyright notice for more information.
12 
13 =========================================================================*/
29 #ifndef vtkPointGaussianMapper_h
30 #define vtkPointGaussianMapper_h
31 
32 #include "vtkRenderingCoreModule.h" // For export macro
33 #include "vtkPolyDataMapper.h"
34 
36 
37 class VTKRENDERINGCORE_EXPORT vtkPointGaussianMapper : public vtkPolyDataMapper
38 {
39 public:
40  static vtkPointGaussianMapper* New();
42  void PrintSelf(ostream& os, vtkIndent indent);
43 
45 
49  void SetScaleFunction(vtkPiecewiseFunction *);
50  vtkGetObjectMacro(ScaleFunction,vtkPiecewiseFunction);
52 
54 
58  vtkSetMacro(ScaleTableSize, int);
59  vtkGetMacro(ScaleTableSize, int);
61 
63 
66  vtkSetStringMacro(ScaleArray);
67  vtkGetStringMacro(ScaleArray);
69 
71 
79  vtkSetMacro(ScaleFactor,double);
80  vtkGetMacro(ScaleFactor,double);
82 
84 
87  vtkSetMacro(Emissive, int);
88  vtkGetMacro(Emissive, int);
89  vtkBooleanMacro(Emissive, int);
91 
93 
97  void SetScalarOpacityFunction(vtkPiecewiseFunction *);
98  vtkGetObjectMacro(ScalarOpacityFunction,vtkPiecewiseFunction);
100 
102 
106  vtkSetMacro(OpacityTableSize, int);
107  vtkGetMacro(OpacityTableSize, int);
109 
111 
115  vtkSetStringMacro(OpacityArray);
116  vtkGetStringMacro(OpacityArray);
118 
120 
129  vtkSetStringMacro(SplatShaderCode);
130  vtkGetStringMacro(SplatShaderCode);
132 
134 
147  vtkSetMacro(TriangleScale,float);
148  vtkGetMacro(TriangleScale,float);
150 
151 protected:
153  ~vtkPointGaussianMapper();
154 
155  char *ScaleArray;
156  char *OpacityArray;
157  char *SplatShaderCode;
158 
159  vtkPiecewiseFunction *ScaleFunction;
160  int ScaleTableSize;
161 
162  vtkPiecewiseFunction *ScalarOpacityFunction;
163  int OpacityTableSize;
164 
165  double ScaleFactor;
166  int Emissive;
167 
168  float TriangleScale;
169 
170 private:
171  vtkPointGaussianMapper(const vtkPointGaussianMapper&) VTK_DELETE_FUNCTION;
172  void operator=(const vtkPointGaussianMapper&) VTK_DELETE_FUNCTION;
173 };
174 
175 #endif
Defines a 1D piecewise function.
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
map vtkPolyData to graphics primitives
static vtkPolyDataMapper * New()
draw PointGaussians using imposters
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.