Go to the documentation of this file.
10 #ifndef vtk_m_cont_CoordinateSystem_h
11 #define vtk_m_cont_CoordinateSystem_h
38 template <
typename T,
typename Storage>
59 #ifdef VTKM_USE_DOUBLE_PRECISION
69 using IsInvalid = vtkm::cont::internal::IsInvalidArrayHandle<vtkm::Vec3f, S>;
78 using IsInvalid = vtkm::cont::internal::IsInvalidArrayHandle<Vec3f_nd, S>;
112 this->GetRange(&range[0]);
119 return this->Superclass::GetRange();
126 this->GetRange(ranges);
130 virtual void PrintSummary(std::ostream& out)
const override;
136 this->Superclass::ReleaseResourcesExecution();
137 this->GetData().ReleaseResourcesExecution();
141 template <
typename Functor,
typename... Args>
147 template <
typename T>
149 const std::vector<T>& data,
155 template <
typename T>
171 using DynamicTag = vtkm::cont::internal::DynamicTransformTagCastAndCall;
186 struct Serialization<
vtkm::cont::CoordinateSystem> : Serialization<vtkm::cont::Field>
193 #endif //vtk_m_cont_CoordinateSystem_h
vtkm::cont::CoordinateSystem make_CoordinateSystem(std::string name, const std::vector< T > &data, vtkm::CopyFlag copy=vtkm::CopyFlag::Off)
Definition: CoordinateSystem.h:148
vtkm::ListTransform< vtkm::ListRemoveIf< VTKM_DEFAULT_STORAGE_LIST, StorageToArrayNonDefault::IsInvalid >, StorageToArrayNonDefault::Transform > ArraysFloatNonDefault
Definition: CoordinateSystem.h:90
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
Groups connected points that have the same field value.
Definition: Atomic.h:19
VTKM_CONT vtkm::cont::ArrayHandle< vtkm::Range > GetRangeAsArrayHandle() const
Definition: CoordinateSystem.h:117
vtkm::ListTransform< vtkm::ListRemoveIf< VTKM_DEFAULT_STORAGE_LIST, StorageToArrayDefault::IsInvalid >, StorageToArrayDefault::Transform > ArraysFloatDefault
Definition: CoordinateSystem.h:87
VTKM_CONT vtkm::Vec< vtkm::Range, 3 > GetRange() const
Definition: CoordinateSystem.h:109
typename detail::ListAppendImpl< Lists... >::type ListAppend
Concatinates a set of lists into a single list.
Definition: List.h:275
Association
Definition: cont/Field.h:34
An ArrayHandle of an unknown value type and storage.
Definition: UnknownArrayHandle.h:406
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:674
void CastAndCall(const DynamicObject &dynamicObject, Functor &&f, Args &&... args)
A Generic interface to CastAndCall.
Definition: CastAndCall.h:47
Definition: Particle.h:331
vtkm::Int32 Id
Represents an ID (index into arrays).
Definition: Types.h:191
VTKM_CONT void ReleaseResourcesExecution() override
Releases any resources being used in the execution environment (that are not being shared by the cont...
Definition: CoordinateSystem.h:134
Definition: CoordinateSystem.h:75
Definition: CoordinateSystem.h:25
vtkm::Float64 FloatNonDefault
Definition: CoordinateSystem.h:62
VTKM_CONT vtkm::Id GetNumberOfPoints() const
Definition: CoordinateSystem.h:53
vtkm::cont::ArrayHandleMultiplexerFromList< vtkm::ListAppend< ArraysFloatDefault, ArraysFloatNonDefault > > MultiplexerArrayType
Definition: CoordinateSystem.h:95
vtkm::cont::internal::IsInvalidArrayHandle< Vec3f_nd, S > IsInvalid
Definition: CoordinateSystem.h:78
Definition: CoordinateSystem.h:66
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:592
A Field encapsulates an array on some piece of the mesh, such as the points, a cell set,...
Definition: cont/Field.h:31
VTKM_CONT vtkm::Bounds GetBounds() const
Definition: CoordinateSystem.h:123
#define VTKM_CONT
Definition: ExportMacros.h:57
vtkm::ListApply< List, ArrayHandleMultiplexer > ArrayHandleMultiplexerFromList
Converts avtkm::List to an ArrayHandleMultiplexer
Definition: ArrayHandleMultiplexer.h:443
Represent an axis-aligned 3D bounds in space.
Definition: Bounds.h:29
An ArrayHandle of an uncertain value type and storage.
Definition: UncertainArrayHandle.h:39
VTKM_CONT CoordinateSystem(std::string name, const ArrayHandle< T, Storage > &data)
Definition: CoordinateSystem.h:39
Cast the values of an array to the specified type, on demand.
Definition: ArrayHandleCast.h:141
float Float32
Definition: Types.h:154
double Float64
Definition: Types.h:155
CopyFlag
Definition: Flags.h:16
VTKM_CONT void GetRange(vtkm::Range *range) const
Definition: CoordinateSystem.h:106
VTKM_CONT vtkm::cont::UncertainArrayHandle< vtkm::TypeListFieldVec3, VTKM_DEFAULT_STORAGE_LIST > GetData() const
vtkm::cont::internal::IsInvalidArrayHandle< vtkm::Vec3f, S > IsInvalid
Definition: CoordinateSystem.h:69
Represent a continuous scalar range of values.
Definition: Range.h:31