ImageStreamline
Introduction
vtkImageStreamline - integrate streamlines in a vtkImageData
vtkImageStreamline is a filter that generates streamlines from a vtkImageData input over which a vector field is defined. This filter will look for vectors (i.e. getVectors()) in the input. It will then integrate these vectors, using Runge-Kutta 2, from a starting set of seeds defined by the points of the 2nd input until a specified maximum number of steps is reached or until the streamline leaves the domain.
The output will be a vtkPolyData which contains a polyline for each streamline. Currently, this filter does not interpolate any input fields to the points of the streamline.
Methods
computeNextStep
| Argument | Type | Required | Description |
|---|---|---|---|
velArray | Yes | ||
image | Yes | ||
delT | Number | Yes | |
xyz | Array[Number] | Yes |
computeStructuredCoordinates
| Argument | Type | Required | Description |
|---|---|---|---|
x | Vector3 | Yes | |
ijk | Vector3 | Yes | |
pcoords | Vector3 | Yes | |
extent | Extent | Yes | |
spacing | Vector3 | Yes | |
origin | Vector3 | Yes | |
bounds | Bounds | Yes |
extend
Method used to decorate a given object (publicAPI+model) with vtkImageStreamline characteristics.
| Argument | Type | Required | Description |
|---|---|---|---|
publicAPI | Yes | object on which methods will be bounds (public) | |
model | Yes | object on which data structure will be bounds (protected) | |
initialValues | IImageStreamlineInitialValues | No | (default: {}) |
getIntegrationStep
Get the step length (delT) used during integration.
getMaximumNumberOfSteps
Get the number of steps to be used in the integration.
getVoxelIndices
| Argument | Type | Required | Description |
|---|---|---|---|
ijk | Vector3 | Yes | |
dims | Vector2 | Yes | |
ids | Array[Number] | Yes |
interpolationFunctions
| Argument | Type | Required | Description |
|---|---|---|---|
pcoords | Vector3 | Yes | |
sf | Array[Number] | Yes |
newInstance
Method used to create a new instance of vtkImageStreamline
| Argument | Type | Required | Description |
|---|---|---|---|
initialValues | IImageStreamlineInitialValues | No | for pre-setting some of its content |
requestData
| Argument | Type | Required | Description |
|---|---|---|---|
inData | Yes | ||
outData | Yes |
setIntegrationStep
Set the step length (delT) used during integration.
| Argument | Type | Required | Description |
|---|---|---|---|
integrationStep | Number | Yes |
setMaximumNumberOfSteps
Set the number of steps to be used in the integration. Integration can terminal earlier if the streamline leaves the domain.
| Argument | Type | Required | Description |
|---|---|---|---|
maximumNumberOfSteps | Number | Yes |
streamIntegrate
| Argument | Type | Required | Description |
|---|---|---|---|
velArray | Yes | ||
image | vtkImageData | Yes | |
seed | Array[Number] | Yes | |
offset | Number | Yes |
vectorAt
| Argument | Type | Required | Description |
|---|---|---|---|
xyz | Array[Number] | Yes | |
velArray | Yes | ||
image | vtkImageData | Yes | |
velAtArg | Yes |