Go to the documentation of this file.
10 #ifndef vtk_m_cont_CoordinateSystem_h
11 #define vtk_m_cont_CoordinateSystem_h
43 template <
typename T,
typename Storage>
64 #ifdef VTKM_USE_DOUBLE_PRECISION
74 using IsInvalid = vtkm::cont::internal::IsInvalidArrayHandle<vtkm::Vec3f, S>;
83 using IsInvalid = vtkm::cont::internal::IsInvalidArrayHandle<Vec3f_nd, S>;
117 this->GetRange(&range[0]);
124 return this->Superclass::GetRange();
131 this->GetRange(ranges);
135 void PrintSummary(std::ostream& out,
bool full =
false)
const override;
139 this->Superclass::ReleaseResourcesExecution();
140 this->GetData().ReleaseResourcesExecution();
144 template <
typename Functor,
typename... Args>
150 template <
typename T>
152 const std::vector<T>& data,
158 template <
typename T>
174 using DynamicTag = vtkm::cont::internal::DynamicTransformTagCastAndCall;
189 struct Serialization<
vtkm::cont::CoordinateSystem> : Serialization<vtkm::cont::Field>
196 #endif //vtk_m_cont_CoordinateSystem_h
void ReleaseResourcesExecution() override
Remove the data from the device memory (but preserve the data on the host).
Definition: CoordinateSystem.h:137
vtkm::cont::CoordinateSystem make_CoordinateSystem(std::string name, const std::vector< T > &data, vtkm::CopyFlag copy=vtkm::CopyFlag::Off)
Definition: CoordinateSystem.h:151
Manages an array-worth of data.
Definition: ArrayHandle.h:300
vtkm::Vec< vtkm::Range, 3 > GetRange() const
Definition: CoordinateSystem.h:114
Groups connected points that have the same field value.
Definition: Atomic.h:19
typename detail::ListAppendImpl< Lists... >::type ListAppend
Concatinates a set of lists into a single list.
Definition: List.h:281
Association
Identifies what elements of a data set a field is associated with.
Definition: Field.h:38
An ArrayHandle of an unknown value type and storage.
Definition: UnknownArrayHandle.h:430
vtkm::Id GetNumberOfPoints() const
Definition: CoordinateSystem.h:58
typename detail::ListRemoveIfImpl< List, Predicate >::type ListRemoveIf
Takes an existing List and a predicate template that is applied to each type in the List.
Definition: List.h:680
void CastAndCall(const DynamicObject &dynamicObject, Functor &&f, Args &&... args)
A Generic interface to CastAndCall.
Definition: CastAndCall.h:47
Definition: Particle.h:351
Definition: CoordinateSystem.h:80
Manages a coordinate system for a DataSet.
Definition: CoordinateSystem.h:30
vtkm::Float64 FloatNonDefault
Definition: CoordinateSystem.h:67
vtkm::cont::ArrayHandleMultiplexerFromList< vtkm::ListAppend< ArraysFloatDefault, ArraysFloatNonDefault > > MultiplexerArrayType
Definition: CoordinateSystem.h:100
vtkm::cont::internal::IsInvalidArrayHandle< Vec3f_nd, S > IsInvalid
Definition: CoordinateSystem.h:83
CoordinateSystem(std::string name, const ArrayHandle< T, Storage > &data)
Definition: CoordinateSystem.h:44
Definition: CoordinateSystem.h:71
typename detail::ListTransformImpl< List, Transform >::type ListTransform
Constructs a list containing all types in a source list applied to a transform template.
Definition: List.h:598
A Field encapsulates an array on some piece of the mesh, such as the points, a cell set,...
Definition: Field.h:31
#define VTKM_CONT_EXPORT
Definition: vtkm_cont_export.h:44
void GetRange(vtkm::Range *range) const
Definition: CoordinateSystem.h:111
vtkm::ListTransform< vtkm::ListRemoveIf< ::vtkm::cont::StorageListCommon, StorageToArrayNonDefault::IsInvalid >, StorageToArrayNonDefault::Transform > ArraysFloatNonDefault
Definition: CoordinateSystem.h:95
#define VTKM_CONT
Definition: ExportMacros.h:57
vtkm::ListApply< List, ArrayHandleMultiplexer > ArrayHandleMultiplexerFromList
Converts avtkm::List to an ArrayHandleMultiplexer
Definition: ArrayHandleMultiplexer.h:457
vtkm::Int64 Id
Base type to use to index arrays.
Definition: Types.h:227
Represent an axis-aligned 3D bounds in space.
Definition: Bounds.h:29
vtkm::cont::UncertainArrayHandle< vtkm::TypeListFieldVec3, ::vtkm::cont::StorageListCommon > GetData() const
An ArrayHandle of an uncertain value type and storage.
Definition: UncertainArrayHandle.h:39
Cast the values of an array to the specified type, on demand.
Definition: ArrayHandleCast.h:141
vtkm::cont::ArrayHandle< vtkm::Range > GetRangeAsArrayHandle() const
Definition: CoordinateSystem.h:122
float Float32
Base type to use for 32-bit floating-point numbers.
Definition: Types.h:157
double Float64
Base type to use for 64-bit floating-point numbers.
Definition: Types.h:161
CopyFlag
Identifier used to specify whether a function should deep copy data.
Definition: Flags.h:17
vtkm::Bounds GetBounds() const
Definition: CoordinateSystem.h:128
vtkm::ListTransform< vtkm::ListRemoveIf< ::vtkm::cont::StorageListCommon, StorageToArrayDefault::IsInvalid >, StorageToArrayDefault::Transform > ArraysFloatDefault
Definition: CoordinateSystem.h:92
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
vtkm::cont::internal::IsInvalidArrayHandle< vtkm::Vec3f, S > IsInvalid
Definition: CoordinateSystem.h:74
Represent a continuous scalar range of values.
Definition: Range.h:31