70 #ifndef vtkGenericGlyph3DFilter_h
71 #define vtkGenericGlyph3DFilter_h
73 #include "vtkFiltersGenericModule.h"
76 #define VTK_SCALE_BY_SCALAR 0
77 #define VTK_SCALE_BY_VECTOR 1
78 #define VTK_SCALE_BY_VECTORCOMPONENTS 2
79 #define VTK_DATA_SCALING_OFF 3
81 #define VTK_COLOR_BY_SCALE 0
82 #define VTK_COLOR_BY_SCALAR 1
83 #define VTK_COLOR_BY_VECTOR 2
85 #define VTK_USE_VECTOR 0
86 #define VTK_USE_NORMAL 1
87 #define VTK_VECTOR_ROTATION_OFF 2
89 #define VTK_INDEXING_OFF 0
90 #define VTK_INDEXING_BY_SCALAR 1
91 #define VTK_INDEXING_BY_VECTOR 2
93 VTK_ABI_NAMESPACE_BEGIN
136 vtkSetMacro(ScaleMode,
int);
137 vtkGetMacro(ScaleMode,
int);
145 const char* GetScaleModeAsString();
152 vtkSetMacro(ColorMode,
int);
153 vtkGetMacro(ColorMode,
int);
157 const char* GetColorModeAsString();
164 vtkSetMacro(ScaleFactor,
double);
165 vtkGetMacro(ScaleFactor,
double);
172 vtkSetVector2Macro(
Range,
double);
173 vtkGetVectorMacro(
Range,
double, 2);
199 vtkSetMacro(VectorMode,
int);
200 vtkGetMacro(VectorMode,
int);
204 const char* GetVectorModeAsString();
213 vtkSetMacro(IndexMode,
int);
214 vtkGetMacro(IndexMode,
int);
218 const char* GetIndexModeAsString();
238 vtkSetStringMacro(PointIdsName);
239 vtkGetStringMacro(PointIdsName);
247 vtkGetStringMacro(InputScalarsSelection);
256 vtkGetStringMacro(InputVectorsSelection);
265 vtkGetStringMacro(InputNormalsSelection);
294 vtkSetStringMacro(InputScalarsSelection);
295 vtkSetStringMacro(InputVectorsSelection);
296 vtkSetStringMacro(InputNormalsSelection);
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";
379 VTK_ABI_NAMESPACE_END
void SetIndexModeToOff()
Index into table of sources by scalar, by vector/normal magnitude, or no indexing.
void SetSourceData(vtkPolyData *pd)
Set the source to use for the glyph.
void SetColorModeToColorByScale()
Either color by scale, scalar or by vector/normal magnitude.
void SetVectorModeToVectorRotationOff()
Specify whether to use vector or normal to perform vector operations.
#define VTK_INDEXING_BY_VECTOR
char * InputScalarsSelection
char * InputVectorsSelection
void SetScaleModeToScaleByScalar()
Either scale by scalar or by vector/normal magnitude.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
void SelectInputNormals(const char *fieldName)
If you want to use an arbitrary normals array, then set its name here.
void SetScaleModeToScaleByVector()
Either scale by scalar or by vector/normal magnitude.
void SetColorModeToColorByVector()
Either color by scale, scalar or by vector/normal magnitude.
const char * GetVectorModeAsString()
Return the vector mode as a character string.
concrete dataset represents vertices, lines, polygons, and triangle strips
#define VTK_VECTOR_ROTATION_OFF
#define VTK_COLOR_BY_VECTOR
void SelectInputVectors(const char *fieldName)
If you want to use an arbitrary vectors array, then set its name here.
static vtkPolyDataAlgorithm * New()
auto Range(IterablePtr iterable, Options &&...opts) -> typename detail::IterableTraits< typename detail::StripPointers< IterablePtr >::type >::RangeType
Generate an iterable STL proxy object for a VTK container.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
const char * GetColorModeAsString()
Return the method of coloring as a descriptive character string.
copy oriented and scaled glyph geometry to every input point
void SelectInputScalars(const char *fieldName)
If you want to use an arbitrary scalars array, then set its name here.
Superclass for algorithms that produce only polydata as output.
#define VTK_SCALE_BY_SCALAR
a simple class to control print indentation
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
#define VTK_SCALE_BY_VECTORCOMPONENTS
void SetVectorModeToUseVector()
Specify whether to use vector or normal to perform vector operations.
#define VTK_COLOR_BY_SCALAR
const char * GetIndexModeAsString()
Return the index mode as a character string.
void SetVectorModeToUseNormal()
Specify whether to use vector or normal to perform vector operations.
void SetScaleModeToDataScalingOff()
Either scale by scalar or by vector/normal magnitude.
#define VTK_INDEXING_BY_SCALAR
#define VTK_DATA_SCALING_OFF
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void SetColorModeToColorByScalar()
Either color by scale, scalar or by vector/normal magnitude.
void SetScaleModeToScaleByVectorComponents()
Either scale by scalar or by vector/normal magnitude.
const char * GetScaleModeAsString()
Return the method of scaling as a descriptive character string.
#define VTK_SCALE_BY_VECTOR
void SetIndexModeToVector()
Index into table of sources by scalar, by vector/normal magnitude, or no indexing.
#define VTK_COLOR_BY_SCALE
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
char * InputNormalsSelection
void SetIndexModeToScalar()
Index into table of sources by scalar, by vector/normal magnitude, or no indexing.
vtkTypeBool GeneratePointIds