VTK-m  2.0
FilterParticleAdvectionUnsteadyState.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_FilterParticleAdvectionUnsteadyState_h
12 #define vtk_m_filter_flow_FilterParticleAdvectionUnsteadyState_h
13 
15 #include <vtkm/filter/flow/vtkm_filter_flow_export.h>
16 
17 namespace vtkm
18 {
19 namespace filter
20 {
21 namespace flow
22 {
23 
24 class VTKM_FILTER_FLOW_EXPORT FilterParticleAdvectionUnsteadyState : public FilterParticleAdvection
25 {
26 public:
27  VTKM_CONT void SetPreviousTime(vtkm::FloatDefault t1) { this->Time1 = t1; }
28 
29  VTKM_CONT void SetNextTime(vtkm::FloatDefault t2) { this->Time2 = t2; }
30 
31  VTKM_CONT void SetNextDataSet(const vtkm::cont::DataSet& ds) { this->Input2 = { ds }; }
32 
33  VTKM_CONT void SetNextDataSet(const vtkm::cont::PartitionedDataSet& pds) { this->Input2 = pds; }
34 
35 protected:
36  VTKM_CONT virtual void ValidateOptions() const override;
37 
38 private:
39  VTKM_CONT vtkm::cont::PartitionedDataSet DoExecutePartitions(
40  const vtkm::cont::PartitionedDataSet& inData) override;
41 
43  vtkm::FloatDefault Time1 = -1;
44  vtkm::FloatDefault Time2 = -1;
45 };
46 
47 }
48 }
49 } // namespace vtkm::filter::flow
50 
51 #endif // vtk_m_filter_flow_FilterParticleAdvectionUnsteadyState_h
vtkm::filter::flow::FilterParticleAdvectionUnsteadyState::SetNextDataSet
VTKM_CONT void SetNextDataSet(const vtkm::cont::DataSet &ds)
Definition: FilterParticleAdvectionUnsteadyState.h:31
vtkm
Groups connected points that have the same field value.
Definition: Atomic.h:19
vtkm::filter::flow::FilterParticleAdvectionUnsteadyState::SetNextDataSet
VTKM_CONT void SetNextDataSet(const vtkm::cont::PartitionedDataSet &pds)
Definition: FilterParticleAdvectionUnsteadyState.h:33
vtkm::cont::DataSet
Definition: DataSet.h:34
vtkm::filter::flow::FilterParticleAdvectionUnsteadyState::Input2
vtkm::cont::PartitionedDataSet Input2
Definition: FilterParticleAdvectionUnsteadyState.h:42
vtkm::filter::flow::FilterParticleAdvectionUnsteadyState::SetPreviousTime
VTKM_CONT void SetPreviousTime(vtkm::FloatDefault t1)
Definition: FilterParticleAdvectionUnsteadyState.h:27
VTKM_CONT
#define VTKM_CONT
Definition: ExportMacros.h:57
vtkm::filter::flow::FilterParticleAdvection
base class for advecting particles in a vector field.
Definition: FilterParticleAdvection.h:31
vtkm::FloatDefault
vtkm::Float32 FloatDefault
The floating point type to use when no other precision is specified.
Definition: Types.h:198
vtkm::filter::flow::FilterParticleAdvectionUnsteadyState::SetNextTime
VTKM_CONT void SetNextTime(vtkm::FloatDefault t2)
Definition: FilterParticleAdvectionUnsteadyState.h:29
vtkm::filter::flow::FilterParticleAdvectionUnsteadyState
Definition: FilterParticleAdvectionUnsteadyState.h:24
FilterParticleAdvection.h
vtkm::cont::PartitionedDataSet
Definition: PartitionedDataSet.h:25