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) override;
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 
74  vtkSetMacro(ScaleArrayComponent, int);
75  vtkGetMacro(ScaleArrayComponent, int);
77 
79 
87  vtkSetMacro(ScaleFactor,double);
88  vtkGetMacro(ScaleFactor,double);
90 
92 
95  vtkSetMacro(Emissive, vtkTypeBool);
96  vtkGetMacro(Emissive, vtkTypeBool);
97  vtkBooleanMacro(Emissive, vtkTypeBool);
99 
101 
105  void SetScalarOpacityFunction(vtkPiecewiseFunction *);
106  vtkGetObjectMacro(ScalarOpacityFunction,vtkPiecewiseFunction);
108 
110 
114  vtkSetMacro(OpacityTableSize, int);
115  vtkGetMacro(OpacityTableSize, int);
117 
119 
123  vtkSetStringMacro(OpacityArray);
124  vtkGetStringMacro(OpacityArray);
126 
128 
131  vtkSetMacro(OpacityArrayComponent, int);
132  vtkGetMacro(OpacityArrayComponent, int);
134 
136 
145  vtkSetStringMacro(SplatShaderCode);
146  vtkGetStringMacro(SplatShaderCode);
148 
150 
163  vtkSetMacro(TriangleScale,float);
164  vtkGetMacro(TriangleScale,float);
166 
173  bool GetSupportsSelection() override
174  { return true; }
175 
176 protected:
178  ~vtkPointGaussianMapper() override;
179 
180  char *ScaleArray;
185 
188 
191 
192  double ScaleFactor;
194 
196 
197 private:
199  void operator=(const vtkPointGaussianMapper&) = delete;
200 };
201 
202 #endif
Defines a 1D piecewise function.
vtkPiecewiseFunction * ScaleFunction
int vtkTypeBool
Definition: vtkABI.h:69
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkPiecewiseFunction * ScalarOpacityFunction
map vtkPolyData to graphics primitives
static vtkPolyDataMapper * New()
draw PointGaussians using imposters