VTK-m
2.2
|
The Wavelet source creates a dataset similar to VTK's vtkRTAnalyticSource. More...
#include <Wavelet.h>
Public Member Functions | |
Wavelet ()=default | |
~Wavelet ()=default | |
Wavelet (vtkm::Id3 minExtent, vtkm::Id3 maxExtent={ 10 }) | |
void | SetCenter (const vtkm::Vec3f ¢er) |
Specifies the center of the wavelet function. More... | |
vtkm::Vec3f | GetCenter () const |
Specifies the center of the wavelet function. More... | |
Public Member Functions inherited from vtkm::source::Source | |
virtual | ~Source ()=default |
vtkm::cont::DataSet | Execute () const |
vtkm::Vec3f | Center = { 0, 0, 0 } |
Specifies the origin (lower left corner) of the dataset created. More... | |
vtkm::Vec3f | Origin = { vtkm::Nan<vtkm::FloatDefault>() } |
Specifies the origin (lower left corner) of the dataset created. More... | |
vtkm::Vec3f | Spacing = { 1, 1, 1 } |
Specifies the origin (lower left corner) of the dataset created. More... | |
vtkm::Vec3f | Frequency = { 60.0f, 30.0f, 40.0f } |
Specifies the origin (lower left corner) of the dataset created. More... | |
vtkm::Vec3f | Magnitude = { 10.0f, 18.0f, 5.0f } |
Specifies the origin (lower left corner) of the dataset created. More... | |
vtkm::Id3 | MinimumExtent = { -10, -10, -10 } |
Specifies the origin (lower left corner) of the dataset created. More... | |
vtkm::Id3 | MaximumExtent = { 10, 10, 10 } |
Specifies the origin (lower left corner) of the dataset created. More... | |
vtkm::FloatDefault | MaximumValue = 255.0f |
Specifies the origin (lower left corner) of the dataset created. More... | |
vtkm::FloatDefault | StandardDeviation = 0.5f |
Specifies the origin (lower left corner) of the dataset created. More... | |
void | SetOrigin (const vtkm::Vec3f &origin) |
Specifies the origin (lower left corner) of the dataset created. More... | |
vtkm::Vec3f | GetOrigin () const |
Specifies the origin (lower left corner) of the dataset created. More... | |
void | SetSpacing (const vtkm::Vec3f &spacing) |
Specifies the origin (lower left corner) of the dataset created. More... | |
vtkm::Vec3f | GetSpacing () const |
Specifies the origin (lower left corner) of the dataset created. More... | |
void | SetFrequency (const vtkm::Vec3f &frequency) |
Specifies the origin (lower left corner) of the dataset created. More... | |
vtkm::Vec3f | GetFrequency () const |
Specifies the origin (lower left corner) of the dataset created. More... | |
void | SetMagnitude (const vtkm::Vec3f &magnitude) |
Specifies the origin (lower left corner) of the dataset created. More... | |
vtkm::Vec3f | GetMagnitude () const |
Specifies the origin (lower left corner) of the dataset created. More... | |
void | SetMinimumExtent (const vtkm::Id3 &minExtent) |
Specifies the origin (lower left corner) of the dataset created. More... | |
vtkm::Id3 | GetMinimumExtent () const |
Specifies the origin (lower left corner) of the dataset created. More... | |
void | SetMaximumExtent (const vtkm::Id3 &maxExtent) |
Specifies the origin (lower left corner) of the dataset created. More... | |
vtkm::Id3 | GetMaximumExtent () const |
Specifies the origin (lower left corner) of the dataset created. More... | |
void | SetExtent (const vtkm::Id3 &minExtent, const vtkm::Id3 &maxExtent) |
Specifies the origin (lower left corner) of the dataset created. More... | |
void | SetMaximumValue (const vtkm::FloatDefault &maxVal) |
Specifies the origin (lower left corner) of the dataset created. More... | |
vtkm::FloatDefault | GetMaximumValue () const |
Specifies the origin (lower left corner) of the dataset created. More... | |
void | SetStandardDeviation (const vtkm::FloatDefault &stdev) |
Specifies the origin (lower left corner) of the dataset created. More... | |
vtkm::FloatDefault | GetStandardDeviation () const |
Specifies the origin (lower left corner) of the dataset created. More... | |
vtkm::cont::DataSet | DoExecute () const override |
Specifies the origin (lower left corner) of the dataset created. More... | |
template<vtkm::IdComponent Dim> | |
vtkm::cont::Field | GeneratePointField (const vtkm::cont::CellSetStructured< Dim > &cellset, const std::string &name) const |
Specifies the origin (lower left corner) of the dataset created. More... | |
template<vtkm::IdComponent Dim> | |
vtkm::cont::DataSet | GenerateDataSet (vtkm::cont::CoordinateSystem coords) const |
Specifies the origin (lower left corner) of the dataset created. More... | |
Additional Inherited Members | |
Protected Attributes inherited from vtkm::source::Source | |
vtkm::cont::Invoker | Invoke |
The Wavelet source creates a dataset similar to VTK's vtkRTAnalyticSource.
This class generates a predictable structured dataset with a smooth yet interesting set of scalars, which is useful for testing and benchmarking.
The Execute method creates a complete structured dataset that has a point field named RTData
The RTData scalars are computed as:
The dataset properties are determined by:
Minimum/MaximumExtent
: The logical point extents of the dataset.Spacing
: The distance between points of the dataset.Center
: The center of the dataset.The scalar functions is control via:
Center
: The center of a Gaussian contribution to the scalars.StandardDeviation
: The unscaled width of a Gaussian contribution.MaximumValue
: Upper limit of the scalar range.Frequency
: The Frq[XYZ] parameters of the periodic contributions.Magnitude
: The Mag[XYZ] parameters of the periodic contributions.By default, the following parameters are used:
Extents
: { -10, -10, -10 } -->
{ 10, 10, 10 }Spacing
: { 1, 1, 1 }Center
: { 0, 0, 0 }StandardDeviation
: 0.5MaximumValue
: 255Frequency
: { 60, 30, 40 }Magnitude
: { 10, 18, 5 }
If the extent has zero length in the z-direction, a 2D dataset is generated.
|
default |
|
default |
|
overrideprivatevirtual |
Specifies the origin (lower left corner) of the dataset created.
If the origin is not specified, it will be placed such that extent index (0, 0, 0) is at the coordinate system origin.
Implements vtkm::source::Source.
|
private |
Specifies the origin (lower left corner) of the dataset created.
If the origin is not specified, it will be placed such that extent index (0, 0, 0) is at the coordinate system origin.
|
private |
Specifies the origin (lower left corner) of the dataset created.
If the origin is not specified, it will be placed such that extent index (0, 0, 0) is at the coordinate system origin.
|
inline |
Specifies the center of the wavelet function.
Note that the center of the function can be anywhere in space including outside the domain of the data created (as specified by the origin, spacing and extent).
|
inline |
Specifies the origin (lower left corner) of the dataset created.
If the origin is not specified, it will be placed such that extent index (0, 0, 0) is at the coordinate system origin.
|
inline |
Specifies the origin (lower left corner) of the dataset created.
If the origin is not specified, it will be placed such that extent index (0, 0, 0) is at the coordinate system origin.
|
inline |
Specifies the origin (lower left corner) of the dataset created.
If the origin is not specified, it will be placed such that extent index (0, 0, 0) is at the coordinate system origin.
|
inline |
Specifies the origin (lower left corner) of the dataset created.
If the origin is not specified, it will be placed such that extent index (0, 0, 0) is at the coordinate system origin.
|
inline |
Specifies the origin (lower left corner) of the dataset created.
If the origin is not specified, it will be placed such that extent index (0, 0, 0) is at the coordinate system origin.
|
inline |
Specifies the origin (lower left corner) of the dataset created.
If the origin is not specified, it will be placed such that extent index (0, 0, 0) is at the coordinate system origin.
|
inline |
Specifies the origin (lower left corner) of the dataset created.
If the origin is not specified, it will be placed such that extent index (0, 0, 0) is at the coordinate system origin.
|
inline |
Specifies the origin (lower left corner) of the dataset created.
If the origin is not specified, it will be placed such that extent index (0, 0, 0) is at the coordinate system origin.
|
inline |
Specifies the center of the wavelet function.
Note that the center of the function can be anywhere in space including outside the domain of the data created (as specified by the origin, spacing and extent).
|
inline |
Specifies the origin (lower left corner) of the dataset created.
If the origin is not specified, it will be placed such that extent index (0, 0, 0) is at the coordinate system origin.
|
inline |
Specifies the origin (lower left corner) of the dataset created.
If the origin is not specified, it will be placed such that extent index (0, 0, 0) is at the coordinate system origin.
|
inline |
Specifies the origin (lower left corner) of the dataset created.
If the origin is not specified, it will be placed such that extent index (0, 0, 0) is at the coordinate system origin.
|
inline |
Specifies the origin (lower left corner) of the dataset created.
If the origin is not specified, it will be placed such that extent index (0, 0, 0) is at the coordinate system origin.
|
inline |
Specifies the origin (lower left corner) of the dataset created.
If the origin is not specified, it will be placed such that extent index (0, 0, 0) is at the coordinate system origin.
|
inline |
Specifies the origin (lower left corner) of the dataset created.
If the origin is not specified, it will be placed such that extent index (0, 0, 0) is at the coordinate system origin.
|
inline |
Specifies the origin (lower left corner) of the dataset created.
If the origin is not specified, it will be placed such that extent index (0, 0, 0) is at the coordinate system origin.
|
inline |
Specifies the origin (lower left corner) of the dataset created.
If the origin is not specified, it will be placed such that extent index (0, 0, 0) is at the coordinate system origin.
|
inline |
Specifies the origin (lower left corner) of the dataset created.
If the origin is not specified, it will be placed such that extent index (0, 0, 0) is at the coordinate system origin.
|
private |
Specifies the origin (lower left corner) of the dataset created.
If the origin is not specified, it will be placed such that extent index (0, 0, 0) is at the coordinate system origin.
|
private |
Specifies the origin (lower left corner) of the dataset created.
If the origin is not specified, it will be placed such that extent index (0, 0, 0) is at the coordinate system origin.
|
private |
Specifies the origin (lower left corner) of the dataset created.
If the origin is not specified, it will be placed such that extent index (0, 0, 0) is at the coordinate system origin.
|
private |
Specifies the origin (lower left corner) of the dataset created.
If the origin is not specified, it will be placed such that extent index (0, 0, 0) is at the coordinate system origin.
|
private |
Specifies the origin (lower left corner) of the dataset created.
If the origin is not specified, it will be placed such that extent index (0, 0, 0) is at the coordinate system origin.
|
private |
Specifies the origin (lower left corner) of the dataset created.
If the origin is not specified, it will be placed such that extent index (0, 0, 0) is at the coordinate system origin.
|
private |
Specifies the origin (lower left corner) of the dataset created.
If the origin is not specified, it will be placed such that extent index (0, 0, 0) is at the coordinate system origin.
|
private |
Specifies the origin (lower left corner) of the dataset created.
If the origin is not specified, it will be placed such that extent index (0, 0, 0) is at the coordinate system origin.
|
private |
Specifies the origin (lower left corner) of the dataset created.
If the origin is not specified, it will be placed such that extent index (0, 0, 0) is at the coordinate system origin.