VTK-m
2.2
|
#include <DataSetBuilderRectilinear.h>
Public Member Functions | |
DataSetBuilderRectilinear () | |
Static Public Member Functions | |
template<typename T > | |
static vtkm::cont::DataSet | Create (const std::vector< T > &xvals, const std::string &coordNm="coords") |
Create a 1D retilinear DataSet . More... | |
template<typename T > | |
static vtkm::cont::DataSet | Create (vtkm::Id nx, T *xvals, const std::string &coordNm="coords") |
Create a 1D retilinear DataSet . More... | |
template<typename T > | |
static vtkm::cont::DataSet | Create (const vtkm::cont::ArrayHandle< T > &xvals, const std::string &coordNm="coords") |
Create a 1D retilinear DataSet . More... | |
template<typename T > | |
static vtkm::cont::DataSet | Create (const std::vector< T > &xvals, const std::vector< T > &yvals, const std::string &coordNm="coords") |
Create a 2D retilinear DataSet . More... | |
template<typename T > | |
static vtkm::cont::DataSet | Create (vtkm::Id nx, vtkm::Id ny, T *xvals, T *yvals, const std::string &coordNm="coords") |
Create a 2D retilinear DataSet . More... | |
template<typename T > | |
static vtkm::cont::DataSet | Create (const vtkm::cont::ArrayHandle< T > &xvals, const vtkm::cont::ArrayHandle< T > &yvals, const std::string &coordNm="coords") |
Create a 2D retilinear DataSet . More... | |
template<typename T > | |
static vtkm::cont::DataSet | Create (vtkm::Id nx, vtkm::Id ny, vtkm::Id nz, T *xvals, T *yvals, T *zvals, const std::string &coordNm="coords") |
Create a 3D retilinear DataSet . More... | |
template<typename T > | |
static vtkm::cont::DataSet | Create (const std::vector< T > &xvals, const std::vector< T > &yvals, const std::vector< T > &zvals, const std::string &coordNm="coords") |
Create a 3D retilinear DataSet . More... | |
template<typename T > | |
static vtkm::cont::DataSet | Create (const vtkm::cont::ArrayHandle< T > &xvals, const vtkm::cont::ArrayHandle< T > &yvals, const vtkm::cont::ArrayHandle< T > &zvals, const std::string &coordNm="coords") |
Create a 3D retilinear DataSet . More... | |
Static Private Member Functions | |
template<typename T , typename U > | |
static void | CopyInto (const std::vector< T > &input, vtkm::cont::ArrayHandle< U > &output) |
template<typename T , typename U > | |
static void | CopyInto (const vtkm::cont::ArrayHandle< T > &input, vtkm::cont::ArrayHandle< U > &output) |
template<typename T , typename U > | |
static void | CopyInto (const T *input, vtkm::Id len, vtkm::cont::ArrayHandle< U > &output) |
template<typename T > | |
static vtkm::cont::DataSet | BuildDataSet (const std::vector< T > &xvals, const std::vector< T > &yvals, const std::vector< T > &zvals, const std::string &coordNm) |
template<typename T > | |
static vtkm::cont::DataSet | BuildDataSet (vtkm::Id nx, vtkm::Id ny, vtkm::Id nz, const T *xvals, const T *yvals, const T *zvals, const std::string &coordNm) |
template<typename T > | |
static vtkm::cont::DataSet | BuildDataSet (const vtkm::cont::ArrayHandle< T > &X, const vtkm::cont::ArrayHandle< T > &Y, const vtkm::cont::ArrayHandle< T > &Z, const std::string &coordNm) |
vtkm::cont::DataSetBuilderRectilinear::DataSetBuilderRectilinear | ( | ) |
|
inlinestaticprivate |
|
inlinestaticprivate |
|
inlinestaticprivate |
|
inlinestaticprivate |
|
inlinestaticprivate |
|
inlinestaticprivate |
|
inlinestatic |
Create a 1D retilinear DataSet
.
A rectilinear grid is specified with a scalar array for the point coordinates in the x direction. In this form, the coordinate array is specified with std::vector
. The data is copied from the std::vector
.
[in] | xvals | An array of coordinates to use along the x dimension. |
[in] | coordNm | (optional) The name to register the coordinates as. |
|
inlinestatic |
Create a 2D retilinear DataSet
.
A rectilinear grid is specified with separate arrays for the point coordinates in the x and y directions. In this form, the coordinate arrays are specified with std::vector
. The data is copied from the std::vector
s.
[in] | xvals | An array of coordinates to use along the x dimension. |
[in] | yvals | An array of coordinates to use along the x dimension. |
[in] | coordNm | (optional) The name to register the coordinates as. |
|
inlinestatic |
Create a 3D retilinear DataSet
.
A rectilinear grid is specified with separate arrays for the point coordinates in the x, y, and z directions. In this form, the coordinate arrays are specified with std::vector
. The data is copied from the std::vector
s.
[in] | xvals | An array of coordinates to use along the x dimension. |
[in] | yvals | An array of coordinates to use along the x dimension. |
[in] | zvals | An array of coordinates to use along the x dimension. |
[in] | coordNm | (optional) The name to register the coordinates as. |
|
inlinestatic |
Create a 1D retilinear DataSet
.
A rectilinear grid is specified with a scalar array for the point coordinates in the x direction. In this form, the coordinate array is specified with vtkm::cont::ArrayHandle
. The ArrayHandle
is shared with the DataSet
, so changing the ArrayHandle
changes the DataSet
.
[in] | xvals | An array of coordinates to use along the x dimension. |
[in] | coordNm | (optional) The name to register the coordinates as. |
|
inlinestatic |
Create a 2D retilinear DataSet
.
A rectilinear grid is specified with separate arrays for the point coordinates in the x and y directions. In this form, the coordinate arrays are specified with vtkm::cont::ArrayHandle
. The ArrayHandle
s are shared with the DataSet
, so changing the ArrayHandle
s changes the DataSet
.
[in] | xvals | An array of coordinates to use along the x dimension. |
[in] | yvals | An array of coordinates to use along the x dimension. |
[in] | coordNm | (optional) The name to register the coordinates as. |
|
inlinestatic |
Create a 3D retilinear DataSet
.
A rectilinear grid is specified with separate arrays for the point coordinates in the x, y, and z directions. In this form, the coordinate arrays are specified with vtkm::cont::ArrayHandle
. The ArrayHandle
s are shared with the DataSet
, so changing the ArrayHandle
s changes the DataSet
.
[in] | xvals | An array of coordinates to use along the x dimension. |
[in] | yvals | An array of coordinates to use along the x dimension. |
[in] | zvals | An array of coordinates to use along the x dimension. |
[in] | coordNm | (optional) The name to register the coordinates as. |
|
inlinestatic |
Create a 1D retilinear DataSet
.
A rectilinear grid is specified with a scalar array for the point coordinates in the x direction. In this form, the coordinate array is specified with a standard C array. The data is copied from the array.
[in] | nx | The size of the grid in the x direction (and length of the xvals array). |
[in] | xvals | An array of coordinates to use along the x dimension. |
[in] | coordNm | (optional) The name to register the coordinates as. |
|
inlinestatic |
Create a 2D retilinear DataSet
.
A rectilinear grid is specified with separate arrays for the point coordinates in the x and y directions. In this form, the coordinate arrays are specified with standard C arrays. The data is copied from the arrays.
[in] | nx | The size of the grid in the x direction (and length of the xvals array). |
[in] | ny | The size of the grid in the x direction (and length of the yvals array). |
[in] | xvals | An array of coordinates to use along the x dimension. |
[in] | yvals | An array of coordinates to use along the x dimension. |
[in] | coordNm | (optional) The name to register the coordinates as. |
|
inlinestatic |
Create a 3D retilinear DataSet
.
A rectilinear grid is specified with separate arrays for the point coordinates in the x, y, and z directions. In this form, the coordinate arrays are specified with standard C arrays. The data is copied from the arrays.
[in] | nx | The size of the grid in the x direction (and length of the xvals array). |
[in] | ny | The size of the grid in the x direction (and length of the yvals array). |
[in] | nz | The size of the grid in the x direction (and length of the zvals array). |
[in] | xvals | An array of coordinates to use along the x dimension. |
[in] | yvals | An array of coordinates to use along the x dimension. |
[in] | zvals | An array of coordinates to use along the x dimension. |
[in] | coordNm | (optional) The name to register the coordinates as. |