2019-08-27 22:42:25 +00:00
|
|
|
//============================================================================
|
|
|
|
// Copyright (c) Kitware, Inc.
|
|
|
|
// All rights reserved.
|
|
|
|
// See LICENSE.txt for details.
|
2019-08-23 00:23:34 +00:00
|
|
|
//
|
2019-08-27 22:42:25 +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.
|
|
|
|
//============================================================================
|
2019-08-23 00:23:34 +00:00
|
|
|
|
|
|
|
#ifndef vtk_m_source_Tangle_h
|
|
|
|
#define vtk_m_source_Tangle_h
|
|
|
|
|
|
|
|
#include <vtkm/source/Source.h>
|
|
|
|
|
|
|
|
namespace vtkm
|
|
|
|
{
|
|
|
|
namespace source
|
|
|
|
{
|
2019-09-13 12:12:03 +00:00
|
|
|
/**
|
|
|
|
* @brief The Tangle source creates a uniform dataset.
|
|
|
|
*
|
|
|
|
* This class generates a predictable uniform grid dataset with an
|
|
|
|
* interesting set of point and cell scalar arrays, which is useful
|
|
|
|
* for testing and benchmarking.
|
|
|
|
*
|
|
|
|
* The Execute method creates a complete structured dataset that have a
|
|
|
|
* point field named 'nodevar', and a cell field named 'cellvar'.
|
|
|
|
*
|
|
|
|
**/
|
|
|
|
class VTKM_SOURCE_EXPORT Tangle final : public vtkm::source::Source
|
2019-08-23 00:23:34 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
VTKM_CONT
|
|
|
|
Tangle(vtkm::Id3 dims)
|
|
|
|
: Dims(dims)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2019-08-23 17:56:17 +00:00
|
|
|
vtkm::cont::DataSet Execute() const;
|
2019-08-23 00:23:34 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
vtkm::Id3 Dims;
|
|
|
|
};
|
|
|
|
} //namespace source
|
|
|
|
} //namespace vtkm
|
|
|
|
|
2019-09-13 12:12:03 +00:00
|
|
|
#endif //vtk_m_source_Tangle_h
|