VMTK
Loading...
Searching...
No Matches
vtkvmtkStaticTemporalStreamTracer.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4
5 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
6 All rights reserved.
7 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
8
9 This software is distributed WITHOUT ANY WARRANTY; without even
10 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11 PURPOSE. See the above copyright notice for more information.
12
13=========================================================================*/
14/*=========================================================================
15
16Program: VMTK
17
18 Copyright (c) Luca Antiga, David Steinman. All rights reserved.
19 See LICENSE file for details.
20
21 Portions of this code are covered under the VTK copyright.
22 See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm
23 for details.
24
25 This software is distributed WITHOUT ANY WARRANTY; without even
26 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
27 PURPOSE. See the above copyright notices for more information.
28
29=========================================================================*/
30
55
56#ifndef __vtkvmtkStaticTemporalStreamTracer_h
57#define __vtkvmtkStaticTemporalStreamTracer_h
58
59#include "vtkStreamTracer.h"
60#include "vtkvmtkWin32Header.h"
61
62class vtkTable;
63
64class VTK_VMTK_MISC_EXPORT vtkvmtkStaticTemporalStreamTracer : public vtkStreamTracer
65{
66public:
67 vtkTypeMacro(vtkvmtkStaticTemporalStreamTracer,vtkStreamTracer);
68 void PrintSelf(std::ostream& os, vtkIndent indent) override;
69
71
73
77 vtkSetMacro(SeedTime, double);
78 vtkGetMacro(SeedTime, double);
80
82
88 vtkSetStringMacro(SeedTimesArrayName);
89 vtkGetStringMacro(SeedTimesArrayName);
91
93
98 vtkSetMacro(Periodic, int);
99 vtkGetMacro(Periodic, int);
100 vtkBooleanMacro(Periodic, int);
102
104
108 vtkSetMacro(VelocityScale, double);
109 vtkGetMacro(VelocityScale, double);
111
113
120 vtkGetObjectMacro(TimeStepsTable,vtkTable);
121 virtual void SetTimeStepsTable(vtkTable*);
123
125
131 vtkSetMacro(UseVectorComponents, int);
132 vtkGetMacro(UseVectorComponents, int);
133 vtkBooleanMacro(UseVectorComponents, int);
135
137
142 vtkSetStringMacro(VectorPrefix);
143 vtkGetStringMacro(VectorPrefix);
145
147
152 vtkSetStringMacro(Component0Prefix);
153 vtkGetStringMacro(Component0Prefix);
155
157
162 vtkSetStringMacro(Component1Prefix);
163 vtkGetStringMacro(Component1Prefix);
165
167
172 vtkSetStringMacro(Component2Prefix);
173 vtkGetStringMacro(Component2Prefix);
175
176protected:
177
180
181 virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override;
182
184
185 int CheckInputs(vtkAbstractInterpolatedVelocityField*& func, int* maxCellSize);
186
187 void InitializeSeeds(vtkDataArray*& seeds,
188 vtkIdList*& seedIds,
189 vtkDoubleArray*& startTimes,
190 vtkIntArray*& integrationDirections,
191 vtkDataSet *source);
192
193 void Integrate(vtkDataSet *input,
194 vtkPolyData* output,
195 vtkDataArray* seedSource,
196 vtkIdList* seedIds,
197 vtkDoubleArray* startTimes,
198 vtkIntArray* integrationDirections,
199 double lastPoint[3],
200 vtkAbstractInterpolatedVelocityField* func,
201 int maxCellSize,
202 double& propagation,
203 vtkIdType& numSteps);
204
205 double SeedTime;
208
210
215
216 vtkTable* TimeStepsTable;
217
219
220private:
222 void operator=(const vtkvmtkStaticTemporalStreamTracer&); // Not implemented.
223};
224
225
226#endif
227
228
void PrintSelf(std::ostream &os, vtkIndent indent) override
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
virtual void SetTimeStepsTable(vtkTable *)
static vtkvmtkStaticTemporalStreamTracer * New()
void Integrate(vtkDataSet *input, vtkPolyData *output, vtkDataArray *seedSource, vtkIdList *seedIds, vtkDoubleArray *startTimes, vtkIntArray *integrationDirections, double lastPoint[3], vtkAbstractInterpolatedVelocityField *func, int maxCellSize, double &propagation, vtkIdType &numSteps)
void InitializeSeeds(vtkDataArray *&seeds, vtkIdList *&seedIds, vtkDoubleArray *&startTimes, vtkIntArray *&integrationDirections, vtkDataSet *source)
int CheckInputs(vtkAbstractInterpolatedVelocityField *&func, int *maxCellSize)