Go to the documentation of this file.
10 #ifndef vtk_m_cont_DataSetBuilderRectilinear_h
11 #define vtk_m_cont_DataSetBuilderRectilinear_h
27 template <
typename T,
typename U>
34 template <
typename T,
typename U>
41 template <
typename T,
typename U>
63 const std::string& coordNm =
"coords")
65 std::vector<T> yvals(1, 0), zvals(1, 0);
82 const std::string& coordNm =
"coords")
84 T yvals = 0, zvals = 0;
100 const std::string& coordNm =
"coords")
120 template <
typename T>
122 const std::vector<T>& yvals,
123 const std::string& coordNm =
"coords")
125 std::vector<T> zvals(1, 0);
141 template <
typename T>
146 const std::string& coordNm =
"coords")
163 template <
typename T>
166 const std::string& coordNm =
"coords")
188 template <
typename T>
195 const std::string& coordNm =
"coords")
211 template <
typename T>
213 const std::vector<T>& yvals,
214 const std::vector<T>& zvals,
215 const std::string& coordNm =
"coords")
232 template <
typename T>
236 const std::string& coordNm =
"coords")
242 template <
typename T>
244 const std::vector<T>& yvals,
245 const std::vector<T>& zvals,
246 const std::string& coordNm)
256 template <
typename T>
263 const std::string& coordNm)
273 template <
typename T>
277 const std::string& coordNm)
343 #endif //vtk_m_cont_DataSetBuilderRectilinear_h
static vtkm::cont::DataSet Create(vtkm::Id nx, T *xvals, const std::string &coordNm="coords")
Create a 1D retilinear DataSet.
Definition: DataSetBuilderRectilinear.h:80
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.
Definition: DataSetBuilderRectilinear.h:212
Manages an array-worth of data.
Definition: ArrayHandle.h:300
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.
Definition: DataSetBuilderRectilinear.h:121
static vtkm::cont::DataSet Create(const std::vector< T > &xvals, const std::string &coordNm="coords")
Create a 1D retilinear DataSet.
Definition: DataSetBuilderRectilinear.h:62
Groups connected points that have the same field value.
Definition: Atomic.h:19
constexpr vtkm::Vec< T, vtkm::IdComponent(sizeof...(Ts)+1)> make_Vec(T value0, Ts &&... args)
Initializes and returns a Vec containing all the arguments.
Definition: Types.h:1250
Defines a 1-, 2-, or 3-dimensional structured grid of points.
Definition: CastAndCall.h:32
static void CopyInto(const std::vector< T > &input, vtkm::cont::ArrayHandle< U > &output)
Definition: DataSetBuilderRectilinear.h:28
void SetCellSet(const CellSetType &cellSet)
Definition: DataSet.h:396
static void CopyInto(const T *input, vtkm::Id len, vtkm::cont::ArrayHandle< U > &output)
Definition: DataSetBuilderRectilinear.h:42
ArrayHandleCartesianProduct is a specialization of ArrayHandle.
Definition: ArrayHandleCartesianProduct.h:334
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.
Definition: DataSetBuilderRectilinear.h:233
Contains and manages the geometric data structures that VTK-m operates on.
Definition: DataSet.h:57
vtkm::Id GetNumberOfValues() const
Returns the number of entries in the array.
Definition: ArrayHandle.h:468
vtkm::cont::ArrayHandleCartesianProduct< FirstHandleType, SecondHandleType, ThirdHandleType > make_ArrayHandleCartesianProduct(const FirstHandleType &first, const SecondHandleType &second, const ThirdHandleType &third)
A convenience function for creating an ArrayHandleCartesianProduct.
Definition: ArrayHandleCartesianProduct.h:393
static vtkm::cont::DataSet BuildDataSet(const std::vector< T > &xvals, const std::vector< T > &yvals, const std::vector< T > &zvals, const std::string &coordNm)
Definition: DataSetBuilderRectilinear.h:243
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.
Definition: DataSetBuilderRectilinear.h:142
Manages a coordinate system for a DataSet.
Definition: CoordinateSystem.h:30
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)
Definition: DataSetBuilderRectilinear.h:257
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.
Definition: DataSetBuilderRectilinear.h:189
static void CopyInto(const vtkm::cont::ArrayHandle< T > &input, vtkm::cont::ArrayHandle< U > &output)
Definition: DataSetBuilderRectilinear.h:35
#define VTKM_CONT_EXPORT
Definition: vtkm_cont_export.h:44
void ArrayCopy(const SourceArrayType &source, DestArrayType &destination)
Does a deep copy from one array to another array.
Definition: ArrayCopy.h:120
Definition: DataSetBuilderRectilinear.h:25
#define VTKM_CONT
Definition: ExportMacros.h:57
vtkm::Int64 Id
Base type to use to index arrays.
Definition: Types.h:227
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)
Definition: DataSetBuilderRectilinear.h:274
vtkm::IdComponent AddCoordinateSystem(const vtkm::cont::CoordinateSystem &cs)
Adds the given CoordinateSystem to the DataSet.
void SetPointDimensions(SchedulingRangeType dimensions)
Set the dimensions of the structured array of points.
Definition: CellSetStructured.h:58
This class is thrown when a VTKm function or method encounters an invalid value that inhibits progres...
Definition: ErrorBadValue.h:25
static vtkm::cont::DataSet Create(const vtkm::cont::ArrayHandle< T > &xvals, const std::string &coordNm="coords")
Create a 1D retilinear DataSet.
Definition: DataSetBuilderRectilinear.h:99
void Allocate(vtkm::Id numberOfValues, vtkm::CopyFlag preserve, vtkm::cont::Token &token) const
Allocates an array large enough to hold the given number of values.
Definition: ArrayHandle.h:490
vtkm::cont::ArrayHandleBasic< T > make_ArrayHandle(const T *array, vtkm::Id numberOfValues, vtkm::CopyFlag copy)
A convenience function for creating an ArrayHandle from a standard C array.
Definition: ArrayHandleBasic.h:270
WritePortalType WritePortal() const
Get an array portal that can be used in the control environment.
Definition: ArrayHandle.h:454
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.
Definition: DataSetBuilderRectilinear.h:164