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

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

#include <PerlinNoise.h>

Inheritance diagram for vtkm::source::PerlinNoise:
vtkm::source::Source

Public Member Functions

VTKM_CONT PerlinNoise ()=default
 
VTKM_CONT ~PerlinNoise ()=default
 
VTKM_CONT PerlinNoise (const PerlinNoise &)=default
 
VTKM_CONT PerlinNoise (PerlinNoise &&)=default
 
VTKM_CONT PerlinNoiseoperator= (const PerlinNoise &)=default
 
VTKM_CONT PerlinNoiseoperator= (PerlinNoise &&)=default
 
VTKM_CONT PerlinNoise (vtkm::Id3 dims)
 
VTKM_CONT PerlinNoise (vtkm::Id3 dims, vtkm::IdComponent seed)
 
VTKM_CONT PerlinNoise (vtkm::Id3 dims, vtkm::Vec3f origin)
 
VTKM_CONT PerlinNoise (vtkm::Id3 dims, vtkm::Vec3f origin, vtkm::IdComponent seed)
 
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)
 
VTKM_CONT vtkm::Vec3f GetOrigin () const
 
VTKM_CONT void SetOrigin (const vtkm::Vec3f &origin)
 
VTKM_CONT vtkm::IdComponent GetSeed () const
 The seed used for the pseudorandom number generation of the noise. More...
 
VTKM_CONT void SetSeed (vtkm::IdComponent seed)
 
- 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 }
 
vtkm::Vec3f Origin = { 0, 0, 0 }
 
vtkm::IdComponent Seed = 0
 
bool SeedSet = false
 

Additional Inherited Members

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

Detailed Description

The PerlinNoise source creates a uniform dataset.

This class generates a uniform grid dataset with a tileable perlin noise scalar point field.

The Execute method creates a complete structured dataset that have a scalar point field named 'perlinnoise'.

Constructor & Destructor Documentation

◆ PerlinNoise() [1/7]

VTKM_CONT vtkm::source::PerlinNoise::PerlinNoise ( )
default

◆ ~PerlinNoise()

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

◆ PerlinNoise() [2/7]

VTKM_CONT vtkm::source::PerlinNoise::PerlinNoise ( const PerlinNoise )
default

◆ PerlinNoise() [3/7]

VTKM_CONT vtkm::source::PerlinNoise::PerlinNoise ( PerlinNoise &&  )
default

◆ PerlinNoise() [4/7]

VTKM_CONT vtkm::source::PerlinNoise::PerlinNoise ( vtkm::Id3  dims)

◆ PerlinNoise() [5/7]

VTKM_CONT vtkm::source::PerlinNoise::PerlinNoise ( vtkm::Id3  dims,
vtkm::IdComponent  seed 
)

◆ PerlinNoise() [6/7]

VTKM_CONT vtkm::source::PerlinNoise::PerlinNoise ( vtkm::Id3  dims,
vtkm::Vec3f  origin 
)

◆ PerlinNoise() [7/7]

VTKM_CONT vtkm::source::PerlinNoise::PerlinNoise ( vtkm::Id3  dims,
vtkm::Vec3f  origin,
vtkm::IdComponent  seed 
)

Member Function Documentation

◆ DoExecute()

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

Implements vtkm::source::Source.

◆ GetCellDimensions()

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

◆ GetOrigin()

VTKM_CONT vtkm::Vec3f vtkm::source::PerlinNoise::GetOrigin ( ) const
inline

◆ GetPointDimensions()

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

◆ GetSeed()

VTKM_CONT vtkm::IdComponent vtkm::source::PerlinNoise::GetSeed ( ) const
inline

The seed used for the pseudorandom number generation of the noise.

If the seed is not set, then a new, unique seed is picked each time Execute is run.

◆ operator=() [1/2]

VTKM_CONT PerlinNoise& vtkm::source::PerlinNoise::operator= ( const PerlinNoise )
default

◆ operator=() [2/2]

VTKM_CONT PerlinNoise& vtkm::source::PerlinNoise::operator= ( PerlinNoise &&  )
default

◆ SetCellDimensions()

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

◆ SetOrigin()

VTKM_CONT void vtkm::source::PerlinNoise::SetOrigin ( const vtkm::Vec3f origin)
inline

◆ SetPointDimensions()

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

◆ SetSeed()

VTKM_CONT void vtkm::source::PerlinNoise::SetSeed ( vtkm::IdComponent  seed)
inline

Member Data Documentation

◆ Origin

vtkm::Vec3f vtkm::source::PerlinNoise::Origin = { 0, 0, 0 }
private

◆ PointDimensions

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

◆ Seed

vtkm::IdComponent vtkm::source::PerlinNoise::Seed = 0
private

◆ SeedSet

bool vtkm::source::PerlinNoise::SeedSet = false
private

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