VTK-m  2.0
Public Member Functions | Private Member Functions | Private Attributes | List of all members
vtkm::source::Tangle Class Referencefinal

The Tangle source creates a uniform dataset. More...

#include <Tangle.h>

Inheritance diagram for vtkm::source::Tangle:
vtkm::source::Source

Public Member Functions

VTKM_CONT Tangle ()=default
 
VTKM_CONT ~Tangle ()=default
 
VTKM_CONT Tangle (vtkm::Id3 dims)
 
VTKM_CONT vtkm::Id3 GetPointDimensions () const
 
VTKM_CONT void SetPointDimensions (vtkm::Id3 dims)
 
VTKM_CONT vtkm::Id3 GetCellDimensions () const
 
VTKM_CONT void SetCellDimensions (vtkm::Id3 dims)
 
- Public Member Functions inherited from vtkm::source::Source
virtual VTKM_CONT ~Source ()=default
 
vtkm::cont::DataSet Execute () const
 

Private Member Functions

vtkm::cont::DataSet DoExecute () const override
 

Private Attributes

vtkm::Id3 PointDimensions = { 16, 16, 16 }
 

Additional Inherited Members

- Protected Attributes inherited from vtkm::source::Source
vtkm::cont::Invoker Invoke
 

Detailed Description

The Tangle source creates a uniform dataset.

This class generates a predictable uniform grid dataset with an interesting point field, which is useful for testing and benchmarking.

The Execute method creates a complete structured dataset of a resolution specified in the constructor that is bounded by the cube in the range [0,1] in each dimension. The dataset has a point field named 'tangle' computed with the following formula

x^4 - 5x^2 + y^4 - 5y^2 + z^4 - 5z^2

Constructor & Destructor Documentation

◆ Tangle() [1/2]

VTKM_CONT vtkm::source::Tangle::Tangle ( )
default

◆ ~Tangle()

VTKM_CONT vtkm::source::Tangle::~Tangle ( )
default

◆ Tangle() [2/2]

VTKM_CONT vtkm::source::Tangle::Tangle ( vtkm::Id3  dims)
inline

Member Function Documentation

◆ DoExecute()

vtkm::cont::DataSet vtkm::source::Tangle::DoExecute ( ) const
overrideprivatevirtual

Implements vtkm::source::Source.

◆ GetCellDimensions()

VTKM_CONT vtkm::Id3 vtkm::source::Tangle::GetCellDimensions ( ) const
inline

◆ GetPointDimensions()

VTKM_CONT vtkm::Id3 vtkm::source::Tangle::GetPointDimensions ( ) const
inline

◆ SetCellDimensions()

VTKM_CONT void vtkm::source::Tangle::SetCellDimensions ( vtkm::Id3  dims)
inline

◆ SetPointDimensions()

VTKM_CONT void vtkm::source::Tangle::SetPointDimensions ( vtkm::Id3  dims)
inline

Member Data Documentation

◆ PointDimensions

vtkm::Id3 vtkm::source::Tangle::PointDimensions = { 16, 16, 16 }
private

The documentation for this class was generated from the following file: