85 #ifndef __vtkGlyph3D_h
86 #define __vtkGlyph3D_h
88 #include "vtkFiltersCoreModule.h"
89 #include "vtkPolyDataAlgorithm.h"
91 #define VTK_SCALE_BY_SCALAR 0
92 #define VTK_SCALE_BY_VECTOR 1
93 #define VTK_SCALE_BY_VECTORCOMPONENTS 2
94 #define VTK_DATA_SCALING_OFF 3
96 #define VTK_COLOR_BY_SCALE 0
97 #define VTK_COLOR_BY_SCALAR 1
98 #define VTK_COLOR_BY_VECTOR 2
100 #define VTK_USE_VECTOR 0
101 #define VTK_USE_NORMAL 1
102 #define VTK_VECTOR_ROTATION_OFF 2
104 #define VTK_INDEXING_OFF 0
105 #define VTK_INDEXING_BY_SCALAR 1
106 #define VTK_INDEXING_BY_VECTOR 2
110 class VTKFILTERSCORE_EXPORT
vtkGlyph3D :
public vtkPolyDataAlgorithm
114 void PrintSelf(ostream& os, vtkIndent indent);
128 void SetSourceData(
int id, vtkPolyData *pd);
134 void SetSourceConnection(
int id, vtkAlgorithmOutput* algOutput);
137 this->SetSourceConnection(0, algOutput);
142 vtkPolyData *GetSource(
int id=0);
146 vtkSetMacro(Scaling,
int);
147 vtkBooleanMacro(Scaling,
int);
148 vtkGetMacro(Scaling,
int);
153 vtkSetMacro(ScaleMode,
int);
154 vtkGetMacro(ScaleMode,
int);
163 const char *GetScaleModeAsString();
168 vtkSetMacro(ColorMode,
int);
169 vtkGetMacro(ColorMode,
int);
176 const char *GetColorModeAsString();
181 vtkSetMacro(ScaleFactor,
double);
182 vtkGetMacro(ScaleFactor,
double);
187 vtkSetVector2Macro(Range,
double);
188 vtkGetVectorMacro(Range,
double,2);
193 vtkSetMacro(Orient,
int);
194 vtkBooleanMacro(Orient,
int);
195 vtkGetMacro(Orient,
int);
201 vtkSetMacro(Clamping,
int);
202 vtkBooleanMacro(Clamping,
int);
203 vtkGetMacro(Clamping,
int);
208 vtkSetMacro(VectorMode,
int);
209 vtkGetMacro(VectorMode,
int);
214 const char *GetVectorModeAsString();
224 vtkSetMacro(IndexMode,
int);
225 vtkGetMacro(IndexMode,
int);
229 const char *GetIndexModeAsString();
237 vtkSetMacro(GeneratePointIds,
int);
238 vtkGetMacro(GeneratePointIds,
int);
239 vtkBooleanMacro(GeneratePointIds,
int);
246 vtkSetStringMacro(PointIdsName);
247 vtkGetStringMacro(PointIdsName);
254 vtkSetMacro(FillCellData,
int);
255 vtkGetMacro(FillCellData,
int);
256 vtkBooleanMacro(FillCellData,
int);
267 void SetSourceTransform(vtkTransform*);
268 vtkGetObjectMacro(SourceTransform, vtkTransform);
272 virtual unsigned long GetMTime();
278 virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
279 virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
280 virtual int FillInputPortInformation(
int, vtkInformation *);
282 vtkPolyData* GetSource(
int idx, vtkInformationVector *sourceInfo);
310 return "ScaleByScalar";
314 return "ScaleByVector";
318 return "DataScalingOff";
329 return "ColorByScalar";
333 return "ColorByVector";
337 return "ColorByScale";
356 return "VectorRotationOff";
367 return "IndexingOff";
371 return "IndexingByScalar";
375 return "IndexingByVector";
void SetScaleModeToScaleByVectorComponents()
const char * GetIndexModeAsString()
void SetSourceData(vtkPolyData *pd)
void SetScaleModeToScaleByVector()
void SetColorModeToColorByScale()
void SetIndexModeToVector()
vtkTransform * SourceTransform
#define VTK_SCALE_BY_VECTORCOMPONENTS
void SetScaleModeToScaleByScalar()
const char * GetColorModeAsString()
#define VTK_COLOR_BY_VECTOR
#define VTK_SCALE_BY_SCALAR
#define VTK_SCALE_BY_VECTOR
void SetColorModeToColorByVector()
#define VTK_COLOR_BY_SCALAR
#define VTK_DATA_SCALING_OFF
#define VTK_INDEXING_BY_SCALAR
void SetIndexModeToScalar()
void SetColorModeToColorByScalar()
void SetVectorModeToUseNormal()
copy oriented and scaled glyph geometry to every input point
void SetVectorModeToVectorRotationOff()
void SetScaleModeToDataScalingOff()
#define VTK_VECTOR_ROTATION_OFF
const char * GetVectorModeAsString()
const char * GetScaleModeAsString()
virtual int IsPointVisible(vtkDataSet *, vtkIdType)
#define VTK_COLOR_BY_SCALE
void SetSourceConnection(vtkAlgorithmOutput *algOutput)
#define VTK_INDEXING_BY_VECTOR
void SetVectorModeToUseVector()