VTK-m
2.2
vtkm
filter
flow
Pathline.h
Go to the documentation of this file.
1
//============================================================================
2
// Copyright (c) Kitware, Inc.
3
// All rights reserved.
4
// See LICENSE.txt for details.
5
//
6
// This software is distributed WITHOUT ANY WARRANTY; without even
7
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
8
// PURPOSE. See the above copyright notice for more information.
9
//============================================================================
10
11
#ifndef vtk_m_filter_flow_Pathline_h
12
#define vtk_m_filter_flow_Pathline_h
13
14
#include <
vtkm/filter/flow/FilterParticleAdvectionUnsteadyState.h
>
15
#include <
vtkm/filter/flow/FlowTypes.h
>
16
#include <
vtkm/filter/flow/vtkm_filter_flow_export.h
>
17
18
#include <vtkm/filter/flow/worklet/Analysis.h>
19
#include <vtkm/filter/flow/worklet/Field.h>
20
#include <vtkm/filter/flow/worklet/Termination.h>
21
22
namespace
vtkm
23
{
24
namespace
filter
25
{
26
namespace
flow
27
{
28
29
class
Pathline;
30
31
template
<>
32
struct
FlowTraits
<
Pathline
>
33
{
34
using
ParticleType
=
vtkm::Particle
;
35
using
TerminationType
= vtkm::worklet::flow::NormalTermination;
36
using
AnalysisType
= vtkm::worklet::flow::StreamlineAnalysis<ParticleType>;
37
using
ArrayType
=
vtkm::cont::ArrayHandle<vtkm::Vec3f>
;
38
using
FieldType
= vtkm::worklet::flow::VelocityField<ArrayType>;
39
};
40
49
class
VTKM_FILTER_FLOW_EXPORT
Pathline
50
:
public
vtkm::filter::flow::FilterParticleAdvectionUnsteadyState
<Pathline>
51
{
52
public
:
53
using
ParticleType
=
typename
FlowTraits<Pathline>::ParticleType
;
54
using
TerminationType
=
typename
FlowTraits<Pathline>::TerminationType
;
55
using
AnalysisType
=
typename
FlowTraits<Pathline>::AnalysisType
;
56
using
ArrayType
=
typename
FlowTraits<Pathline>::ArrayType
;
57
using
FieldType
=
typename
FlowTraits<Pathline>::FieldType
;
58
59
VTKM_CONT
FieldType
GetField(
const
vtkm::cont::DataSet
& data)
const
;
60
61
VTKM_CONT
TerminationType
GetTermination(
const
vtkm::cont::DataSet
& data)
const
;
62
63
VTKM_CONT
AnalysisType
GetAnalysis(
const
vtkm::cont::DataSet
& data)
const
;
64
};
65
66
}
67
}
68
}
// namespace vtkm::filter::flow
69
70
#endif // vtk_m_filter_flow_Pathline_h
vtkm::cont::ArrayHandle
Manages an array-worth of data.
Definition:
ArrayHandle.h:300
vtkm
Groups connected points that have the same field value.
Definition:
Atomic.h:19
vtkm::filter::flow::Pathline::TerminationType
typename FlowTraits< Pathline >::TerminationType TerminationType
Definition:
Pathline.h:54
vtkm::filter::flow::Pathline::FieldType
typename FlowTraits< Pathline >::FieldType FieldType
Definition:
Pathline.h:57
vtkm::Particle
Definition:
Particle.h:90
vtkm::filter::flow::FlowTraits
Definition:
FilterParticleAdvectionSteadyState.h:26
vtkm::filter::flow::Pathline
Advect particles in a time-varying vector field and display the path they take.
Definition:
Pathline.h:49
vtkm::cont::DataSet
Contains and manages the geometric data structures that VTK-m operates on.
Definition:
DataSet.h:57
vtkm::filter::flow::FlowTraits< Pathline >::FieldType
vtkm::worklet::flow::VelocityField< ArrayType > FieldType
Definition:
Pathline.h:38
vtkm::filter::flow::Pathline::ParticleType
typename FlowTraits< Pathline >::ParticleType ParticleType
Definition:
Pathline.h:53
vtkm::filter::flow::Pathline::ArrayType
typename FlowTraits< Pathline >::ArrayType ArrayType
Definition:
Pathline.h:56
vtkm::filter::flow::FlowTraits< Pathline >::AnalysisType
vtkm::worklet::flow::StreamlineAnalysis< ParticleType > AnalysisType
Definition:
Pathline.h:36
VTKM_CONT
#define VTKM_CONT
Definition:
ExportMacros.h:57
VTKM_FILTER_FLOW_EXPORT
#define VTKM_FILTER_FLOW_EXPORT
Definition:
vtkm_filter_flow_export.h:44
vtkm::filter::flow::FilterParticleAdvectionUnsteadyState
Superclass for filters that operate on flow that changes over time.
Definition:
FilterParticleAdvectionUnsteadyState.h:30
vtkm_filter_flow_export.h
vtkm::filter::flow::Pathline::AnalysisType
typename FlowTraits< Pathline >::AnalysisType AnalysisType
Definition:
Pathline.h:55
vtkm::filter::flow::FlowTraits< Pathline >::TerminationType
vtkm::worklet::flow::NormalTermination TerminationType
Definition:
Pathline.h:35
FlowTypes.h
FilterParticleAdvectionUnsteadyState.h
Generated by
1.8.17