Go to the documentation of this file.
92 #ifndef vtkEvenlySpacedStreamlines2D_h
93 #define vtkEvenlySpacedStreamlines2D_h
95 #include "vtkFiltersFlowPathsModule.h"
138 vtkSetVector3Macro(StartPosition,
double);
139 vtkGetVector3Macro(StartPosition,
double);
207 vtkSetMacro(InitialIntegrationStep,
double);
208 vtkGetMacro(InitialIntegrationStep,
double);
216 vtkSetMacro(SeparatingDistance,
double);
217 vtkGetMacro(SeparatingDistance,
double);
225 vtkSetMacro(SeparatingDistanceRatio,
double);
226 vtkGetMacro(SeparatingDistanceRatio,
double);
234 vtkSetMacro(ClosedLoopMaximumDistance,
double);
235 vtkGetMacro(ClosedLoopMaximumDistance,
double);
244 vtkSetMacro(LoopAngle,
double);
245 vtkGetMacro(LoopAngle,
double);
253 vtkSetMacro(TerminalSpeed,
double);
254 vtkGetMacro(TerminalSpeed,
double);
263 vtkSetMacro(ComputeVorticity,
bool);
264 vtkGetMacro(ComputeVorticity,
bool);
299 vtkErrorMacro(<<
"AddInput() must be called with a vtkDataSet not a vtkDataObject.");
324 template<
typename CellCheckerType>
329 template <
int distanceType>
339 double StartPosition[3];
376 std::vector<std::vector<std::array<double,3> > >
AllPoints;
represent and manipulate 3D points
void SetInterpolatorTypeToDataSetPointLocator()
Set the velocity field interpolator type to the one involving a dataset point locator.
int SetupOutput(vtkInformation *inInfo, vtkInformation *outInfo)
vtkIdType MinimumNumberOfStreamlinePoints
maintain a list of polygonal data objects
std::vector< std::vector< std::array< double, 3 > > > AllPoints
~vtkEvenlySpacedStreamlines2D() override
int GetIntegrationStepUnit()
void InitializeSuperposedGrid(double *bounds)
vtkAbstractInterpolatedVelocityField * InterpolatorPrototype
void SetInterpolatorType(int interpType)
Set the type of the velocity field interpolator to determine whether vtkInterpolatedVelocityField (IN...
double SeparatingDistance
void SetIntegratorTypeToRungeKutta4()
DistanceType
Do we test for separating distance or a ratio of the separating distance.
std::vector< std::vector< vtkIdType > > CurrentPoints
vtkInitialValueProblemSolver * Integrator
void InitializePoints(T &points)
vtkEvenlySpacedStreamlines2D()
Evenly spaced streamline generator for 2D.
abstract superclass for arrays of numeric data
const char * GetInputArrayToProcessName()
void SetIntegratorTypeToRungeKutta2()
abstract superclass for composite (multi-block or AMR) datasets
std::vector< vtkIdType > MinPointIds
void AddInput(vtkDataObject *)
static bool IsStreamlineTooCloseToOthers(void *clientdata, vtkPoints *points, vtkDataArray *velocity, int direction)
Superclass for all pipeline executives in VTK.
vtkIdType MinimumNumberOfLoopPoints
double ClosedLoopMaximumDistanceArcLength
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static bool IsStreamlineLooping(void *clientdata, vtkPoints *points, vtkDataArray *velocity, int direction)
int ComputeCellLength(double *cellLength)
topologically and geometrically regular array of data
a simple class to control print indentation
dynamic, self-adjusting array of int
vtkImageData * SuperposedGrid
bool IsTooClose(double *point, vtkIdType cellId, vtkPoints *points, vtkDataArray *velocity, int direction)
double InitialIntegrationStep
list of point or cell ids
static vtkEvenlySpacedStreamlines2D * New()
Construct object to start from position (0,0,0), with forward integration, terminal speed 1....
bool ForEachCell(double *point, CellCheckerType checker, vtkPoints *points=nullptr, vtkDataArray *velocity=nullptr, int direction=1)
double ClosedLoopMaximumDistance
vtkCompositeDataSet * InputData
double SeparatingDistanceRatio
int CheckInputs(vtkAbstractInterpolatedVelocityField *&func, int *maxCellSize)
double ConvertToLength(double interval, int unit, double cellLength)
void AddToAllPoints(vtkPolyData *streamline)
double SeparatingDistanceArcLength
An abstract class for obtaining the interpolated velocity values at a point.
void AddToCurrentPoints(vtkIdType pointId)
void SetIntegratorType(int type)
vtkPolyDataCollection * Streamlines
void SetIntegrator(vtkInitialValueProblemSolver *)
Set/get the integrator type to be used for streamline generation.
concrete dataset represents vertices, lines, polygons, and triangle strips
provides thread-safe access to cells
void InitializeMinPointIds()
void SetIntegrationStepUnit(int unit)
Specify a uniform integration step unit for InitialIntegrationStep, and SeparatingDistance.
dynamic, self-adjusting array of double
void SetInterpolatorTypeToCellLocator()
Set the velocity field interpolator type to the one involving a cell locator.
void SetInterpolatorPrototype(vtkAbstractInterpolatedVelocityField *ivf)
The object used to interpolate the velocity field during integration is of the same class as this pro...
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkIdType MaximumNumberOfSteps
Integrate a set of ordinary differential equations (initial value problem) in time.
general representation of visualization data
static void GetBounds(vtkCompositeDataSet *cds, double bounds[6])
int FillInputPortInformation(int, vtkInformation *) override
Fill the input port information objects for this algorithm.
bool IsLooping(double *point, vtkIdType cellId, vtkPoints *points, vtkDataArray *velocity, int direction)
Superclass for algorithms that produce only polydata as output.