VTK: Rendering/Core/vtkPointGaussianMapper.h Source File

| VTK 9.3.1

vtkPointGaussianMapper.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
27 #ifndef vtkPointGaussianMapper_h
28 #define vtkPointGaussianMapper_h
29
30 #include "vtkPolyDataMapper.h"
31 #include "vtkRenderingCoreModule.h" // For export macro
32
33 VTK_ABI_NAMESPACE_BEGIN
34 class vtkPiecewiseFunction;
35
36 class VTKRENDERINGCORE_EXPORT vtkPointGaussianMapper : public vtkPolyDataMapper
37 {
38 public:
39 static vtkPointGaussianMapper* New();
40 vtkTypeMacro(vtkPointGaussianMapper, vtkPolyDataMapper);
41 void PrintSelf(ostream& os, vtkIndent indent) override;
42
44
48 void SetScaleFunction(vtkPiecewiseFunction*);
49 vtkGetObjectMacro(ScaleFunction, vtkPiecewiseFunction);
51
53
57 vtkSetMacro(ScaleTableSize, int);
58 vtkGetMacro(ScaleTableSize, int);
60
62
65 vtkSetStringMacro(ScaleArray);
66 vtkGetStringMacro(ScaleArray);
68
70
73 vtkSetMacro(ScaleArrayComponent, int);
74 vtkGetMacro(ScaleArrayComponent, int);
76
78
86 vtkSetMacro(ScaleFactor, double);
87 vtkGetMacro(ScaleFactor, double);
89
91
94 vtkSetMacro(Emissive, vtkTypeBool);
95 vtkGetMacro(Emissive, vtkTypeBool);
96 vtkBooleanMacro(Emissive, vtkTypeBool);
98
100
104 void SetScalarOpacityFunction(vtkPiecewiseFunction*);
105 vtkGetObjectMacro(ScalarOpacityFunction, vtkPiecewiseFunction);
107
109
113 vtkSetMacro(OpacityTableSize, int);
114 vtkGetMacro(OpacityTableSize, int);
116
118
122 vtkSetStringMacro(OpacityArray);
123 vtkGetStringMacro(OpacityArray);
125
127
130 vtkSetMacro(OpacityArrayComponent, int);
131 vtkGetMacro(OpacityArrayComponent, int);
133
135
144 vtkSetStringMacro(SplatShaderCode);
145 vtkGetStringMacro(SplatShaderCode);
147
149
162 vtkSetMacro(TriangleScale, float);
163 vtkGetMacro(TriangleScale, float);
165
172 bool GetSupportsSelection() override { return true; }
173
174 protected:
175 vtkPointGaussianMapper();
176 ~vtkPointGaussianMapper() override;
177
178 char* ScaleArray;
179 int ScaleArrayComponent;
180 char* OpacityArray;
181 int OpacityArrayComponent;
182 char* SplatShaderCode;
183
184 vtkPiecewiseFunction* ScaleFunction;
185 int ScaleTableSize;
186
187 vtkPiecewiseFunction* ScalarOpacityFunction;
188 int OpacityTableSize;
189
190 double ScaleFactor;
191 vtkTypeBool Emissive;
192
193 float TriangleScale;
194
195 private:
196 vtkPointGaussianMapper(const vtkPointGaussianMapper&) = delete;
197 void operator=(const vtkPointGaussianMapper&) = delete;
198 };
199
200 VTK_ABI_NAMESPACE_END
201 #endif
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkPiecewiseFunction
Defines a 1D piecewise function.
Definition: vtkPiecewiseFunction.h:50
vtkPointGaussianMapper
draw PointGaussians using imposters
Definition: vtkPointGaussianMapper.h:37
vtkPointGaussianMapper::Emissive
vtkTypeBool Emissive
Definition: vtkPointGaussianMapper.h:191
vtkPointGaussianMapper::ScaleFunction
vtkPiecewiseFunction * ScaleFunction
Definition: vtkPointGaussianMapper.h:184
vtkPointGaussianMapper::OpacityArrayComponent
int OpacityArrayComponent
Definition: vtkPointGaussianMapper.h:181
vtkPointGaussianMapper::ScaleArrayComponent
int ScaleArrayComponent
Definition: vtkPointGaussianMapper.h:179
vtkPointGaussianMapper::ScaleFactor
double ScaleFactor
Definition: vtkPointGaussianMapper.h:190
vtkPointGaussianMapper::GetSupportsSelection
bool GetSupportsSelection() override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THIS METHOD OUTSIDE OF THE RENDERI...
Definition: vtkPointGaussianMapper.h:172
vtkPointGaussianMapper::SetScaleFunction
void SetScaleFunction(vtkPiecewiseFunction *)
Set/Get the optional scale transfer function.
vtkPointGaussianMapper::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkPointGaussianMapper::ScalarOpacityFunction
vtkPiecewiseFunction * ScalarOpacityFunction
Definition: vtkPointGaussianMapper.h:187
vtkPointGaussianMapper::SetScalarOpacityFunction
void SetScalarOpacityFunction(vtkPiecewiseFunction *)
Set/Get the optional opacity transfer function.
vtkPointGaussianMapper::TriangleScale
float TriangleScale
Definition: vtkPointGaussianMapper.h:193
vtkPointGaussianMapper::OpacityTableSize
int OpacityTableSize
Definition: vtkPointGaussianMapper.h:188
vtkPointGaussianMapper::ScaleTableSize
int ScaleTableSize
Definition: vtkPointGaussianMapper.h:185
vtkPointGaussianMapper::OpacityArray
char * OpacityArray
Definition: vtkPointGaussianMapper.h:180
vtkPointGaussianMapper::New
static vtkPointGaussianMapper * New()
vtkPointGaussianMapper::vtkPointGaussianMapper
vtkPointGaussianMapper()
vtkPointGaussianMapper::SplatShaderCode
char * SplatShaderCode
Definition: vtkPointGaussianMapper.h:182
vtkPointGaussianMapper::~vtkPointGaussianMapper
~vtkPointGaussianMapper() override
vtkPointGaussianMapper::ScaleArray
char * ScaleArray
Definition: vtkPointGaussianMapper.h:178
vtkPolyDataMapper
map vtkPolyData to graphics primitives
Definition: vtkPolyDataMapper.h:42
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:64
vtkPolyDataMapper.h