198 #include "vtkFiltersCoreModule.h"
201 #define VTK_SCALE_BY_SCALAR 0
202 #define VTK_SCALE_BY_VECTOR 1
203 #define VTK_SCALE_BY_VECTORCOMPONENTS 2
204 #define VTK_DATA_SCALING_OFF 3
206 #define VTK_COLOR_BY_SCALE 0
207 #define VTK_COLOR_BY_SCALAR 1
208 #define VTK_COLOR_BY_VECTOR 2
210 #define VTK_USE_VECTOR 0
211 #define VTK_USE_NORMAL 1
212 #define VTK_VECTOR_ROTATION_OFF 2
213 #define VTK_FOLLOW_CAMERA_DIRECTION 3
215 #define VTK_INDEXING_OFF 0
216 #define VTK_INDEXING_BY_SCALAR 1
217 #define VTK_INDEXING_BY_VECTOR 2
260 this->SetSourceConnection(0, algOutput);
282 vtkSetMacro(ScaleMode,
int);
283 vtkGetMacro(ScaleMode,
int);
291 const char* GetScaleModeAsString();
298 vtkSetMacro(ColorMode,
int);
299 vtkGetMacro(ColorMode,
int);
303 const char* GetColorModeAsString();
310 vtkSetMacro(ScaleFactor,
double);
311 vtkGetMacro(ScaleFactor,
double);
319 vtkGetVectorMacro(
Range,
double, 2);
345 vtkSetMacro(VectorMode,
int);
346 vtkGetMacro(VectorMode,
int);
351 const char* GetVectorModeAsString();
359 vtkSetVectorMacro(FollowedCameraPosition,
double, 3);
360 vtkGetVectorMacro(FollowedCameraPosition,
double, 3);
367 vtkSetVectorMacro(FollowedCameraViewUp,
double, 3);
368 vtkGetVectorMacro(FollowedCameraViewUp,
double, 3);
379 vtkSetMacro(IndexMode,
int);
380 vtkGetMacro(IndexMode,
int);
384 const char* GetIndexModeAsString();
404 vtkSetStringMacro(PointIdsName);
405 vtkGetStringMacro(PointIdsName);
446 vtkSetMacro(OutputPointsPrecision,
int);
447 vtkGetMacro(OutputPointsPrecision,
int);
480 FollowedCameraPosition[3];
481 double FollowedCameraViewUp[3];
502 return "ScaleByScalar";
506 return "ScaleByVector";
510 return "DataScalingOff";
521 return "ColorByScalar";
525 return "ColorByVector";
529 return "ColorByScale";
548 return "FollowCameraDirection";
552 return "VectorRotationOff";
563 return "IndexingOff";
567 return "IndexingByScalar";
571 return "IndexingByVector";
Proxy object to connect input/output ports.
abstract superclass for arrays of numeric data
abstract class to specify dataset behavior
copy oriented and scaled glyph geometry to every input point
void SetIndexModeToScalar()
Index into table of sources by scalar, by vector/normal magnitude, or no indexing.
vtkPolyData * GetSource(int idx, vtkInformationVector *sourceInfo)
void SetSourceData(int id, vtkPolyData *pd)
Specify a source object at a specified table location.
void SetScaleModeToScaleByVector()
Either scale by scalar or by vector/normal magnitude.
int OutputPointsPrecision
void SetVectorModeToUseNormal()
Specify whether to use vector or normal to perform vector operations.
const char * GetVectorModeAsString()
Return the vector mode as a character string.
void SetScaleModeToScaleByVectorComponents()
Either scale by scalar or by vector/normal magnitude.
vtkPolyData * GetSource(int id=0)
Get a pointer to a source object at a specified table location.
void SetIndexModeToOff()
Index into table of sources by scalar, by vector/normal magnitude, or no indexing.
void SetScaleModeToScaleByScalar()
Either scale by scalar or by vector/normal magnitude.
void SetColorModeToColorByScalar()
Either color by scale, scalar or by vector/normal magnitude.
void SetSourceTransform(vtkTransform *)
When set, this is use to transform the source polydata before using it to generate the glyph.
const char * GetIndexModeAsString()
Return the index mode as a character string.
static vtkGlyph3D * 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.
const char * GetScaleModeAsString()
Return the method of scaling as a descriptive character string.
void SetVectorModeToUseVector()
Specify whether to use vector or normal to perform vector operations.
void SetScaleModeToDataScalingOff()
Either scale by scalar or by vector/normal magnitude.
vtkMTimeType GetMTime() override
Overridden to include SourceTransform's MTime.
virtual int IsPointVisible(vtkDataSet *, vtkIdType)
This can be overwritten by subclass to return 0 when a point is blanked.
const char * GetColorModeAsString()
Return the method of coloring as a descriptive character string.
void SetSourceConnection(int id, vtkAlgorithmOutput *algOutput)
Specify a source object at a specified table location.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void SetColorModeToColorByScale()
Either color by scale, scalar or by vector/normal magnitude.
virtual bool Execute(vtkDataSet *input, vtkInformationVector *sourceVector, vtkPolyData *output, vtkDataArray *inSScalars, vtkDataArray *inVectors)
Method called in RequestData() to do the actual data processing.
void SetColorModeToColorByVector()
Either color by scale, scalar or by vector/normal magnitude.
void SetSourceConnection(vtkAlgorithmOutput *algOutput)
Specify a source object at a specified table location.
int FillInputPortInformation(int, vtkInformation *) override
Fill the input port information objects for this algorithm.
void SetVectorModeToFollowCameraDirection()
Specify whether to use vector or normal to perform vector operations.
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkTransform * SourceTransform
void SetIndexModeToVector()
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 SetVectorModeToVectorRotationOff()
Specify whether to use vector or normal to perform vector operations.
vtkTypeBool GeneratePointIds
virtual bool Execute(vtkDataSet *input, vtkInformationVector *sourceVector, vtkPolyData *output)
Method called in RequestData() to do the actual data processing.
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_FOLLOW_CAMERA_DIRECTION
#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
vtkTypeUInt32 vtkMTimeType