Go to the documentation of this file.
10 #ifndef vtkm_m_worklet_ThresholdPoints_h
11 #define vtkm_m_worklet_ThresholdPoints_h
27 template <
typename UnaryPredicate>
46 template <
typename ScalarType>
56 template <
typename CellSetType,
typename ScalarsArrayHandle,
typename UnaryPredicate>
58 const ScalarsArrayHandle& scalars,
59 const UnaryPredicate& predicate)
65 ThresholdWorklet worklet(predicate);
67 invoker(worklet, cellSet, scalars, passFlags);
84 #endif // vtkm_m_worklet_ThresholdPoints_h
VTKM_CONT vtkm::Id GetNumberOfValues() const
Returns the number of entries in the array.
Definition: ArrayHandle.h:448
UnaryPredicate Predicate
Definition: worklet/ThresholdPoints.h:53
VTKM_EXEC bool operator()(const ScalarType &scalar) const
Definition: worklet/ThresholdPoints.h:47
#define VTKM_EXEC
Definition: ExportMacros.h:51
Groups connected points that have the same field value.
Definition: Atomic.h:19
VTKM_CONT vtkm::cont::ArrayHandleCounting< CountingValueType > make_ArrayHandleCounting(CountingValueType start, CountingValueType step, vtkm::Id length)
A convenience function for creating an ArrayHandleCounting.
Definition: ArrayHandleCounting.h:151
Definition: worklet/ThresholdPoints.h:24
Definition: CastAndCall.h:34
vtkm::Int32 Id
Represents an ID (index into arrays).
Definition: Types.h:191
Base class for worklets that map from Cells to Points.
Definition: WorkletMapTopology.h:274
Allows launching any worklet without a dispatcher.
Definition: Invoker.h:41
static VTKM_CONT void CopyIf(vtkm::cont::DeviceAdapterId devId, const vtkm::cont::ArrayHandle< T, CIn > &input, const vtkm::cont::ArrayHandle< U, CStencil > &stencil, vtkm::cont::ArrayHandle< T, COut > &output)
Definition: Algorithm.h:435
#define VTKM_CONT
Definition: ExportMacros.h:57
VTKM_CONT ThresholdPointField(const UnaryPredicate &predicate)
Definition: worklet/ThresholdPoints.h:41
void(CellSetIn cellset, FieldInPoint scalars, FieldOutPoint passFlags) ControlSignature
Definition: worklet/ThresholdPoints.h:31
FieldInVisit FieldInPoint
Definition: WorkletMapTopology.h:280
Definition: worklet/ThresholdPoints.h:28
FieldOut FieldOutPoint
Definition: WorkletMapTopology.h:282
_3(_2) ExecutionSignature
Definition: worklet/ThresholdPoints.h:32
VTKM_CONT ThresholdPointField()
Definition: worklet/ThresholdPoints.h:35
VTKM_CONT void Fill(vtkm::Id numPoints, vtkm::UInt8 shapeId, vtkm::IdComponent numberOfPointsPerCell, const vtkm::cont::ArrayHandle< vtkm::Id, ConnectivityStorageTag > &connectivity)
Definition: CellSetSingleType.h:186
vtkm::cont::CellSetSingleType Run(const CellSetType &cellSet, const ScalarsArrayHandle &scalars, const UnaryPredicate &predicate)
Definition: worklet/ThresholdPoints.h:57