mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-19 18:45:43 +00:00
405643ddbb
During the VTK-m 1.8 and 1.9 development, the filter infrastructure was overhauled. Part of this created a completely new set of base classes. To avoid confusion with the original filter base classes and ease transition, the new filter base classes were named `NewFilter*`. Eventually after all filters were transitioned, the old filter base classes were deprecated. With the release of VTK-m 2.0, the old filter base classes are removed. The "new" filter base classes are no longer new. Thus, they have been renamed simply `Filter` (and `FilterField`).
45 lines
1.3 KiB
C++
45 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_zfp_ZFPDecompressor1D_h
|
|
#define vtk_m_filter_zfp_ZFPDecompressor1D_h
|
|
|
|
#include <vtkm/filter/FilterField.h>
|
|
#include <vtkm/filter/zfp/vtkm_filter_zfp_export.h>
|
|
|
|
namespace vtkm
|
|
{
|
|
namespace filter
|
|
{
|
|
namespace zfp
|
|
{
|
|
/// \brief Compress a scalar field using ZFP
|
|
|
|
/// Takes as input a 1D array and generates on
|
|
/// output of compressed data.
|
|
/// @warning
|
|
/// This filter is currently only supports 1D volumes.
|
|
class VTKM_FILTER_ZFP_EXPORT ZFPDecompressor1D : public vtkm::filter::FilterField
|
|
{
|
|
public:
|
|
void SetRate(vtkm::Float64 _rate) { rate = _rate; }
|
|
vtkm::Float64 GetRate() { return rate; }
|
|
|
|
private:
|
|
VTKM_CONT vtkm::cont::DataSet DoExecute(const vtkm::cont::DataSet& input) override;
|
|
|
|
vtkm::Float64 rate = 0;
|
|
};
|
|
} // namespace zfp
|
|
} // namespace filter
|
|
} // namespace vtkm
|
|
|
|
#endif // vtk_m_filter_zfp_ZFPDecompressor1D_h
|