forked from Kitware/VTK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vtkLagrangianThreadedData.h
65 lines (50 loc) · 1.9 KB
/
vtkLagrangianThreadedData.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/*=========================================================================
Program: Visualization Toolkit
Module: vtkLagrangianParticleTracker.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
/**
* @struct vtkLagrangianThreadedData
* @brief struct to hold a user data
*
* Struct to hold threaded data used by the Lagrangian Particle Tracker.
* Can be inherited and initialized in custom models.
*/
#ifndef vtkLagrangianThreadedData_h
#define vtkLagrangianThreadedData_h
#ifndef __VTK_WRAP__
#include "vtkBilinearQuadIntersection.h"
#include "vtkFiltersFlowPathsModule.h" // For export macro
#include "vtkGenericCell.h"
#include "vtkIdList.h"
#include "vtkPolyData.h"
class vtkDataObject;
class vtkInitialValueProblemSolver;
struct VTKFILTERSFLOWPATHS_EXPORT vtkLagrangianThreadedData
{
vtkNew<vtkGenericCell> GenericCell;
vtkNew<vtkIdList> IdList;
vtkNew<vtkPolyData> ParticlePathsOutput;
// FindInLocators cache data
int LastDataSetIndex = -1;
vtkIdType LastCellId = -1;
double LastCellPosition[3];
std::vector<double> LastWeights;
vtkBilinearQuadIntersection* BilinearQuadIntersection;
vtkDataObject* InteractionOutput;
vtkInitialValueProblemSolver* Integrator;
vtkLagrangianThreadedData()
{
this->BilinearQuadIntersection = new vtkBilinearQuadIntersection;
this->IdList->Allocate(10);
}
~vtkLagrangianThreadedData() { delete this->BilinearQuadIntersection; }
};
#endif // __VTK_WRAP__
#endif // vtkLagrangianThreadedData_h
// VTK-HeaderTest-Exclude: vtkLagrangianThreadedData.h