VTK-m  2.2
Streamline.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_Streamline_h
12 #define vtk_m_filter_flow_Streamline_h
13 
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 Streamline;
30 
31 template <>
33 {
35  using TerminationType = vtkm::worklet::flow::NormalTermination;
36  using AnalysisType = vtkm::worklet::flow::StreamlineAnalysis<ParticleType>;
38  using FieldType = vtkm::worklet::flow::VelocityField<ArrayType>;
39 };
40 
51 {
52 public:
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_Streamline_h
vtkm::filter::flow::Streamline::TerminationType
typename FlowTraits< Streamline >::TerminationType TerminationType
Definition: Streamline.h:54
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::Particle
Definition: Particle.h:90
vtkm::filter::flow::FlowTraits
Definition: FilterParticleAdvectionSteadyState.h:26
vtkm::filter::flow::Streamline::ParticleType
typename FlowTraits< Streamline >::ParticleType ParticleType
Definition: Streamline.h:53
vtkm::filter::flow::Streamline::AnalysisType
typename FlowTraits< Streamline >::AnalysisType AnalysisType
Definition: Streamline.h:55
vtkm::filter::flow::Streamline::FieldType
typename FlowTraits< Streamline >::FieldType FieldType
Definition: Streamline.h:57
vtkm::cont::DataSet
Contains and manages the geometric data structures that VTK-m operates on.
Definition: DataSet.h:57
vtkm::filter::flow::FlowTraits< Streamline >::FieldType
vtkm::worklet::flow::VelocityField< ArrayType > FieldType
Definition: Streamline.h:38
FilterParticleAdvectionSteadyState.h
vtkm::filter::flow::FlowTraits< Streamline >::TerminationType
vtkm::worklet::flow::NormalTermination TerminationType
Definition: Streamline.h:35
vtkm::filter::flow::Streamline::ArrayType
typename FlowTraits< Streamline >::ArrayType ArrayType
Definition: Streamline.h:56
vtkm::filter::flow::Streamline
Advect particles in a vector field and display the path they take.
Definition: Streamline.h:49
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::FilterParticleAdvectionSteadyState
Definition: FilterParticleAdvectionSteadyState.h:29
vtkm_filter_flow_export.h
FlowTypes.h
vtkm::filter::flow::FlowTraits< Streamline >::AnalysisType
vtkm::worklet::flow::StreamlineAnalysis< ParticleType > AnalysisType
Definition: Streamline.h:36