Go to the documentation of this file.
86 #ifndef vtkStreamTracer_h
87 #define vtkStreamTracer_h
89 #include "vtkFiltersFlowPathsModule.h"
128 vtkSetVector3Macro(StartPosition,
double);
129 vtkGetVector3Macro(StartPosition,
double);
181 FIXED_REASONS_FOR_TERMINATION_COUNT
200 {this->SetIntegratorType(RUNGE_KUTTA2);};
202 {this->SetIntegratorType(RUNGE_KUTTA4);};
204 {this->SetIntegratorType(RUNGE_KUTTA45);};
223 vtkSetMacro(MaximumPropagation,
double);
224 vtkGetMacro(MaximumPropagation,
double);
244 vtkSetMacro(InitialIntegrationStep,
double);
245 vtkGetMacro(InitialIntegrationStep,
double);
255 vtkSetMacro(MinimumIntegrationStep,
double);
256 vtkGetMacro(MinimumIntegrationStep,
double);
266 vtkSetMacro(MaximumIntegrationStep,
double);
267 vtkGetMacro(MaximumIntegrationStep,
double);
274 vtkSetMacro(MaximumError,
double);
275 vtkGetMacro(MaximumError,
double);
290 vtkSetMacro(TerminalSpeed,
double);
291 vtkGetMacro(TerminalSpeed,
double);
298 vtkGetMacro(SurfaceStreamlines,
bool);
299 vtkSetMacro(SurfaceStreamlines,
bool);
300 vtkBooleanMacro(SurfaceStreamlines,
bool);
313 INTERPOLATOR_WITH_CELL_LOCATOR
321 vtkSetClampMacro(IntegrationDirection,
int, FORWARD, BOTH);
322 vtkGetMacro(IntegrationDirection,
int);
324 {this->SetIntegrationDirection(FORWARD);};
326 {this->SetIntegrationDirection(BACKWARD);};
328 {this->SetIntegrationDirection(BOTH);};
337 vtkSetMacro(ComputeVorticity,
bool);
338 vtkGetMacro(ComputeVorticity,
bool);
346 vtkSetMacro(RotationScale,
double);
347 vtkGetMacro(RotationScale,
double);
376 typedef bool (*CustomTerminationCallbackType)(
void * clientdata,
379 int integrationDirection);
389 CustomTerminationCallbackType callback,
void* clientdata,
int reasonForTermination);
401 { vtkErrorMacro( <<
"AddInput() must be called with a vtkDataSet not a vtkDataObject."); };
417 const char *vecFieldName,
420 double& integrationTime);
432 double StartPosition[3];
485 friend class PStreamTracerUtils;
represent and manipulate 3D points
static double ConvertToLength(double interval, int unit, double cellLength)
vtkCompositeDataSet * InputData
void SetIntegratorTypeToRungeKutta2()
void ConvertIntervals(double &step, double &minStep, double &maxStep, int direction, double cellLength)
bool HasMatchingPointAttributes
bool GenerateNormalsInIntegrate
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 AddCustomTerminationCallback(CustomTerminationCallbackType callback, void *clientdata, int reasonForTermination)
Adds a custom termination callback.
represent and manipulate point attribute data
void CalculateVorticity(vtkGenericCell *cell, double pcoords[3], vtkDoubleArray *cellVectors, double vorticity[3])
int GetIntegrationStepUnit()
void SetSourceData(vtkDataSet *source)
Specify the source object used to generate starting points (seeds).
void GenerateNormals(vtkPolyData *output, double *firstNormal, const char *vecName)
represent and manipulate attribute data in a dataset
vtkInitialValueProblemSolver * Integrator
double MaximumPropagation
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void SetIntegrationStepUnit(int unit)
Specify a uniform integration step unit for MinimumIntegrationStep, InitialIntegrationStep,...
void SetIntegrationDirectionToForward()
void InitializeSeeds(vtkDataArray *&seeds, vtkIdList *&seedIds, vtkIntArray *&integrationDirections, vtkDataSet *source)
abstract superclass for arrays of numeric data
void SetSourceConnection(vtkAlgorithmOutput *algOutput)
Specify the source object used to generate starting points (seeds).
abstract superclass for composite (multi-block or AMR) datasets
std::vector< void * > CustomTerminationClientData
static double ConvertToLength(IntervalInformation &interval, double cellLength)
int FillInputPortInformation(int, vtkInformation *) override
Fill the input port information objects for this algorithm.
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetInterpolatorTypeToCellLocator()
Set the velocity field interpolator type to the one involving a cell locator.
@ INTERPOLATOR_WITH_DATASET_POINT_LOCATOR
Superclass for all pipeline executives in VTK.
vtkIdType MaximumNumberOfSteps
void SetIntegrator(vtkInitialValueProblemSolver *)
Set/get the integrator type to be used for streamline generation.
void SetIntegrationDirectionToBoth()
double SimpleIntegrate(double seed[3], double lastPoint[3], double stepSize, vtkAbstractInterpolatedVelocityField *func)
void SetIntegratorTypeToRungeKutta45()
double MinimumIntegrationStep
static const double EPSILON
int SetupOutput(vtkInformation *inInfo, vtkInformation *outInfo)
a simple class to control print indentation
dynamic, self-adjusting array of int
std::vector< CustomTerminationCallbackType > CustomTerminationCallback
list of point or cell ids
~vtkStreamTracer() override
void AddInput(vtkDataObject *)
abstract class to specify dataset behavior
An abstract class for obtaining the interpolated velocity values at a point.
int CheckInputs(vtkAbstractInterpolatedVelocityField *&func, int *maxCellSize)
vtkAbstractInterpolatedVelocityField * InterpolatorPrototype
Proxy object to connect input/output ports.
double InitialIntegrationStep
void SetInterpolatorType(int interpType)
Set the type of the velocity field interpolator to determine whether vtkInterpolatedVelocityField (IN...
concrete dataset represents vertices, lines, polygons, and triangle strips
provides thread-safe access to cells
dynamic, self-adjusting array of double
void SetInterpolatorTypeToDataSetPointLocator()
Set the velocity field interpolator type to the one involving a dataset point locator.
void SetIntegrationDirectionToBackward()
std::vector< int > CustomReasonForTermination
double MaximumIntegrationStep
Integrate a set of ordinary differential equations (initial value problem) in time.
general representation of visualization data
static vtkStreamTracer * New()
Construct object to start from position (0,0,0), with forward integration, terminal speed 1....
void SetIntegratorTypeToRungeKutta4()
void SetInterpolatorPrototype(vtkAbstractInterpolatedVelocityField *ivf)
The object used to interpolate the velocity field during integration is of the same class as this pro...
vtkExecutive * CreateDefaultExecutive() override
Create a default executive.
Superclass for algorithms that produce only polydata as output.
void SetIntegratorType(int type)