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 =========================================================================*/
28 #ifndef vtkPointGaussianMapper_h
29 #define vtkPointGaussianMapper_h
30 
31 #include "vtkRenderingCoreModule.h" // For export macro
32 #include "vtkPolyDataMapper.h"
33 
35 
37 {
38 public:
39  static vtkPointGaussianMapper* New();
41  void PrintSelf(ostream& os, vtkIndent indent);
42 
44 
46  void SetScaleFunction(vtkPiecewiseFunction *);
47  vtkGetObjectMacro(ScaleFunction,vtkPiecewiseFunction);
49 
51 
53  vtkSetMacro(ScaleTableSize, int);
54  vtkGetMacro(ScaleTableSize, int);
56 
58 
59  vtkSetStringMacro(ScaleArray);
60  vtkGetStringMacro(ScaleArray);
62 
64 
69  vtkSetMacro(ScaleFactor,double);
70  vtkGetMacro(ScaleFactor,double);
72 
74 
76  vtkSetMacro(Emissive, int);
77  vtkGetMacro(Emissive, int);
78  vtkBooleanMacro(Emissive, int);
80 
82 
84  void SetScalarOpacityFunction(vtkPiecewiseFunction *);
85  vtkGetObjectMacro(ScalarOpacityFunction,vtkPiecewiseFunction);
87 
89 
91  vtkSetMacro(OpacityTableSize, int);
92  vtkGetMacro(OpacityTableSize, int);
94 
96 
98  vtkSetStringMacro(OpacityArray);
99  vtkGetStringMacro(OpacityArray);
101 
103 
108  vtkSetStringMacro(SplatShaderCode);
109  vtkGetStringMacro(SplatShaderCode);
111 
113 
123  vtkSetMacro(TriangleScale,float);
124  vtkGetMacro(TriangleScale,float);
126 
127 protected:
129  ~vtkPointGaussianMapper();
130 
131  char *ScaleArray;
132  char *OpacityArray;
133  char *SplatShaderCode;
134 
135  vtkPiecewiseFunction *ScaleFunction;
136  int ScaleTableSize;
137 
138  vtkPiecewiseFunction *ScalarOpacityFunction;
139  int OpacityTableSize;
140 
141  double ScaleFactor;
142  int Emissive;
143 
144  float TriangleScale;
145 
146 private:
147  vtkPointGaussianMapper(const vtkPointGaussianMapper&); // Not implemented.
148  void operator=(const vtkPointGaussianMapper&); // Not implemented.
149 };
150 
151 #endif
Defines a 1D piecewise function.
a simple class to control print indentation
Definition: vtkIndent.h:38
map vtkPolyData to graphics primitives
#define VTKRENDERINGCORE_EXPORT
static vtkPolyDataMapper * New()
draw PointGaussians using imposters