83 #include "vtkFiltersCoreModule.h"
86 #define VTK_SCALE_BY_SCALAR 0
87 #define VTK_SCALE_BY_VECTOR 1
88 #define VTK_SCALE_BY_VECTORCOMPONENTS 2
89 #define VTK_DATA_SCALING_OFF 3
91 #define VTK_COLOR_BY_SCALE 0
92 #define VTK_COLOR_BY_SCALAR 1
93 #define VTK_COLOR_BY_VECTOR 2
95 #define VTK_USE_VECTOR 0
96 #define VTK_USE_NORMAL 1
97 #define VTK_VECTOR_ROTATION_OFF 2
99 #define VTK_INDEXING_OFF 0
100 #define VTK_INDEXING_BY_SCALAR 1
101 #define VTK_INDEXING_BY_VECTOR 2
144 this->SetSourceConnection(0, algOutput);
166 vtkSetMacro(ScaleMode,
int);
167 vtkGetMacro(ScaleMode,
int);
175 const char* GetScaleModeAsString();
182 vtkSetMacro(ColorMode,
int);
183 vtkGetMacro(ColorMode,
int);
187 const char* GetColorModeAsString();
194 vtkSetMacro(ScaleFactor,
double);
195 vtkGetMacro(ScaleFactor,
double);
203 vtkGetVectorMacro(
Range,
double, 2);
229 vtkSetMacro(VectorMode,
int);
230 vtkGetMacro(VectorMode,
int);
234 const char* GetVectorModeAsString();
245 vtkSetMacro(IndexMode,
int);
246 vtkGetMacro(IndexMode,
int);
250 const char* GetIndexModeAsString();
270 vtkSetStringMacro(PointIdsName);
271 vtkGetStringMacro(PointIdsName);
312 vtkSetMacro(OutputPointsPrecision,
int);
313 vtkGetMacro(OutputPointsPrecision,
int);
366 return "ScaleByScalar";
370 return "ScaleByVector";
374 return "DataScalingOff";
387 return "ColorByScalar";
391 return "ColorByVector";
395 return "ColorByScale";
416 return "VectorRotationOff";
429 return "IndexingOff";
433 return "IndexingByScalar";
437 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()
vtkPolyData * GetSource(int idx, vtkInformationVector *sourceInfo)
void SetSourceData(int id, vtkPolyData *pd)
Specify a source object at a specified table location.
void SetScaleModeToScaleByVector()
int OutputPointsPrecision
void SetVectorModeToUseNormal()
const char * GetVectorModeAsString()
Return the vector mode as a character string.
void SetScaleModeToScaleByVectorComponents()
vtkPolyData * GetSource(int id=0)
Get a pointer to a source object at a specified table location.
void SetScaleModeToScaleByScalar()
void SetColorModeToColorByScalar()
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()
void SetScaleModeToDataScalingOff()
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()
virtual bool Execute(vtkDataSet *input, vtkInformationVector *sourceVector, vtkPolyData *output, vtkDataArray *inSScalars, vtkDataArray *inVectors)
void SetColorModeToColorByVector()
void SetSourceConnection(vtkAlgorithmOutput *algOutput)
int FillInputPortInformation(int, vtkInformation *) override
Fill the input port information objects for this algorithm.
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkTransform * SourceTransform
void SetIndexModeToVector()
void SetSourceData(vtkPolyData *pd)
Set the source to use for the glyph.
void SetVectorModeToVectorRotationOff()
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_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