60 #ifndef vtkTubeFilter_h
61 #define vtkTubeFilter_h
63 #include "vtkFiltersCoreModule.h"
66 #define VTK_VARY_RADIUS_OFF 0
67 #define VTK_VARY_RADIUS_BY_SCALAR 1
68 #define VTK_VARY_RADIUS_BY_VECTOR 2
69 #define VTK_VARY_RADIUS_BY_ABSOLUTE_SCALAR 3
71 #define VTK_TCOORDS_OFF 0
72 #define VTK_TCOORDS_FROM_NORMALIZED_LENGTH 1
73 #define VTK_TCOORDS_FROM_LENGTH 2
74 #define VTK_TCOORDS_FROM_SCALARS 3
100 vtkGetMacro(Radius,
double);
107 vtkSetClampMacro(VaryRadius,
int,
109 vtkGetMacro(VaryRadius,
int);
126 vtkGetMacro(NumberOfSides,
int);
134 vtkGetMacro(RadiusFactor,
double);
142 vtkSetVector3Macro(DefaultNormal,
double);
143 vtkGetVectorMacro(DefaultNormal,
double,3);
152 vtkGetMacro(UseDefaultNormal,
int);
163 vtkGetMacro(SidesShareVertices,
int);
172 vtkGetMacro(Capping,
int);
183 vtkGetMacro(OnRatio,
int);
193 vtkGetMacro(Offset,
int);
205 vtkGetMacro(GenerateTCoords,
int);
225 vtkGetMacro(TextureLength,
double);
235 vtkGetMacro(OutputPointsPrecision,
int);
249 double DefaultNormal[3];
object to represent cell connectivity
represent and manipulate cell attribute data
abstract superclass for arrays of numeric data
dynamic, self-adjusting array of float
a simple class to control print indentation
represent and manipulate point attribute data
represent and manipulate 3D points
Superclass for algorithms that produce only polydata as output.
filter that generates tubes around lines
void SetGenerateTCoordsToNormalizedLength()
const char * GetGenerateTCoordsAsString()
static vtkTubeFilter * New()
Construct object with radius 0.5, radius variation turned off, the number of sides set to 3,...
void SetGenerateTCoordsToOff()
void SetGenerateTCoordsToUseScalars()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int OutputPointsPrecision
void GenerateStrips(vtkIdType offset, vtkIdType npts, vtkIdType *pts, vtkIdType inCellId, vtkCellData *cd, vtkCellData *outCD, vtkCellArray *newStrips)
void SetVaryRadiusToVaryRadiusByVector()
~vtkTubeFilter() override
const char * GetVaryRadiusAsString()
int GeneratePoints(vtkIdType offset, vtkIdType npts, vtkIdType *pts, vtkPoints *inPts, vtkPoints *newPts, vtkPointData *pd, vtkPointData *outPD, vtkFloatArray *newNormals, vtkDataArray *inScalars, double range[2], vtkDataArray *inVectors, double maxNorm, vtkDataArray *inNormals)
vtkIdType ComputeOffset(vtkIdType offset, vtkIdType npts)
void SetGenerateTCoordsToUseLength()
void SetVaryRadiusToVaryRadiusByScalar()
void SetVaryRadiusToVaryRadiusByAbsoluteScalar()
void SetVaryRadiusToVaryRadiusOff()
void GenerateTextureCoords(vtkIdType offset, vtkIdType npts, vtkIdType *pts, vtkPoints *inPts, vtkDataArray *inScalars, vtkFloatArray *newTCoords)
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
#define VTK_TCOORDS_FROM_SCALARS
#define VTK_VARY_RADIUS_BY_SCALAR
#define VTK_TCOORDS_FROM_LENGTH
#define VTK_TCOORDS_FROM_NORMALIZED_LENGTH
#define VTK_VARY_RADIUS_OFF
#define VTK_VARY_RADIUS_BY_VECTOR
#define VTK_VARY_RADIUS_BY_ABSOLUTE_SCALAR