mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-19 18:45:43 +00:00
3e1339f9a7
With the major revision 2.0 of VTK-m, many items previously marked as deprecated were removed. If updating to a new version of VTK-m, it is recommended to first update to VTK-m 1.9, which will include the deprecated features but provide warnings (with the right compiler) that will point to the replacement code. Once the deprecations have been fixed, updating to 2.0 should be smoother.
44 lines
1.3 KiB
C++
44 lines
1.3 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_contour_Slice_h
|
|
#define vtk_m_filter_contour_Slice_h
|
|
|
|
#include <vtkm/filter/contour/Contour.h>
|
|
#include <vtkm/filter/contour/vtkm_filter_contour_export.h>
|
|
|
|
#include <vtkm/ImplicitFunction.h>
|
|
|
|
namespace vtkm
|
|
{
|
|
namespace filter
|
|
{
|
|
namespace contour
|
|
{
|
|
class VTKM_FILTER_CONTOUR_EXPORT Slice : public vtkm::filter::contour::Contour
|
|
{
|
|
public:
|
|
/// Set/Get the implicit function that is used to perform the slicing.
|
|
///
|
|
VTKM_CONT
|
|
void SetImplicitFunction(const vtkm::ImplicitFunctionGeneral& func) { this->Function = func; }
|
|
VTKM_CONT
|
|
const vtkm::ImplicitFunctionGeneral& GetImplicitFunction() const { return this->Function; }
|
|
|
|
private:
|
|
VTKM_CONT vtkm::cont::DataSet DoExecute(const vtkm::cont::DataSet& input) override;
|
|
|
|
vtkm::ImplicitFunctionGeneral Function;
|
|
};
|
|
} // namespace contour
|
|
} // namespace filter
|
|
} // namespace vtkm
|
|
|
|
#endif // vtk_m_filter_contour_Slice_h
|