vtk-m2/vtkm/filter/Streamline.h
2022-07-18 09:46:38 -04:00

49 lines
1.4 KiB
C++

//============================================================================
// 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_Streamline_h
#define vtk_m_filter_Streamline_h
#include <vtkm/Particle.h>
#include <vtkm/filter/NewFilterParticleAdvectionSteadyState.h>
#include <vtkm/filter/particleadvection/ParticleAdvectionTypes.h>
namespace vtkm
{
namespace filter
{
/// \brief Advect particles in a vector field.
/// Takes as input a vector field and seed locations and generates the
/// end points for each seed through the vector field.
class Streamline : public vtkm::filter::NewFilterParticleAdvectionSteadyState
{
public:
VTKM_CONT Streamline()
: NewFilterParticleAdvectionSteadyState(
vtkm::filter::particleadvection::ParticleAdvectionResultType::STREAMLINE_TYPE)
{
}
protected:
VTKM_CONT inline vtkm::cont::PartitionedDataSet DoExecutePartitions(
const vtkm::cont::PartitionedDataSet& inData) override;
};
}
} // namespace vtkm::filter
#ifndef vtk_m_filter_Streamline_hxx
#include <vtkm/filter/Streamline.hxx>
#endif
#endif // vtk_m_filter_Streamline_h