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 =========================================================================*/
26 #ifndef vtkPointGaussianMapper_h
27 #define vtkPointGaussianMapper_h
28 
29 #include "vtkRenderingCoreModule.h" // For export macro
30 #include "vtkPolyDataMapper.h"
31 
33 
34 class VTKRENDERINGCORE_EXPORT vtkPointGaussianMapper : public vtkPolyDataMapper
35 {
36 public:
37  static vtkPointGaussianMapper* New();
39  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
40 
42 
46  void SetScaleFunction(vtkPiecewiseFunction *);
47  vtkGetObjectMacro(ScaleFunction,vtkPiecewiseFunction);
49 
51 
55  vtkSetMacro(ScaleTableSize, int);
56  vtkGetMacro(ScaleTableSize, int);
58 
60 
63  vtkSetStringMacro(ScaleArray);
64  vtkGetStringMacro(ScaleArray);
66 
68 
76  vtkSetMacro(ScaleFactor,double);
77  vtkGetMacro(ScaleFactor,double);
79 
81 
84  vtkSetMacro(Emissive, int);
85  vtkGetMacro(Emissive, int);
86  vtkBooleanMacro(Emissive, int);
88 
90 
94  void SetScalarOpacityFunction(vtkPiecewiseFunction *);
95  vtkGetObjectMacro(ScalarOpacityFunction,vtkPiecewiseFunction);
97 
99 
103  vtkSetMacro(OpacityTableSize, int);
104  vtkGetMacro(OpacityTableSize, int);
106 
108 
112  vtkSetStringMacro(OpacityArray);
113  vtkGetStringMacro(OpacityArray);
115 
117 
126  vtkSetStringMacro(SplatShaderCode);
127  vtkGetStringMacro(SplatShaderCode);
129 
131 
144  vtkSetMacro(TriangleScale,float);
145  vtkGetMacro(TriangleScale,float);
147 
148 protected:
150  ~vtkPointGaussianMapper() VTK_OVERRIDE;
151 
152  char *ScaleArray;
153  char *OpacityArray;
154  char *SplatShaderCode;
155 
156  vtkPiecewiseFunction *ScaleFunction;
157  int ScaleTableSize;
158 
159  vtkPiecewiseFunction *ScalarOpacityFunction;
160  int OpacityTableSize;
161 
162  double ScaleFactor;
163  int Emissive;
164 
165  float TriangleScale;
166 
167 private:
168  vtkPointGaussianMapper(const vtkPointGaussianMapper&) VTK_DELETE_FUNCTION;
169  void operator=(const vtkPointGaussianMapper&) VTK_DELETE_FUNCTION;
170 };
171 
172 #endif
Defines a 1D piecewise function.
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
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.