Go to the documentation of this file.
89 #include "vtkFiltersCoreModule.h"
92 #define VTK_SCALE_BY_SCALAR 0
93 #define VTK_SCALE_BY_VECTOR 1
94 #define VTK_SCALE_BY_VECTORCOMPONENTS 2
95 #define VTK_DATA_SCALING_OFF 3
97 #define VTK_COLOR_BY_SCALE 0
98 #define VTK_COLOR_BY_SCALAR 1
99 #define VTK_COLOR_BY_VECTOR 2
101 #define VTK_USE_VECTOR 0
102 #define VTK_USE_NORMAL 1
103 #define VTK_VECTOR_ROTATION_OFF 2
105 #define VTK_INDEXING_OFF 0
106 #define VTK_INDEXING_BY_SCALAR 1
107 #define VTK_INDEXING_BY_VECTOR 2
150 this->SetSourceConnection(0, algOutput);
172 vtkSetMacro(ScaleMode,
int);
173 vtkGetMacro(ScaleMode,
int);
182 const char *GetScaleModeAsString();
189 vtkSetMacro(ColorMode,
int);
190 vtkGetMacro(ColorMode,
int);
197 const char *GetColorModeAsString();
204 vtkSetMacro(ScaleFactor,
double);
205 vtkGetMacro(ScaleFactor,
double);
212 vtkSetVector2Macro(Range,
double);
213 vtkGetVectorMacro(Range,
double,2);
239 vtkSetMacro(VectorMode,
int);
240 vtkGetMacro(VectorMode,
int);
245 const char *GetVectorModeAsString();
256 vtkSetMacro(IndexMode,
int);
257 vtkGetMacro(IndexMode,
int);
261 const char *GetIndexModeAsString();
281 vtkSetStringMacro(PointIdsName);
282 vtkGetStringMacro(PointIdsName);
323 vtkSetMacro(OutputPointsPrecision,
int);
324 vtkGetMacro(OutputPointsPrecision,
int);
382 return "ScaleByScalar";
386 return "ScaleByVector";
390 return "DataScalingOff";
403 return "ColorByScalar";
407 return "ColorByVector";
411 return "ColorByScale";
432 return "VectorRotationOff";
445 return "IndexingOff";
449 return "IndexingByScalar";
453 return "IndexingByVector";
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void SetSourceConnection(int id, vtkAlgorithmOutput *algOutput)
Specify a source object at a specified table location.
const char * GetColorModeAsString()
Return the method of coloring as a descriptive character string.
virtual int IsPointVisible(vtkDataSet *, vtkIdType)
This can be overwritten by subclass to return 0 when a point is blanked.
void SetScaleModeToScaleByVectorComponents()
#define VTK_VECTOR_ROTATION_OFF
void SetSourceConnection(vtkAlgorithmOutput *algOutput)
vtkTransform * SourceTransform
int FillInputPortInformation(int, vtkInformation *) override
Fill the input port information objects for this algorithm.
virtual bool Execute(vtkDataSet *input, vtkInformationVector *sourceVector, vtkPolyData *output, vtkDataArray *inSScalars, vtkDataArray *inVectors)
const char * GetIndexModeAsString()
Return the index mode as a character string.
void SetIndexModeToScalar()
vtkMTimeType GetMTime() override
Overridden to include SourceTransform's MTime.
const char * GetVectorModeAsString()
Return the vector mode as a character string.
#define VTK_SCALE_BY_SCALAR
vtkPolyData * GetSource(int idx, vtkInformationVector *sourceInfo)
abstract superclass for arrays of numeric data
#define VTK_SCALE_BY_VECTOR
void SetColorModeToColorByVector()
void SetScaleModeToDataScalingOff()
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void SetIndexModeToVector()
#define VTK_INDEXING_BY_VECTOR
#define VTK_COLOR_BY_SCALAR
vtkPolyData * GetSource(int id=0)
Get a pointer to a source object at a specified table location.
void SetSourceTransform(vtkTransform *)
When set, this is use to transform the source polydata before using it to generate the glyph.
void SetSourceData(int id, vtkPolyData *pd)
Specify a source object at a specified table location.
int OutputPointsPrecision
static vtkGlyph3D * New()
Construct object with scaling on, scaling mode is by scalar value, scale factor = 1....
void SetColorModeToColorByScalar()
a simple class to control print indentation
void SetVectorModeToUseNormal()
void SetScaleModeToScaleByVector()
virtual bool Execute(vtkDataSet *input, vtkInformationVector *sourceVector, vtkPolyData *output)
Method called in RequestData() to do the actual data processing.
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.
abstract class to specify dataset behavior
copy oriented and scaled glyph geometry to every input point
#define VTK_COLOR_BY_VECTOR
#define VTK_COLOR_BY_SCALE
void SetColorModeToColorByScale()
#define VTK_SCALE_BY_VECTORCOMPONENTS
void SetVectorModeToVectorRotationOff()
void SetVectorModeToUseVector()
Proxy object to connect input/output ports.
void SetSourceData(vtkPolyData *pd)
Set the source to use for the glyph.
concrete dataset represents vertices, lines, polygons, and triangle strips
void SetScaleModeToScaleByScalar()
vtkTypeBool GeneratePointIds
#define VTK_INDEXING_BY_SCALAR
#define VTK_DATA_SCALING_OFF
vtkTypeUInt32 vtkMTimeType
Superclass for algorithms that produce only polydata as output.