Go to the documentation of this file.
18 #ifndef viskores_cont_DataSetBuilderRectilinear_h
19 #define viskores_cont_DataSetBuilderRectilinear_h
35 template <
typename T,
typename U>
43 template <
typename T,
typename U>
50 template <
typename T,
typename U>
74 const std::string& coordNm =
"coords")
76 std::vector<T> yvals(1, 0), zvals(1, 0);
93 const std::string& coordNm =
"coords")
95 T yvals = 0, zvals = 0;
109 template <
typename T>
111 const std::string& coordNm =
"coords")
131 template <
typename T>
133 const std::vector<T>& yvals,
134 const std::string& coordNm =
"coords")
136 std::vector<T> zvals(1, 0);
152 template <
typename T>
157 const std::string& coordNm =
"coords")
174 template <
typename T>
177 const std::string& coordNm =
"coords")
199 template <
typename T>
206 const std::string& coordNm =
"coords")
222 template <
typename T>
224 const std::vector<T>& yvals,
225 const std::vector<T>& zvals,
226 const std::string& coordNm =
"coords")
243 template <
typename T>
247 const std::string& coordNm =
"coords")
253 template <
typename T>
255 const std::vector<T>& yvals,
256 const std::vector<T>& zvals,
257 const std::string& coordNm)
267 template <
typename T>
274 const std::string& coordNm)
284 template <
typename T>
288 const std::string& coordNm)
354 #endif //viskores_cont_DataSetBuilderRectilinear_h
Contains and manages the geometric data structures that Viskores operates on.
Definition: DataSet.h:66
static viskores::cont::DataSet Create(viskores::Id nx, viskores::Id ny, viskores::Id nz, T *xvals, T *yvals, T *zvals, const std::string &coordNm="coords")
Create a 3D retilinear DataSet.
Definition: DataSetBuilderRectilinear.h:200
static void CopyInto(const viskores::cont::ArrayHandle< T > &input, viskores::cont::ArrayHandle< U > &output)
Definition: DataSetBuilderRectilinear.h:44
static viskores::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:223
Manages an array-worth of data.
Definition: ArrayHandle.h:313
Manages a coordinate system for a DataSet.
Definition: CoordinateSystem.h:38
static viskores::cont::DataSet Create(const std::vector< T > &xvals, const std::string &coordNm="coords")
Create a 1D retilinear DataSet.
Definition: DataSetBuilderRectilinear.h:73
viskores::IdComponent AddCoordinateSystem(const viskores::cont::CoordinateSystem &cs)
Adds the given CoordinateSystem to the DataSet.
static viskores::cont::DataSet Create(viskores::Id nx, viskores::Id ny, T *xvals, T *yvals, const std::string &coordNm="coords")
Create a 2D retilinear DataSet.
Definition: DataSetBuilderRectilinear.h:153
viskores::Int64 Id
Base type to use to index arrays.
Definition: Types.h:235
#define VISKORES_CONT
Definition: ExportMacros.h:65
Groups connected points that have the same field value.
Definition: Atomic.h:27
viskores::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:404
static viskores::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:254
static void CopyInto(const std::vector< T > &input, viskores::cont::ArrayHandle< U > &output)
Definition: DataSetBuilderRectilinear.h:36
void Allocate(viskores::Id numberOfValues, viskores::CopyFlag preserve, viskores::cont::Token &token) const
Allocates an array large enough to hold the given number of values.
Definition: ArrayHandle.h:504
static viskores::cont::DataSet Create(const viskores::cont::ArrayHandle< T > &xvals, const viskores::cont::ArrayHandle< T > &yvals, const viskores::cont::ArrayHandle< T > &zvals, const std::string &coordNm="coords")
Create a 3D retilinear DataSet.
Definition: DataSetBuilderRectilinear.h:244
viskores::Id GetNumberOfValues() const
Returns the number of entries in the array.
Definition: ArrayHandle.h:482
static viskores::cont::DataSet Create(viskores::Id nx, T *xvals, const std::string &coordNm="coords")
Create a 1D retilinear DataSet.
Definition: DataSetBuilderRectilinear.h:91
static viskores::cont::DataSet Create(const viskores::cont::ArrayHandle< T > &xvals, const std::string &coordNm="coords")
Create a 1D retilinear DataSet.
Definition: DataSetBuilderRectilinear.h:110
WritePortalType WritePortal() const
Get an array portal that can be used in the control environment.
Definition: ArrayHandle.h:468
constexpr viskores::Vec< T, viskores::IdComponent(sizeof...(Ts)+1)> make_Vec(T value0, Ts &&... args)
Initializes and returns a Vec containing all the arguments.
Definition: Types.h:1262
static void CopyInto(const T *input, viskores::Id len, viskores::cont::ArrayHandle< U > &output)
Definition: DataSetBuilderRectilinear.h:51
static viskores::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:132
Defines a 1-, 2-, or 3-dimensional structured grid of points.
Definition: CastAndCall.h:40
static viskores::cont::DataSet BuildDataSet(const viskores::cont::ArrayHandle< T > &X, const viskores::cont::ArrayHandle< T > &Y, const viskores::cont::ArrayHandle< T > &Z, const std::string &coordNm)
Definition: DataSetBuilderRectilinear.h:285
This class is thrown when a Viskores function or method encounters an invalid value that inhibits pro...
Definition: ErrorBadValue.h:33
static viskores::cont::DataSet Create(const viskores::cont::ArrayHandle< T > &xvals, const viskores::cont::ArrayHandle< T > &yvals, const std::string &coordNm="coords")
Create a 2D retilinear DataSet.
Definition: DataSetBuilderRectilinear.h:175
ArrayHandleCartesianProduct is a specialization of ArrayHandle.
Definition: ArrayHandleCartesianProduct.h:345
void ArrayCopy(const SourceArrayType &source, DestArrayType &destination)
Does a deep copy from one array to another array.
Definition: ArrayCopy.h:129
Definition: DataSetBuilderRectilinear.h:33
void SetPointDimensions(SchedulingRangeType dimensions)
Set the dimensions of the structured array of points.
Definition: CellSetStructured.h:66
static viskores::cont::DataSet BuildDataSet(viskores::Id nx, viskores::Id ny, viskores::Id nz, const T *xvals, const T *yvals, const T *zvals, const std::string &coordNm)
Definition: DataSetBuilderRectilinear.h:268
viskores::cont::ArrayHandleBasic< T > make_ArrayHandle(const T *array, viskores::Id numberOfValues, viskores::CopyFlag copy)
A convenience function for creating an ArrayHandle from a standard C array.
Definition: ArrayHandleBasic.h:285
void SetCellSet(const CellSetType &cellSet)
Definition: DataSet.h:415