2017-09-21 18:27:32 +00:00
|
|
|
//============================================================================
|
|
|
|
// Copyright (c) Kitware, Inc.
|
|
|
|
// All rights reserved.
|
|
|
|
// See LICENSE.txt for details.
|
2019-04-15 23:24:21 +00:00
|
|
|
//
|
2017-09-21 18:27:32 +00:00
|
|
|
// 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
|
|
|
|
|
2021-06-11 12:00:25 +00:00
|
|
|
#include <vtkm/filter/FilterParticleAdvection.h>
|
2017-09-21 18:27:32 +00:00
|
|
|
|
|
|
|
namespace vtkm
|
|
|
|
{
|
|
|
|
namespace filter
|
|
|
|
{
|
2021-06-22 17:36:14 +00:00
|
|
|
/// \brief Generate streamlines from a vector field.
|
2017-09-21 18:27:32 +00:00
|
|
|
|
2017-09-28 12:09:57 +00:00
|
|
|
/// Takes as input a vector field and seed locations and generates the
|
|
|
|
/// paths taken by the seeds through the vector field.
|
2021-06-11 12:00:25 +00:00
|
|
|
class Streamline : public vtkm::filter::FilterParticleAdvection<Streamline>
|
2017-09-21 18:27:32 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
VTKM_CONT
|
|
|
|
Streamline();
|
|
|
|
|
2020-08-13 14:01:52 +00:00
|
|
|
template <typename DerivedPolicy>
|
|
|
|
vtkm::cont::PartitionedDataSet PrepareForExecution(
|
|
|
|
const vtkm::cont::PartitionedDataSet& input,
|
2018-08-30 15:53:18 +00:00
|
|
|
const vtkm::filter::PolicyBase<DerivedPolicy>& policy);
|
2017-09-21 18:27:32 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
};
|
|
|
|
}
|
|
|
|
} // namespace vtkm::filter
|
|
|
|
|
2020-02-06 21:58:59 +00:00
|
|
|
#ifndef vtk_m_filter_Streamline_hxx
|
2017-09-21 18:27:32 +00:00
|
|
|
#include <vtkm/filter/Streamline.hxx>
|
2020-02-06 21:58:59 +00:00
|
|
|
#endif
|
2017-09-21 18:27:32 +00:00
|
|
|
|
|
|
|
#endif // vtk_m_filter_Streamline_h
|