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>
55 const std::string& coordNm =
"coords")
57 std::vector<T> yvals(1, 0), zvals(1, 0);
64 const std::string& coordNm =
"coords")
66 T yvals = 0, zvals = 0;
72 const std::string& coordNm =
"coords")
85 const std::vector<T>& yvals,
86 const std::string& coordNm =
"coords")
88 std::vector<T> zvals(1, 0);
97 const std::string& coordNm =
"coords")
103 template <
typename T>
106 const std::string& coordNm =
"coords")
115 template <
typename T>
122 const std::string& coordNm =
"coords")
127 template <
typename T>
129 const std::vector<T>& yvals,
130 const std::vector<T>& zvals,
131 const std::string& coordNm =
"coords")
136 template <
typename T>
140 const std::string& coordNm =
"coords")
146 template <
typename T>
148 const std::vector<T>& yvals,
149 const std::vector<T>& zvals,
150 const std::string& coordNm)
160 template <
typename T>
167 const std::string& coordNm)
177 template <
typename T>
181 const std::string& coordNm)
247 #endif //vtk_m_cont_DataSetBuilderRectilinear_h
VTKM_CONT vtkm::Id GetNumberOfValues() const
Returns the number of entries in the array.
Definition: ArrayHandle.h:448
VTKM_CONT 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:217
Manages an array-worth of data.
Definition: ArrayHandle.h:283
static VTKM_CONT void CopyInto(const std::vector< T > &input, vtkm::cont::ArrayHandle< U > &output)
Definition: DataSetBuilderRectilinear.h:28
Groups connected points that have the same field value.
Definition: Atomic.h:19
static VTKM_CONT 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")
Definition: DataSetBuilderRectilinear.h:137
VTKM_CONT 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:465
static VTKM_CONT void CopyInto(const T *input, vtkm::Id len, vtkm::cont::ArrayHandle< U > &output)
Definition: DataSetBuilderRectilinear.h:42
Definition: CastAndCall.h:32
ArrayHandleCartesianProduct is a specialization of ArrayHandle.
Definition: ArrayHandleCartesianProduct.h:326
static VTKM_CONT 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:178
static VTKM_CONT 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:147
static VTKM_CONT vtkm::cont::DataSet Create(const vtkm::cont::ArrayHandle< T > &xvals, const std::string &coordNm="coords")
Definition: DataSetBuilderRectilinear.h:71
static VTKM_CONT vtkm::cont::DataSet Create(vtkm::Id nx, vtkm::Id ny, T *xvals, T *yvals, const std::string &coordNm="coords")
Definition: DataSetBuilderRectilinear.h:93
static VTKM_CONT vtkm::cont::DataSet Create(const std::vector< T > &xvals, const std::string &coordNm="coords")
Definition: DataSetBuilderRectilinear.h:54
vtkm::Int32 Id
Represents an ID (index into arrays).
Definition: Types.h:191
static VTKM_CONT vtkm::cont::DataSet Create(const vtkm::cont::ArrayHandle< T > &xvals, const vtkm::cont::ArrayHandle< T > &yvals, const std::string &coordNm="coords")
Definition: DataSetBuilderRectilinear.h:104
Definition: CoordinateSystem.h:25
static VTKM_CONT vtkm::cont::DataSet Create(const std::vector< T > &xvals, const std::vector< T > &yvals, const std::string &coordNm="coords")
Definition: DataSetBuilderRectilinear.h:84
#define X
Definition: ClipTables.h:2430
static VTKM_CONT void CopyInto(const vtkm::cont::ArrayHandle< T > &input, vtkm::cont::ArrayHandle< U > &output)
Definition: DataSetBuilderRectilinear.h:35
void ArrayCopy(const SourceArrayType &source, DestArrayType &destination)
Does a deep copy from one array to another array.
Definition: ArrayCopy.h:142
Definition: DataSetBuilderRectilinear.h:25
static VTKM_CONT vtkm::cont::DataSet Create(vtkm::Id nx, vtkm::Id ny, vtkm::Id nz, T *xvals, T *yvals, T *zvals, const std::string &coordNm="coords")
Definition: DataSetBuilderRectilinear.h:116
#define VTKM_CONT
Definition: ExportMacros.h:57
VTKM_CONT WritePortalType WritePortal() const
Get an array portal that can be used in the control environment.
Definition: ArrayHandle.h:435
constexpr VTKM_EXEC_CONT 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:1212
static VTKM_CONT vtkm::cont::DataSet Create(vtkm::Id nx, T *xvals, const std::string &coordNm="coords")
Definition: DataSetBuilderRectilinear.h:62
static VTKM_CONT vtkm::cont::DataSet Create(const std::vector< T > &xvals, const std::vector< T > &yvals, const std::vector< T > &zvals, const std::string &coordNm="coords")
Definition: DataSetBuilderRectilinear.h:128
void SetPointDimensions(SchedulingRangeType dimensions)
Definition: CellSetStructured.h:49
This class is thrown when a VTKm function or method encounters an invalid value that inhibits progres...
Definition: ErrorBadValue.h:25
VTKM_CONT vtkm::IdComponent AddCoordinateSystem(const vtkm::cont::CoordinateSystem &cs)
Adds the given CoordinateSystem to the DataSet.
VTKM_CONT void SetCellSet(const CellSetType &cellSet)
Definition: DataSet.h:355
static VTKM_CONT 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:161
VTKM_CONT 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:384