81 #ifndef vtkStreamTracer_h
82 #define vtkStreamTracer_h
84 #include "vtkFiltersFlowPathsModule.h"
123 vtkSetVector3Macro(StartPosition,
double);
124 vtkGetVector3Macro(StartPosition,
double);
176 FIXED_REASONS_FOR_TERMINATION_COUNT
215 vtkSetMacro(MaximumPropagation,
double);
216 vtkGetMacro(MaximumPropagation,
double);
236 vtkSetMacro(InitialIntegrationStep,
double);
237 vtkGetMacro(InitialIntegrationStep,
double);
247 vtkSetMacro(MinimumIntegrationStep,
double);
248 vtkGetMacro(MinimumIntegrationStep,
double);
258 vtkSetMacro(MaximumIntegrationStep,
double);
259 vtkGetMacro(MaximumIntegrationStep,
double);
266 vtkSetMacro(MaximumError,
double);
267 vtkGetMacro(MaximumError,
double);
282 vtkSetMacro(TerminalSpeed,
double);
283 vtkGetMacro(TerminalSpeed,
double);
290 vtkGetMacro(SurfaceStreamlines,
bool);
291 vtkSetMacro(SurfaceStreamlines,
bool);
292 vtkBooleanMacro(SurfaceStreamlines,
bool);
305 INTERPOLATOR_WITH_CELL_LOCATOR
313 vtkSetClampMacro(IntegrationDirection,
int, FORWARD, BOTH);
314 vtkGetMacro(IntegrationDirection,
int);
326 vtkSetMacro(ComputeVorticity,
bool);
327 vtkGetMacro(ComputeVorticity,
bool);
335 vtkSetMacro(RotationScale,
double);
336 vtkGetMacro(RotationScale,
double);
365 typedef bool (*CustomTerminationCallbackType)(
376 CustomTerminationCallbackType callback,
void* clientdata,
int reasonForTermination);
388 vtkErrorMacro(<<
"AddInput() must be called with a vtkDataSet not a vtkDataObject.");
399 const char* vecFieldName,
double& propagation,
vtkIdType& numSteps,
double& integrationTime);
408 double StartPosition[3];
427 double& step,
double& minStep,
double& maxStep,
int direction,
double cellLength);
459 friend class PStreamTracerUtils;
An abstract class for obtaining the interpolated velocity values at a point.
Proxy object to connect input/output ports.
abstract superclass for composite (multi-block or AMR) datasets
abstract superclass for arrays of numeric data
general representation of visualization data
represent and manipulate attribute data in a dataset
abstract class to specify dataset behavior
dynamic, self-adjusting array of double
Superclass for all pipeline executives in VTK.
provides thread-safe access to cells
list of point or cell ids
a simple class to control print indentation
Integrate a set of ordinary differential equations (initial value problem) in time.
dynamic, self-adjusting array of int
represent and manipulate point attribute data
represent and manipulate 3D points
Superclass for algorithms that produce only polydata as output.
concrete dataset represents vertices, lines, polygons, and triangle strips
void SetIntegratorTypeToRungeKutta45()
int FillInputPortInformation(int, vtkInformation *) override
Fill the input port information objects for this algorithm.
int SetupOutput(vtkInformation *inInfo, vtkInformation *outInfo)
std::vector< void * > CustomTerminationClientData
void Integrate(vtkPointData *inputData, vtkPolyData *output, vtkDataArray *seedSource, vtkIdList *seedIds, vtkIntArray *integrationDirections, double lastPoint[3], vtkAbstractInterpolatedVelocityField *func, int maxCellSize, int vecType, const char *vecFieldName, double &propagation, vtkIdType &numSteps, double &integrationTime)
void SetSourceData(vtkDataSet *source)
Specify the source object used to generate starting points (seeds).
double InitialIntegrationStep
vtkAbstractInterpolatedVelocityField * InterpolatorPrototype
double MaximumPropagation
void SetInterpolatorTypeToCellLocator()
Set the velocity field interpolator type to the one involving a cell locator.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void CalculateVorticity(vtkGenericCell *cell, double pcoords[3], vtkDoubleArray *cellVectors, double vorticity[3])
@ INTERPOLATOR_WITH_DATASET_POINT_LOCATOR
double MinimumIntegrationStep
void SetIntegratorTypeToRungeKutta4()
static double ConvertToLength(double interval, int unit, double cellLength)
void SetIntegrator(vtkInitialValueProblemSolver *)
Set/get the integrator type to be used for streamline generation.
void SetSourceConnection(vtkAlgorithmOutput *algOutput)
Specify the source object used to generate starting points (seeds).
std::vector< int > CustomReasonForTermination
static double ConvertToLength(IntervalInformation &interval, double cellLength)
int CheckInputs(vtkAbstractInterpolatedVelocityField *&func, int *maxCellSize)
void ConvertIntervals(double &step, double &minStep, double &maxStep, int direction, double cellLength)
void GenerateNormals(vtkPolyData *output, double *firstNormal, const char *vecName)
static const double EPSILON
vtkIdType MaximumNumberOfSteps
void SetIntegrationDirectionToForward()
std::vector< CustomTerminationCallbackType > CustomTerminationCallback
bool HasMatchingPointAttributes
vtkCompositeDataSet * InputData
vtkExecutive * CreateDefaultExecutive() override
Create a default executive.
void SetInterpolatorType(int interpType)
Set the type of the velocity field interpolator to determine whether vtkInterpolatedVelocityField (IN...
double MaximumIntegrationStep
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
bool GenerateNormalsInIntegrate
void SetIntegrationDirectionToBackward()
void SetInterpolatorTypeToDataSetPointLocator()
Set the velocity field interpolator type to the one involving a dataset point locator.
void AddCustomTerminationCallback(CustomTerminationCallbackType callback, void *clientdata, int reasonForTermination)
Adds a custom termination callback.
void InitializeSeeds(vtkDataArray *&seeds, vtkIdList *&seedIds, vtkIntArray *&integrationDirections, vtkDataSet *source)
void SetIntegratorTypeToRungeKutta2()
static vtkStreamTracer * New()
Construct object to start from position (0,0,0), with forward integration, terminal speed 1....
void SetIntegrationDirectionToBoth()
double SimpleIntegrate(double seed[3], double lastPoint[3], double stepSize, vtkAbstractInterpolatedVelocityField *func)
~vtkStreamTracer() override
void AddInput(vtkDataObject *)
vtkInitialValueProblemSolver * Integrator
void SetInterpolatorPrototype(vtkAbstractInterpolatedVelocityField *ivf)
The object used to interpolate the velocity field during integration is of the same class as this pro...
void SetIntegrationStepUnit(int unit)
Specify a uniform integration step unit for MinimumIntegrationStep, InitialIntegrationStep,...
void SetIntegratorType(int type)
int GetIntegrationStepUnit()
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)