 |
VTK
9.1.0
|
Go to the documentation of this file.
192 #include "vtkFiltersCoreModule.h"
195 #define VTK_SCALE_BY_SCALAR 0
196 #define VTK_SCALE_BY_VECTOR 1
197 #define VTK_SCALE_BY_VECTORCOMPONENTS 2
198 #define VTK_DATA_SCALING_OFF 3
200 #define VTK_COLOR_BY_SCALE 0
201 #define VTK_COLOR_BY_SCALAR 1
202 #define VTK_COLOR_BY_VECTOR 2
204 #define VTK_USE_VECTOR 0
205 #define VTK_USE_NORMAL 1
206 #define VTK_VECTOR_ROTATION_OFF 2
207 #define VTK_FOLLOW_CAMERA_DIRECTION 3
209 #define VTK_INDEXING_OFF 0
210 #define VTK_INDEXING_BY_SCALAR 1
211 #define VTK_INDEXING_BY_VECTOR 2
254 this->SetSourceConnection(0, algOutput);
276 vtkSetMacro(ScaleMode,
int);
277 vtkGetMacro(ScaleMode,
int);
285 const char* GetScaleModeAsString();
292 vtkSetMacro(ColorMode,
int);
293 vtkGetMacro(ColorMode,
int);
297 const char* GetColorModeAsString();
304 vtkSetMacro(ScaleFactor,
double);
305 vtkGetMacro(ScaleFactor,
double);
313 vtkGetVectorMacro(
Range,
double, 2);
339 vtkSetMacro(VectorMode,
int);
340 vtkGetMacro(VectorMode,
int);
345 const char* GetVectorModeAsString();
353 vtkSetVectorMacro(FollowedCameraPosition,
double, 3);
354 vtkGetVectorMacro(FollowedCameraPosition,
double, 3);
361 vtkSetVectorMacro(FollowedCameraViewUp,
double, 3);
362 vtkGetVectorMacro(FollowedCameraViewUp,
double, 3);
373 vtkSetMacro(IndexMode,
int);
374 vtkGetMacro(IndexMode,
int);
378 const char* GetIndexModeAsString();
398 vtkSetStringMacro(PointIdsName);
399 vtkGetStringMacro(PointIdsName);
440 vtkSetMacro(OutputPointsPrecision,
int);
441 vtkGetMacro(OutputPointsPrecision,
int);
474 FollowedCameraPosition[3];
475 double FollowedCameraViewUp[3];
496 return "ScaleByScalar";
500 return "ScaleByVector";
504 return "DataScalingOff";
515 return "ColorByScalar";
519 return "ColorByVector";
523 return "ColorByScale";
542 return "FollowCameraDirection";
546 return "VectorRotationOff";
557 return "IndexingOff";
561 return "IndexingByScalar";
565 return "IndexingByVector";
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
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 SetIndexModeToOff()
Index into table of sources by scalar, by vector/normal magnitude, or no indexing.
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()
Either scale by scalar or by vector/normal magnitude.
#define VTK_VECTOR_ROTATION_OFF
#define VTK_FOLLOW_CAMERA_DIRECTION
void SetVectorModeToFollowCameraDirection()
Specify whether to use vector or normal to perform vector operations.
void SetSourceConnection(vtkAlgorithmOutput *algOutput)
Specify a source object at a specified table location.
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)
Method called in RequestData() to do the actual data processing.
const char * GetIndexModeAsString()
Return the index mode as a character string.
void SetIndexModeToScalar()
Index into table of sources by scalar, by vector/normal magnitude, or no indexing.
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()
Either color by scale, scalar or by vector/normal magnitude.
void SetScaleModeToDataScalingOff()
Either scale by scalar or by vector/normal magnitude.
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void SetIndexModeToVector()
Index into table of sources by scalar, by vector/normal magnitude, or no indexing.
#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()
Either color by scale, scalar or by vector/normal magnitude.
a simple class to control print indentation
void SetVectorModeToUseNormal()
Specify whether to use vector or normal to perform vector operations.
void SetScaleModeToScaleByVector()
Either scale by scalar or by vector/normal magnitude.
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()
Either color by scale, scalar or by vector/normal magnitude.
#define VTK_SCALE_BY_VECTORCOMPONENTS
void SetVectorModeToVectorRotationOff()
Specify whether to use vector or normal to perform vector operations.
void SetVectorModeToUseVector()
Specify whether to use vector or normal to perform vector operations.
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()
Either scale by scalar or by vector/normal magnitude.
vtkTypeBool GeneratePointIds
#define VTK_INDEXING_BY_SCALAR
#define VTK_DATA_SCALING_OFF
vtkTypeUInt32 vtkMTimeType
Superclass for algorithms that produce only polydata as output.