2021-06-11 12:00:25 +00:00
|
|
|
//============================================================================
|
|
|
|
// Copyright (c) Kitware, Inc.
|
|
|
|
// All rights reserved.
|
|
|
|
// See LICENSE.txt for details.
|
|
|
|
//
|
|
|
|
// This software is distributed WITHOUT ANY WARRANTY; without even
|
|
|
|
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
|
|
// PURPOSE. See the above copyright notice for more information.
|
|
|
|
//============================================================================
|
|
|
|
|
|
|
|
#ifndef vtk_m_filter_PathParticle_h
|
|
|
|
#define vtk_m_filter_PathParticle_h
|
|
|
|
|
|
|
|
#include <vtkm/filter/FilterTemporalParticleAdvection.h>
|
|
|
|
|
|
|
|
namespace vtkm
|
|
|
|
{
|
|
|
|
namespace filter
|
|
|
|
{
|
2021-06-22 17:36:14 +00:00
|
|
|
/// \brief Advect particles in a time varying vector field.
|
2021-06-11 12:00:25 +00:00
|
|
|
|
|
|
|
/// Takes as input a vector field and seed locations and generates the
|
|
|
|
/// paths taken by the seeds through the vector field.
|
2021-11-22 20:10:08 +00:00
|
|
|
template <typename ParticleType>
|
2021-11-23 03:20:38 +00:00
|
|
|
class PathParticleBase
|
|
|
|
: public vtkm::filter::FilterTemporalParticleAdvection<PathParticleBase<ParticleType>,
|
|
|
|
ParticleType>
|
2021-06-11 12:00:25 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
VTKM_CONT
|
2021-11-23 03:20:38 +00:00
|
|
|
PathParticleBase();
|
2021-06-11 12:00:25 +00:00
|
|
|
|
|
|
|
template <typename DerivedPolicy>
|
|
|
|
vtkm::cont::PartitionedDataSet PrepareForExecution(
|
|
|
|
const vtkm::cont::PartitionedDataSet& input,
|
|
|
|
const vtkm::filter::PolicyBase<DerivedPolicy>& policy);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
private:
|
|
|
|
};
|
|
|
|
|
2021-11-23 03:20:38 +00:00
|
|
|
using PathParticle = PathParticleBase<vtkm::Particle>;
|
|
|
|
|
2021-06-11 12:00:25 +00:00
|
|
|
}
|
|
|
|
} // namespace vtkm::filter
|
|
|
|
|
|
|
|
#ifndef vtk_m_filter_PathParticle_hxx
|
|
|
|
#include <vtkm/filter/PathParticle.hxx>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif // vtk_m_filter_PathParticle_h
|