 |
VTK
9.1.0
|
Go to the documentation of this file.
79 #ifndef vtkGenericGlyph3DFilter_h
80 #define vtkGenericGlyph3DFilter_h
82 #include "vtkFiltersGenericModule.h"
85 #define VTK_SCALE_BY_SCALAR 0
86 #define VTK_SCALE_BY_VECTOR 1
87 #define VTK_SCALE_BY_VECTORCOMPONENTS 2
88 #define VTK_DATA_SCALING_OFF 3
90 #define VTK_COLOR_BY_SCALE 0
91 #define VTK_COLOR_BY_SCALAR 1
92 #define VTK_COLOR_BY_VECTOR 2
94 #define VTK_USE_VECTOR 0
95 #define VTK_USE_NORMAL 1
96 #define VTK_VECTOR_ROTATION_OFF 2
98 #define VTK_INDEXING_OFF 0
99 #define VTK_INDEXING_BY_SCALAR 1
100 #define VTK_INDEXING_BY_VECTOR 2
144 vtkSetMacro(ScaleMode,
int);
145 vtkGetMacro(ScaleMode,
int);
153 const char* GetScaleModeAsString();
160 vtkSetMacro(ColorMode,
int);
161 vtkGetMacro(ColorMode,
int);
165 const char* GetColorModeAsString();
172 vtkSetMacro(ScaleFactor,
double);
173 vtkGetMacro(ScaleFactor,
double);
181 vtkGetVectorMacro(
Range,
double, 2);
207 vtkSetMacro(VectorMode,
int);
208 vtkGetMacro(VectorMode,
int);
212 const char* GetVectorModeAsString();
221 vtkSetMacro(IndexMode,
int);
222 vtkGetMacro(IndexMode,
int);
226 const char* GetIndexModeAsString();
246 vtkSetStringMacro(PointIdsName);
247 vtkGetStringMacro(PointIdsName);
255 vtkGetStringMacro(InputScalarsSelection);
264 vtkGetStringMacro(InputVectorsSelection);
273 vtkGetStringMacro(InputNormalsSelection);
302 vtkSetStringMacro(InputScalarsSelection);
303 vtkSetStringMacro(InputVectorsSelection);
304 vtkSetStringMacro(InputNormalsSelection);
318 return "ScaleByScalar";
322 return "ScaleByVector";
326 return "DataScalingOff";
337 return "ColorByScalar";
341 return "ColorByVector";
345 return "ColorByScale";
364 return "VectorRotationOff";
375 return "IndexingOff";
379 return "IndexingByScalar";
383 return "IndexingByVector";
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.
void SetIndexModeToScalar()
Index into table of sources by scalar, by vector/normal magnitude, or no indexing.
char * InputVectorsSelection
void SetSourceData(vtkPolyData *pd)
Set the source to use for the glyph.
void SetVectorModeToVectorRotationOff()
Specify whether to use vector or normal to perform vector operations.
void SetColorModeToColorByScale()
Either color by scale, scalar or by vector/normal magnitude.
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
char * InputScalarsSelection
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkPolyData * GetSource(int id=0)
Get a pointer to a source object at a specified table location.
void SetScaleModeToScaleByScalar()
Either scale by scalar or by vector/normal magnitude.
void SetColorModeToColorByVector()
Either color by scale, scalar or by vector/normal magnitude.
void SetScaleModeToScaleByVector()
Either scale by scalar or by vector/normal magnitude.
const char * GetVectorModeAsString()
Return the vector mode as a character string.
void SelectInputNormals(const char *fieldName)
If you want to use an arbitrary normals array, then set its name here.
#define VTK_COLOR_BY_SCALAR
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
#define VTK_VECTOR_ROTATION_OFF
#define VTK_COLOR_BY_SCALE
void SelectInputScalars(const char *fieldName)
If you want to use an arbitrary scalars array, then set its name here.
void SelectInputVectors(const char *fieldName)
If you want to use an arbitrary vectors array, then set its name here.
const char * GetColorModeAsString()
Return the method of coloring as a descriptive character string.
a simple class to control print indentation
#define VTK_SCALE_BY_SCALAR
static vtkGenericGlyph3DFilter * New()
Construct object with scaling on, scaling mode is by scalar value, scale factor = 1....
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkGenericGlyph3DFilter() override
#define VTK_SCALE_BY_VECTORCOMPONENTS
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 SetVectorModeToUseVector()
Specify whether to use vector or normal to perform vector operations.
#define VTK_INDEXING_BY_VECTOR
#define VTK_INDEXING_BY_SCALAR
#define VTK_COLOR_BY_VECTOR
void SetScaleModeToDataScalingOff()
Either scale by scalar or by vector/normal magnitude.
const char * GetScaleModeAsString()
Return the method of scaling as a descriptive character string.
concrete dataset represents vertices, lines, polygons, and triangle strips
int FillInputPortInformation(int, vtkInformation *) override
Fill the input port information objects for this algorithm.
void SetSourceData(int id, vtkPolyData *pd)
Specify a source object at a specified table location.
void SetColorModeToColorByScalar()
Either color by scale, scalar or by vector/normal magnitude.
void SetScaleModeToScaleByVectorComponents()
Either scale by scalar or by vector/normal magnitude.
#define VTK_SCALE_BY_VECTOR
copy oriented and scaled glyph geometry to every input point
char * InputNormalsSelection
void SetIndexModeToVector()
Index into table of sources by scalar, by vector/normal magnitude, or no indexing.
vtkTypeBool GeneratePointIds
vtkGenericGlyph3DFilter()
void SetIndexModeToOff()
Index into table of sources by scalar, by vector/normal magnitude, or no indexing.
#define VTK_DATA_SCALING_OFF
Superclass for algorithms that produce only polydata as output.