17#ifndef vtkmlib_Portals_h
18#define vtkmlib_Portals_h
21#include "vtkAcceleratorsVTKmCoreModule.h"
22#include "vtkmConfigCore.h"
27#include <vtkm/cont/internal/IteratorFromArrayPortal.h>
32template <
typename Type,
typename VTKDataArrayType_>
35 static const int NUM_COMPONENTS = vtkm::VecTraits<Type>::NUM_COMPONENTS;
48 VTKM_SUPPRESS_EXEC_WARNINGS
52 VTKM_SUPPRESS_EXEC_WARNINGS
56 VTKM_SUPPRESS_EXEC_WARNINGS
60 typedef vtkm::cont::internal::IteratorFromArrayPortal<vtkArrayPortal>
IteratorType;
72 VTKDataArrayType* VTKData;
76template <
typename Type>
79 static const int NUM_COMPONENTS = vtkm::VecTraits<Type>::NUM_COMPONENTS;
91 VTKM_SUPPRESS_EXEC_WARNINGS
95 VTKM_SUPPRESS_EXEC_WARNINGS
99 VTKM_SUPPRESS_EXEC_WARNINGS
103 typedef vtkm::cont::internal::IteratorFromArrayPortal<vtkPointsPortal>
IteratorType;
116 ComponentType* Array;
121#ifndef vtkmlib_Portals_cxx
122#include <vtkm/cont/internal/ArrayPortalFromIterators.h>
126extern template class VTKACCELERATORSVTKMCORE_TEMPLATE_EXPORT
127 vtkPointsPortal<vtkm::Vec<vtkm::Float32, 3>
const>;
128extern template class VTKACCELERATORSVTKMCORE_TEMPLATE_EXPORT
129 vtkPointsPortal<vtkm::Vec<vtkm::Float64, 3>
const>;
130extern template class VTKACCELERATORSVTKMCORE_TEMPLATE_EXPORT
131 vtkPointsPortal<vtkm::Vec<vtkm::Float32, 3>>;
132extern template class VTKACCELERATORSVTKMCORE_TEMPLATE_EXPORT
133 vtkPointsPortal<vtkm::Vec<vtkm::Float64, 3>>;
138#include "Portals.hxx"
VTKM_EXEC_CONT vtkArrayPortal()
vtkm::cont::internal::IteratorFromArrayPortal< vtkArrayPortal > IteratorType
VTKM_SUPPRESS_EXEC_WARNINGS VTKM_EXEC_CONT ValueType Get(vtkm::Id index) const
typename vtkPortalTraits< Type >::ComponentType ComponentType
VTKM_CONT IteratorType GetIteratorBegin() const
VTKM_SUPPRESS_EXEC_WARNINGS VTKM_EXEC_CONT vtkm::Id GetNumberOfValues() const
VTKM_CONT IteratorType GetIteratorEnd() const
typename vtkPortalTraits< Type >::Type ValueType
VTKM_CONT vtkArrayPortal(VTKDataArrayType *array, vtkm::Id size)
VTKM_SUPPRESS_EXEC_WARNINGS VTKM_EXEC_CONT void Set(vtkm::Id index, const ValueType &value) const
VTKM_CONT VTKDataArrayType * GetVtkData() const
VTKDataArrayType_ VTKDataArrayType
VTKM_CONT IteratorType GetIteratorEnd() const
VTKM_CONT vtkPoints * GetVtkData() const
VTKM_SUPPRESS_EXEC_WARNINGS VTKM_EXEC_CONT ValueType Get(vtkm::Id index) const
VTKM_CONT vtkPointsPortal(vtkPoints *points, vtkm::Id size)
VTKM_CONT IteratorType GetIteratorBegin() const
VTKM_EXEC_CONT vtkPointsPortal()
VTKM_SUPPRESS_EXEC_WARNINGS VTKM_EXEC_CONT void Set(vtkm::Id index, const ValueType &value) const
typename vtkPortalTraits< Type >::ComponentType ComponentType
vtkm::cont::internal::IteratorFromArrayPortal< vtkPointsPortal > IteratorType
VTKM_SUPPRESS_EXEC_WARNINGS VTKM_EXEC_CONT vtkm::Id GetNumberOfValues() const
typename vtkPortalTraits< Type >::Type ValueType
abstract superclass for arrays of numeric data
represent and manipulate 3D points
typename std::remove_const< T >::type ComponentType