VTK-m  2.0
Classes | Public Member Functions | Private Attributes | List of all members
vtkm::worklet::Threshold Class Reference

#include <Threshold.h>

Classes

class  CombinePassFlagsWorklet
 
struct  NoOp
 
class  ThresholdByPointField
 

Public Member Functions

template<typename Operator >
void CombinePassFlags (const vtkm::cont::ArrayHandle< bool > &passFlagsIn, const Operator &combine)
 
void CombinePassFlags (const vtkm::cont::ArrayHandle< bool > &passFlagsIn, NoOp)
 
template<typename ValueType , typename StorageType , typename UnaryPredicate , typename PassFlagsCombineOp >
void RunIncremental (const vtkm::cont::UnknownCellSet &cellSet, const vtkm::cont::ArrayHandle< ValueType, StorageType > &field, vtkm::cont::Field::Association fieldType, const UnaryPredicate &predicate, bool allPointsMustPass, const PassFlagsCombineOp &passFlagsCombineOp)
 Incrementally run the worklet on the given parameters. More...
 
vtkm::cont::ArrayHandle< vtkm::IdGetValidCellIds () const
 
vtkm::cont::UnknownCellSet GenerateResultCellSet (const vtkm::cont::UnknownCellSet &cellSet)
 
void InvertResults ()
 
template<typename ValueType , typename StorageType , typename UnaryPredicate >
vtkm::cont::UnknownCellSet Run (const vtkm::cont::UnknownCellSet &cellSet, const vtkm::cont::ArrayHandle< ValueType, StorageType > &field, vtkm::cont::Field::Association fieldType, const UnaryPredicate &predicate, bool allPointsMustPass=false, bool invert=false)
 

Private Attributes

vtkm::cont::ArrayHandle< bool > PassFlags
 
bool PassFlagsModified = true
 
vtkm::cont::ArrayHandle< vtkm::IdValidCellIds
 

Member Function Documentation

◆ CombinePassFlags() [1/2]

template<typename Operator >
void vtkm::worklet::Threshold::CombinePassFlags ( const vtkm::cont::ArrayHandle< bool > &  passFlagsIn,
const Operator &  combine 
)
inline

◆ CombinePassFlags() [2/2]

void vtkm::worklet::Threshold::CombinePassFlags ( const vtkm::cont::ArrayHandle< bool > &  passFlagsIn,
NoOp   
)
inline

◆ GenerateResultCellSet()

vtkm::cont::UnknownCellSet vtkm::worklet::Threshold::GenerateResultCellSet ( const vtkm::cont::UnknownCellSet cellSet)
inline

◆ GetValidCellIds()

vtkm::cont::ArrayHandle<vtkm::Id> vtkm::worklet::Threshold::GetValidCellIds ( ) const
inline

◆ InvertResults()

void vtkm::worklet::Threshold::InvertResults ( )
inline

◆ Run()

template<typename ValueType , typename StorageType , typename UnaryPredicate >
vtkm::cont::UnknownCellSet vtkm::worklet::Threshold::Run ( const vtkm::cont::UnknownCellSet cellSet,
const vtkm::cont::ArrayHandle< ValueType, StorageType > &  field,
vtkm::cont::Field::Association  fieldType,
const UnaryPredicate &  predicate,
bool  allPointsMustPass = false,
bool  invert = false 
)
inline

◆ RunIncremental()

template<typename ValueType , typename StorageType , typename UnaryPredicate , typename PassFlagsCombineOp >
void vtkm::worklet::Threshold::RunIncremental ( const vtkm::cont::UnknownCellSet cellSet,
const vtkm::cont::ArrayHandle< ValueType, StorageType > &  field,
vtkm::cont::Field::Association  fieldType,
const UnaryPredicate &  predicate,
bool  allPointsMustPass,
const PassFlagsCombineOp &  passFlagsCombineOp 
)
inline

Incrementally run the worklet on the given parameters.

Each run should get the same cellSet. An array of pass/fail flags is maintained internally. The passFlagsCombine operator is used to combine the current result to the incremental results. Finally, use GenerateResultCellSet to get the thresholded cellset.

Member Data Documentation

◆ PassFlags

vtkm::cont::ArrayHandle<bool> vtkm::worklet::Threshold::PassFlags
private

◆ PassFlagsModified

bool vtkm::worklet::Threshold::PassFlagsModified = true
mutableprivate

◆ ValidCellIds

vtkm::cont::ArrayHandle<vtkm::Id> vtkm::worklet::Threshold::ValidCellIds
mutableprivate

The documentation for this class was generated from the following file: