82 #ifndef vtkGenericGlyph3DFilter_h
83 #define vtkGenericGlyph3DFilter_h
85 #include "vtkFiltersGenericModule.h"
88 #define VTK_SCALE_BY_SCALAR 0
89 #define VTK_SCALE_BY_VECTOR 1
90 #define VTK_SCALE_BY_VECTORCOMPONENTS 2
91 #define VTK_DATA_SCALING_OFF 3
93 #define VTK_COLOR_BY_SCALE 0
94 #define VTK_COLOR_BY_SCALAR 1
95 #define VTK_COLOR_BY_VECTOR 2
97 #define VTK_USE_VECTOR 0
98 #define VTK_USE_NORMAL 1
99 #define VTK_VECTOR_ROTATION_OFF 2
101 #define VTK_INDEXING_OFF 0
102 #define VTK_INDEXING_BY_SCALAR 1
103 #define VTK_INDEXING_BY_VECTOR 2
105 VTK_ABI_NAMESPACE_BEGIN
148 vtkSetMacro(ScaleMode,
int);
149 vtkGetMacro(ScaleMode,
int);
157 const char* GetScaleModeAsString();
164 vtkSetMacro(ColorMode,
int);
165 vtkGetMacro(ColorMode,
int);
169 const char* GetColorModeAsString();
176 vtkSetMacro(ScaleFactor,
double);
177 vtkGetMacro(ScaleFactor,
double);
185 vtkGetVectorMacro(
Range,
double, 2);
211 vtkSetMacro(VectorMode,
int);
212 vtkGetMacro(VectorMode,
int);
216 const char* GetVectorModeAsString();
225 vtkSetMacro(IndexMode,
int);
226 vtkGetMacro(IndexMode,
int);
230 const char* GetIndexModeAsString();
250 vtkSetStringMacro(PointIdsName);
251 vtkGetStringMacro(PointIdsName);
259 vtkGetStringMacro(InputScalarsSelection);
268 vtkGetStringMacro(InputVectorsSelection);
277 vtkGetStringMacro(InputNormalsSelection);
306 vtkSetStringMacro(InputScalarsSelection);
307 vtkSetStringMacro(InputVectorsSelection);
308 vtkSetStringMacro(InputNormalsSelection);
322 return "ScaleByScalar";
326 return "ScaleByVector";
330 return "DataScalingOff";
341 return "ColorByScalar";
345 return "ColorByVector";
349 return "ColorByScale";
368 return "VectorRotationOff";
379 return "IndexingOff";
383 return "IndexingByScalar";
387 return "IndexingByVector";
391 VTK_ABI_NAMESPACE_END
copy oriented and scaled glyph geometry to every input point
void SelectInputVectors(const char *fieldName)
If you want to use an arbitrary vectors array, then set its name here.
void SelectInputNormals(const char *fieldName)
If you want to use an arbitrary normals array, then set its name here.
vtkPolyData * GetSource(int id=0)
Get a pointer to a source object at a specified table location.
~vtkGenericGlyph3DFilter() override
static vtkGenericGlyph3DFilter * New()
Construct object with scaling on, scaling mode is by scalar value, scale factor = 1....
void SetScaleModeToScaleByScalar()
Either scale by scalar or by vector/normal magnitude.
void SetScaleModeToScaleByVector()
Either scale by scalar or by vector/normal magnitude.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void SetVectorModeToUseVector()
Specify whether to use vector or normal to perform vector operations.
char * InputVectorsSelection
const char * GetScaleModeAsString()
Return the method of scaling as a descriptive character string.
void SetIndexModeToVector()
Index into table of sources by scalar, by vector/normal magnitude, or no indexing.
void SetColorModeToColorByVector()
Either color by scale, scalar or by vector/normal magnitude.
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
char * InputScalarsSelection
void SetSourceData(vtkPolyData *pd)
Set the source to use for the glyph.
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
const char * GetColorModeAsString()
Return the method of coloring as a descriptive character string.
vtkTypeBool GeneratePointIds
void SetColorModeToColorByScalar()
Either color by scale, scalar or by vector/normal magnitude.
vtkGenericGlyph3DFilter()
void SetColorModeToColorByScale()
Either color by scale, scalar or by vector/normal magnitude.
void SetIndexModeToScalar()
Index into table of sources by scalar, by vector/normal magnitude, or no indexing.
int FillInputPortInformation(int, vtkInformation *) override
Fill the input port information objects for this algorithm.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetIndexModeToOff()
Index into table of sources by scalar, by vector/normal magnitude, or no indexing.
const char * GetVectorModeAsString()
Return the vector mode as a character string.
void SetSourceData(int id, vtkPolyData *pd)
Specify a source object at a specified table location.
char * InputNormalsSelection
void SetVectorModeToUseNormal()
Specify whether to use vector or normal to perform vector operations.
void SelectInputScalars(const char *fieldName)
If you want to use an arbitrary scalars array, then set its name here.
const char * GetIndexModeAsString()
Return the index mode as a character string.
void SetVectorModeToVectorRotationOff()
Specify whether to use vector or normal to perform vector operations.
void SetScaleModeToScaleByVectorComponents()
Either scale by scalar or by vector/normal magnitude.
void SetScaleModeToDataScalingOff()
Either scale by scalar or by vector/normal magnitude.
a simple class to control print indentation
Superclass for algorithms that produce only polydata as output.
concrete dataset represents vertices, lines, polygons, and triangle strips
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.
#define VTK_COLOR_BY_VECTOR
#define VTK_SCALE_BY_SCALAR
#define VTK_INDEXING_BY_SCALAR
#define VTK_DATA_SCALING_OFF
#define VTK_VECTOR_ROTATION_OFF
#define VTK_COLOR_BY_SCALAR
#define VTK_INDEXING_BY_VECTOR
#define VTK_SCALE_BY_VECTOR
#define VTK_COLOR_BY_SCALE
#define VTK_SCALE_BY_VECTORCOMPONENTS