Section: Visualization Toolkit Graphics Classes
vtkStreamLine defines the instance variable StepLength. This parameter controls the time increment used to generate individual points along the streamline(s). Smaller values result in more line primitives but smoother streamlines. The StepLength instance variable is defined in terms of time (i.e., the distance that the particle travels in the specified time period). Thus, the line segments will be smaller in areas of low velocity and larger in regions of high velocity. (NOTE: This is different than the IntegrationStepLength defined by the superclass vtkStreamer. IntegrationStepLength is used to control integration step size and is expressed as a fraction of the cell length.) The StepLength instance variable is important because subclasses of vtkStreamLine (e.g., vtkDashedStreamLine) depend on this value to build their representation.
To create an instance of class vtkStreamLine, simply invoke its constructor as follows
obj = vtkStreamLine
obj
is an instance of the vtkStreamLine class.
string = obj.GetClassName ()
int = obj.IsA (string name)
vtkStreamLine = obj.NewInstance ()
vtkStreamLine = obj.SafeDownCast (vtkObject o)
obj.SetStepLength (double )
- Specify the length of a line segment. The length is expressed in terms of
elapsed time. Smaller values result in smoother appearing streamlines, but
greater numbers of line primitives.
double = obj.GetStepLengthMinValue ()
- Specify the length of a line segment. The length is expressed in terms of
elapsed time. Smaller values result in smoother appearing streamlines, but
greater numbers of line primitives.
double = obj.GetStepLengthMaxValue ()
- Specify the length of a line segment. The length is expressed in terms of
elapsed time. Smaller values result in smoother appearing streamlines, but
greater numbers of line primitives.
double = obj.GetStepLength ()
- Specify the length of a line segment. The length is expressed in terms of
elapsed time. Smaller values result in smoother appearing streamlines, but
greater numbers of line primitives.