VTK  9.1.0
vtkLagrangianThreadedData.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkLagrangianParticleTracker.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
23 #ifndef vtkLagrangianThreadedData_h
24 #define vtkLagrangianThreadedData_h
25 
26 #ifndef __VTK_WRAP__
27 
29 #include "vtkFiltersFlowPathsModule.h" // For export macro
30 #include "vtkGenericCell.h"
31 #include "vtkIdList.h"
32 #include "vtkPolyData.h"
33 
34 class vtkDataObject;
36 
37 struct VTKFILTERSFLOWPATHS_EXPORT vtkLagrangianThreadedData
38 {
42 
43  // FindInLocators cache data
44  int LastDataSetIndex = -1;
45  vtkIdType LastCellId = -1;
46  double LastCellPosition[3];
47  std::vector<double> LastWeights;
48 
52 
54  {
55  this->BilinearQuadIntersection = new vtkBilinearQuadIntersection;
56  this->IdList->Allocate(10);
57  }
58 
59  ~vtkLagrangianThreadedData() { delete this->BilinearQuadIntersection; }
60 };
61 
62 #endif // __VTK_WRAP__
63 
64 #endif // vtkLagrangianThreadedData_h
65 // VTK-HeaderTest-Exclude: vtkLagrangianThreadedData.h
vtkIdList::Allocate
int Allocate(const vtkIdType sz, const int strategy=0)
Allocate a capacity for sz ids in the list and set the number of stored ids in the list to 0.
vtkLagrangianThreadedData::BilinearQuadIntersection
vtkBilinearQuadIntersection * BilinearQuadIntersection
Definition: vtkLagrangianThreadedData.h:49
vtkPolyData.h
vtkIdType
int vtkIdType
Definition: vtkType.h:332
vtkLagrangianThreadedData::LastWeights
std::vector< double > LastWeights
Definition: vtkLagrangianThreadedData.h:47
vtkLagrangianThreadedData::IdList
vtkNew< vtkIdList > IdList
Definition: vtkLagrangianThreadedData.h:40
vtkLagrangianThreadedData::~vtkLagrangianThreadedData
~vtkLagrangianThreadedData()
Definition: vtkLagrangianThreadedData.h:59
vtkLagrangianThreadedData::GenericCell
vtkNew< vtkGenericCell > GenericCell
Definition: vtkLagrangianThreadedData.h:39
vtkLagrangianThreadedData::vtkLagrangianThreadedData
vtkLagrangianThreadedData()
Definition: vtkLagrangianThreadedData.h:53
vtkLagrangianThreadedData
struct to hold a user data
Definition: vtkLagrangianThreadedData.h:38
vtkNew< vtkGenericCell >
vtkBilinearQuadIntersection.h
vtkGenericCell.h
vtkLagrangianThreadedData::Integrator
vtkInitialValueProblemSolver * Integrator
Definition: vtkLagrangianThreadedData.h:51
vtkInitialValueProblemSolver
Integrate a set of ordinary differential equations (initial value problem) in time.
Definition: vtkInitialValueProblemSolver.h:41
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:169
vtkLagrangianThreadedData::ParticlePathsOutput
vtkNew< vtkPolyData > ParticlePathsOutput
Definition: vtkLagrangianThreadedData.h:41
vtkLagrangianThreadedData::InteractionOutput
vtkDataObject * InteractionOutput
Definition: vtkLagrangianThreadedData.h:50
vtkIdList.h
vtkBilinearQuadIntersection
Class to perform non planar quad intersection.
Definition: vtkBilinearQuadIntersection.h:31