Viskores  1.0
FilterParticleAdvectionUnsteadyState.h
Go to the documentation of this file.
1 //============================================================================
2 // The contents of this file are covered by the Viskores license. See
3 // LICENSE.txt for details.
4 //
5 // By contributing to this file, all contributors agree to the Developer
6 // Certificate of Origin Version 1.1 (DCO 1.1) as stated in DCO.txt.
7 //============================================================================
8 
9 //============================================================================
10 // Copyright (c) Kitware, Inc.
11 // All rights reserved.
12 // See LICENSE.txt for details.
13 //
14 // This software is distributed WITHOUT ANY WARRANTY; without even
15 // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
16 // PURPOSE. See the above copyright notice for more information.
17 //============================================================================
18 
19 #ifndef viskores_filter_flow_FilterParticleAdvectionUnsteadyState_h
20 #define viskores_filter_flow_FilterParticleAdvectionUnsteadyState_h
21 
24 
25 namespace viskores
26 {
27 namespace filter
28 {
29 namespace flow
30 {
31 
32 template <typename Derived>
33 struct FlowTraits;
34 
37 template <typename Derived>
38 class VISKORES_FILTER_FLOW_EXPORT FilterParticleAdvectionUnsteadyState
40 {
41 public:
46 
50  VISKORES_CONT void SetPreviousTime(viskores::FloatDefault t1) { this->Time1 = t1; }
51 
55  VISKORES_CONT void SetNextTime(viskores::FloatDefault t2) { this->Time2 = t2; }
56 
58  VISKORES_CONT void SetNextDataSet(const viskores::cont::DataSet& ds) { this->Input2 = { ds }; }
59 
62  {
63  this->Input2 = pds;
64  }
65 
66 private:
67  VISKORES_CONT FieldType GetField(const viskores::cont::DataSet& data) const;
68 
69  VISKORES_CONT TerminationType GetTermination(const viskores::cont::DataSet& data) const;
70 
71  VISKORES_CONT AnalysisType GetAnalysis(const viskores::cont::DataSet& data) const;
72 
75 
79 };
80 
81 }
82 }
83 } // namespace viskores::filter::flow
84 
85 #endif // viskores_filter_flow_FilterParticleAdvectionUnsteadyState_h
viskores::filter::flow::FilterParticleAdvection
base class for advecting particles in a vector field.
Definition: FilterParticleAdvection.h:42
viskores::filter::flow::FilterParticleAdvectionUnsteadyState< Pathline >::FieldType
typename FlowTraits< Pathline >::FieldType FieldType
Definition: FilterParticleAdvectionUnsteadyState.h:43
viskores::filter::flow::FilterParticleAdvectionUnsteadyState
Superclass for filters that operate on flow that changes over time.
Definition: FilterParticleAdvectionUnsteadyState.h:38
viskores::filter::flow::FilterParticleAdvectionUnsteadyState::SetNextDataSet
void SetNextDataSet(const viskores::cont::PartitionedDataSet &pds)
Specifies the data for the later time step.
Definition: FilterParticleAdvectionUnsteadyState.h:61
viskores::cont::DataSet
Contains and manages the geometric data structures that Viskores operates on.
Definition: DataSet.h:66
viskores::filter::flow::FilterParticleAdvectionUnsteadyState::SetPreviousTime
void SetPreviousTime(viskores::FloatDefault t1)
Specifies time value for the input data set.
Definition: FilterParticleAdvectionUnsteadyState.h:50
viskores::filter::flow::FlowTraits
Definition: FilterParticleAdvectionSteadyState.h:34
viskores::filter::flow::FilterParticleAdvectionUnsteadyState::SetNextTime
void SetNextTime(viskores::FloatDefault t2)
Specifies time value for the next data set.
Definition: FilterParticleAdvectionUnsteadyState.h:55
viskores::filter::flow::FilterParticleAdvectionUnsteadyState< Pathline >::AnalysisType
typename FlowTraits< Pathline >::AnalysisType AnalysisType
Definition: FilterParticleAdvectionUnsteadyState.h:45
viskores::filter::flow::FilterParticleAdvectionUnsteadyState::Input2
viskores::cont::PartitionedDataSet Input2
Definition: FilterParticleAdvectionUnsteadyState.h:76
viskores_filter_flow_export.h
viskores::filter::flow::FilterParticleAdvectionUnsteadyState< Pathline >::TerminationType
typename FlowTraits< Pathline >::TerminationType TerminationType
Definition: FilterParticleAdvectionUnsteadyState.h:44
VISKORES_CONT
#define VISKORES_CONT
Definition: ExportMacros.h:65
viskores
Groups connected points that have the same field value.
Definition: Atomic.h:27
viskores::cont::PartitionedDataSet
Comprises a set of viskores::cont::DataSet objects.
Definition: PartitionedDataSet.h:34
viskores::filter::flow::FilterParticleAdvectionUnsteadyState< Pathline >::ParticleType
typename FlowTraits< Pathline >::ParticleType ParticleType
Definition: FilterParticleAdvectionUnsteadyState.h:42
viskores::FloatDefault
viskores::Float32 FloatDefault
The floating point type to use when no other precision is specified.
Definition: Types.h:244
viskores::filter::flow::FilterParticleAdvectionUnsteadyState::SetNextDataSet
void SetNextDataSet(const viskores::cont::DataSet &ds)
Specifies the data for the later time step.
Definition: FilterParticleAdvectionUnsteadyState.h:58
FilterParticleAdvection.h