VTK-m  2.0
Namespaces | Classes | Typedefs | Functions | Variables
vtkm::worklet::contourtree_augmented Namespace Reference

Namespaces

 active_graph_inc
 
 contourtree_maker_inc
 
 data_set_mesh
 
 details
 
 m2d_freudenthal
 
 m3d_freudenthal
 
 m3d_marchingcubes
 
 mesh_dem
 
 mesh_dem_contourtree_mesh_inc
 
 mesh_extrema_inc
 
 process_contourtree_inc
 

Classes

class  ActiveGraph
 
class  ComputeMeshBoundary2D
 
class  ComputeMeshBoundary3D
 
class  ComputeMeshBoundaryContourTreeMesh
 
class  ContourTree
 
class  ContourTreeMaker
 
class  ContourTreeMesh
 
struct  ContourTreeNoSuchElementSuperParents
 
class  DataSetMesh
 
class  DataSetMeshTriangulation2DFreudenthal
 Class representing a 2D dataset mesh with freudenthal triangulation connectivity for contour tree computation. More...
 
class  DataSetMeshTriangulation3DFreudenthal
 
class  DataSetMeshTriangulation3DMarchingCubes
 
class  EdgeDataHeight
 
class  EdgeDataVolume
 
struct  GetLocalAndGlobalPointDimensions
 
struct  GetPointDimensions
 Helper struct to collect sizing information from a dataset. More...
 
struct  IsUnique
 
struct  MarkOther
 
struct  MaskedIndexFunctor
 
class  MergeTree
 
class  MeshBoundary2D
 
class  MeshBoundary2DExec
 
class  MeshBoundary3D
 
class  MeshBoundary3DExec
 
class  MeshBoundaryContourTreeMesh
 
class  MeshBoundaryContourTreeMeshExec
 
class  MeshExtrema
 
class  MeshStructureFreudenthal2D
 
class  MeshStructureFreudenthal3D
 
class  MeshStructureMarchingCubes
 
class  NotNoSuchElementPredicate
 
struct  OneIfCritical
 
struct  OneIfHypernode
 
struct  OneIfSupernode
 
class  ProcessContourTree
 
struct  SaddlePeakSort
 

Typedefs

using IdArrayType = vtkm::cont::ArrayHandle< vtkm::Id >
 
using EdgePair = vtkm::Pair< vtkm::Id, vtkm::Id >
 
using EdgePairArray = vtkm::cont::ArrayHandle< EdgePair >
 

Functions

template<typename ValueType , typename ArrayType >
void PermuteArray (const ArrayType &input, IdArrayType &permute, ArrayType &output)
 
void InitIdArrayTypeNoSuchElement (IdArrayType &idArray, vtkm::Id size)
 
template<typename PT1 , typename PT2 , typename PT3 , typename PT4 >
void CopyArrayByIndices (const PT1 &srcArray, const PT2 &srcIndices, PT3 &dstArray, const PT4 &dstIndices)
 
template<typename PT1 , typename PT2 , typename PT3 , typename PT4 >
void CopyVecArrayByIndices (const PT1 &srcArray, const PT2 &srcIndices, PT3 &dstArray, const PT4 &dstIndices)
 
template<typename T , typename StorageType >
void PrintValues (std::string label, const vtkm::cont::ArrayHandle< T, StorageType > &dVec, vtkm::Id nValues=-1, std::ostream &outStream=std::cout)
 
template<typename T >
void PrintIndices (std::string label, const vtkm::cont::ArrayHandle< T > &iVec, vtkm::Id nIndices=-1, std::ostream &outStream=std::cout)
 
template<typename T >
void PrintArray (std::string label, const T &iVec, vtkm::Id nIndices=-1, std::ostream &outStream=std::cout)
 
template<typename T , typename StorageType >
void PrintSortedValues (std::string label, const vtkm::cont::ArrayHandle< T, StorageType > &dVec, IdArrayType &sortVec, vtkm::Id nValues=-1, std::ostream &outStream=std::cout)
 
void PrintLabel (std::string label, std::ostream &outStream=std::cout)
 
void PrintSeparatingBar (vtkm::Id howMany, std::ostream &outStream=std::cout)
 
void PrintIndexType (vtkm::Id index, std::ostream &outStream=std::cout)
 
template<typename T >
void PrintDataType (T value, std::ostream &outStream=std::cout)
 
template<>
void PrintDataType< vtkm::Id > (vtkm::Id value, std::ostream &outStream)
 
void PrintHeader (vtkm::Id howMany, std::ostream &outStream=std::cout)
 
template<typename ARRAYTYPE >
void PrintArrayHandle (std::string label, const ARRAYTYPE &dVec, vtkm::Id nValues, std::ostream &outStream)
 
template<typename T , typename StorageType >
void PrintLabelledDataBlock (std::string label, const vtkm::cont::ArrayHandle< T, StorageType > &dVec, vtkm::Id nColumns, std::ostream &outStream=std::cout)
 
void PrintEdgePairArray (std::string label, const EdgePairArray &edgePairArray, vtkm::Id nIndices, std::ostream &outStream=std::cout)
 
void PrintEdgePairArrayColumnLayout (const EdgePairArray &edgePairArray, std::ostream &outStream=std::cout)
 
VTKM_EXEC_CONT bool NoSuchElement (vtkm::Id flaggedIndex)
 
VTKM_EXEC_CONT bool IsTerminalElement (vtkm::Id flaggedIndex)
 
VTKM_EXEC_CONT bool IsSupernode (vtkm::Id flaggedIndex)
 
VTKM_EXEC_CONT bool IsHypernode (vtkm::Id flaggedIndex)
 
VTKM_EXEC_CONT bool IsAscending (vtkm::Id flaggedIndex)
 
VTKM_EXEC_CONT vtkm::Id MaskedIndex (vtkm::Id flaggedIndex)
 
VTKM_EXEC_CONT bool IsThis (vtkm::Id flaggedIndex)
 Used in the context of CombinedVector class used in ContourTreeMesh to merge the mesh of contour trees. More...
 
VTKM_EXEC_CONT bool NoFlagsSet (vtkm::Id flaggedIndex)
 
template<typename S >
VTKM_CONT void AssertArrayHandleNoFlagsSet (const vtkm::cont::ArrayHandle< vtkm::Id, S > &ah)
 
VTKM_CONT void IdArraySetValue (vtkm::Id index, vtkm::Id value, IdArrayType &arr)
 Helper function to set a single array valye with CopySubRange to avoid pulling the array to the control environment. More...
 
template<typename ValueType >
void ResizeVector (vtkm::cont::ArrayHandle< ValueType > &thearray, vtkm::Id newSize, ValueType fillValue)
 Helper function used to resize a 1D ArrayHandle and initalize new values with a given fillValue. More...
 
std::string FlagString (vtkm::Id flaggedIndex)
 

Variables

constexpr int N_NODE_COLORS = 12
 
constexpr const char * NODE_COLORS [N_NODE_COLORS]
 
constexpr int PRINT_WIDTH = 12
 
constexpr int PREFIX_WIDTH = 30
 
constexpr vtkm::Id NO_SUCH_ELEMENT = std::numeric_limits<vtkm::Id>::min()
 
constexpr vtkm::Id TERMINAL_ELEMENT = std::numeric_limits<vtkm::Id>::max() / 2 + 1
 
constexpr vtkm::Id IS_SUPERNODE = std::numeric_limits<vtkm::Id>::max() / 4 + 1
 
constexpr vtkm::Id IS_HYPERNODE = std::numeric_limits<vtkm::Id>::max() / 8 + 1
 
constexpr vtkm::Id IS_ASCENDING = std::numeric_limits<vtkm::Id>::max() / 16 + 1
 
constexpr vtkm::Id INDEX_MASK = std::numeric_limits<vtkm::Id>::max() / 16
 
constexpr vtkm::Id CV_OTHER_FLAG = std::numeric_limits<vtkm::Id>::max() / 8 + 1
 
constexpr vtkm::Id ELEMENT_EXISTS = std::numeric_limits<vtkm::Id>::max() / 4 + 1
 
constexpr vtkm::Id IS_LOWER_LEAF = static_cast<vtkm::Id>(0)
 
constexpr vtkm::Id IS_UPPER_LEAF = static_cast<vtkm::Id>(1)
 
constexpr vtkm::Id IS_REGULAR = static_cast<vtkm::Id>(2)
 
constexpr vtkm::Id IS_SADDLE = static_cast<vtkm::Id>(3)
 
constexpr vtkm::Id IS_ATTACHMENT = static_cast<vtkm::Id>(4)
 

Typedef Documentation

◆ EdgePair

◆ EdgePairArray

◆ IdArrayType

Function Documentation

◆ AssertArrayHandleNoFlagsSet()

template<typename S >
VTKM_CONT void vtkm::worklet::contourtree_augmented::AssertArrayHandleNoFlagsSet ( const vtkm::cont::ArrayHandle< vtkm::Id, S > &  ah)
inline

◆ CopyArrayByIndices()

template<typename PT1 , typename PT2 , typename PT3 , typename PT4 >
void vtkm::worklet::contourtree_augmented::CopyArrayByIndices ( const PT1 &  srcArray,
const PT2 &  srcIndices,
PT3 &  dstArray,
const PT4 &  dstIndices 
)
inline

◆ CopyVecArrayByIndices()

template<typename PT1 , typename PT2 , typename PT3 , typename PT4 >
void vtkm::worklet::contourtree_augmented::CopyVecArrayByIndices ( const PT1 &  srcArray,
const PT2 &  srcIndices,
PT3 &  dstArray,
const PT4 &  dstIndices 
)
inline

◆ FlagString()

std::string vtkm::worklet::contourtree_augmented::FlagString ( vtkm::Id  flaggedIndex)
inline

◆ IdArraySetValue()

VTKM_CONT void vtkm::worklet::contourtree_augmented::IdArraySetValue ( vtkm::Id  index,
vtkm::Id  value,
IdArrayType arr 
)
inline

Helper function to set a single array valye with CopySubRange to avoid pulling the array to the control environment.

◆ InitIdArrayTypeNoSuchElement()

void vtkm::worklet::contourtree_augmented::InitIdArrayTypeNoSuchElement ( IdArrayType idArray,
vtkm::Id  size 
)
inline

◆ IsAscending()

VTKM_EXEC_CONT bool vtkm::worklet::contourtree_augmented::IsAscending ( vtkm::Id  flaggedIndex)
inline

◆ IsHypernode()

VTKM_EXEC_CONT bool vtkm::worklet::contourtree_augmented::IsHypernode ( vtkm::Id  flaggedIndex)
inline

◆ IsSupernode()

VTKM_EXEC_CONT bool vtkm::worklet::contourtree_augmented::IsSupernode ( vtkm::Id  flaggedIndex)
inline

◆ IsTerminalElement()

VTKM_EXEC_CONT bool vtkm::worklet::contourtree_augmented::IsTerminalElement ( vtkm::Id  flaggedIndex)
inline

◆ IsThis()

VTKM_EXEC_CONT bool vtkm::worklet::contourtree_augmented::IsThis ( vtkm::Id  flaggedIndex)
inline

Used in the context of CombinedVector class used in ContourTreeMesh to merge the mesh of contour trees.

◆ MaskedIndex()

VTKM_EXEC_CONT vtkm::Id vtkm::worklet::contourtree_augmented::MaskedIndex ( vtkm::Id  flaggedIndex)
inline

◆ NoFlagsSet()

VTKM_EXEC_CONT bool vtkm::worklet::contourtree_augmented::NoFlagsSet ( vtkm::Id  flaggedIndex)
inline

◆ NoSuchElement()

VTKM_EXEC_CONT bool vtkm::worklet::contourtree_augmented::NoSuchElement ( vtkm::Id  flaggedIndex)
inline

◆ PermuteArray()

template<typename ValueType , typename ArrayType >
void vtkm::worklet::contourtree_augmented::PermuteArray ( const ArrayType &  input,
IdArrayType permute,
ArrayType &  output 
)
inline

◆ PrintArray()

template<typename T >
void vtkm::worklet::contourtree_augmented::PrintArray ( std::string  label,
const T &  iVec,
vtkm::Id  nIndices = -1,
std::ostream &  outStream = std::cout 
)
inline

◆ PrintArrayHandle()

template<typename ARRAYTYPE >
void vtkm::worklet::contourtree_augmented::PrintArrayHandle ( std::string  label,
const ARRAYTYPE &  dVec,
vtkm::Id  nValues,
std::ostream &  outStream 
)
inline

◆ PrintDataType()

template<typename T >
void vtkm::worklet::contourtree_augmented::PrintDataType ( value,
std::ostream &  outStream = std::cout 
)
inline

◆ PrintDataType< vtkm::Id >()

template<>
void vtkm::worklet::contourtree_augmented::PrintDataType< vtkm::Id > ( vtkm::Id  value,
std::ostream &  outStream 
)
inline

◆ PrintEdgePairArray()

void vtkm::worklet::contourtree_augmented::PrintEdgePairArray ( std::string  label,
const EdgePairArray edgePairArray,
vtkm::Id  nIndices,
std::ostream &  outStream = std::cout 
)
inline

◆ PrintEdgePairArrayColumnLayout()

void vtkm::worklet::contourtree_augmented::PrintEdgePairArrayColumnLayout ( const EdgePairArray edgePairArray,
std::ostream &  outStream = std::cout 
)
inline

◆ PrintHeader()

void vtkm::worklet::contourtree_augmented::PrintHeader ( vtkm::Id  howMany,
std::ostream &  outStream = std::cout 
)
inline

◆ PrintIndexType()

void vtkm::worklet::contourtree_augmented::PrintIndexType ( vtkm::Id  index,
std::ostream &  outStream = std::cout 
)
inline

◆ PrintIndices()

template<typename T >
void vtkm::worklet::contourtree_augmented::PrintIndices ( std::string  label,
const vtkm::cont::ArrayHandle< T > &  iVec,
vtkm::Id  nIndices = -1,
std::ostream &  outStream = std::cout 
)
inline

◆ PrintLabel()

void vtkm::worklet::contourtree_augmented::PrintLabel ( std::string  label,
std::ostream &  outStream = std::cout 
)
inline

◆ PrintLabelledDataBlock()

template<typename T , typename StorageType >
void vtkm::worklet::contourtree_augmented::PrintLabelledDataBlock ( std::string  label,
const vtkm::cont::ArrayHandle< T, StorageType > &  dVec,
vtkm::Id  nColumns,
std::ostream &  outStream = std::cout 
)
inline

◆ PrintSeparatingBar()

void vtkm::worklet::contourtree_augmented::PrintSeparatingBar ( vtkm::Id  howMany,
std::ostream &  outStream = std::cout 
)
inline

◆ PrintSortedValues()

template<typename T , typename StorageType >
void vtkm::worklet::contourtree_augmented::PrintSortedValues ( std::string  label,
const vtkm::cont::ArrayHandle< T, StorageType > &  dVec,
IdArrayType sortVec,
vtkm::Id  nValues = -1,
std::ostream &  outStream = std::cout 
)
inline

◆ PrintValues()

template<typename T , typename StorageType >
void vtkm::worklet::contourtree_augmented::PrintValues ( std::string  label,
const vtkm::cont::ArrayHandle< T, StorageType > &  dVec,
vtkm::Id  nValues = -1,
std::ostream &  outStream = std::cout 
)
inline

◆ ResizeVector()

template<typename ValueType >
void vtkm::worklet::contourtree_augmented::ResizeVector ( vtkm::cont::ArrayHandle< ValueType > &  thearray,
vtkm::Id  newSize,
ValueType  fillValue 
)

Helper function used to resize a 1D ArrayHandle and initalize new values with a given fillValue.

For resizing ArrayHandles without initalizing new values VTKm supports the vtkm::CopyFlag::On setting as part of the ArrayHandle.Allocate method.

Parameters
[in]thearrayThe 1D array to be resized
[in]newSizeThe new size the array should be changed to
[in]fillValueThe value to be used to fill the array

Variable Documentation

◆ CV_OTHER_FLAG

constexpr vtkm::Id vtkm::worklet::contourtree_augmented::CV_OTHER_FLAG = std::numeric_limits<vtkm::Id>::max() / 8 + 1
constexpr

◆ ELEMENT_EXISTS

constexpr vtkm::Id vtkm::worklet::contourtree_augmented::ELEMENT_EXISTS = std::numeric_limits<vtkm::Id>::max() / 4 + 1
constexpr

◆ INDEX_MASK

constexpr vtkm::Id vtkm::worklet::contourtree_augmented::INDEX_MASK = std::numeric_limits<vtkm::Id>::max() / 16
constexpr

◆ IS_ASCENDING

constexpr vtkm::Id vtkm::worklet::contourtree_augmented::IS_ASCENDING = std::numeric_limits<vtkm::Id>::max() / 16 + 1
constexpr

◆ IS_ATTACHMENT

constexpr vtkm::Id vtkm::worklet::contourtree_augmented::IS_ATTACHMENT = static_cast<vtkm::Id>(4)
constexpr

◆ IS_HYPERNODE

constexpr vtkm::Id vtkm::worklet::contourtree_augmented::IS_HYPERNODE = std::numeric_limits<vtkm::Id>::max() / 8 + 1
constexpr

◆ IS_LOWER_LEAF

constexpr vtkm::Id vtkm::worklet::contourtree_augmented::IS_LOWER_LEAF = static_cast<vtkm::Id>(0)
constexpr

◆ IS_REGULAR

constexpr vtkm::Id vtkm::worklet::contourtree_augmented::IS_REGULAR = static_cast<vtkm::Id>(2)
constexpr

◆ IS_SADDLE

constexpr vtkm::Id vtkm::worklet::contourtree_augmented::IS_SADDLE = static_cast<vtkm::Id>(3)
constexpr

◆ IS_SUPERNODE

constexpr vtkm::Id vtkm::worklet::contourtree_augmented::IS_SUPERNODE = std::numeric_limits<vtkm::Id>::max() / 4 + 1
constexpr

◆ IS_UPPER_LEAF

constexpr vtkm::Id vtkm::worklet::contourtree_augmented::IS_UPPER_LEAF = static_cast<vtkm::Id>(1)
constexpr

◆ N_NODE_COLORS

constexpr int vtkm::worklet::contourtree_augmented::N_NODE_COLORS = 12
constexpr

◆ NO_SUCH_ELEMENT

constexpr vtkm::Id vtkm::worklet::contourtree_augmented::NO_SUCH_ELEMENT = std::numeric_limits<vtkm::Id>::min()
constexpr

◆ NODE_COLORS

constexpr const char* vtkm::worklet::contourtree_augmented::NODE_COLORS[N_NODE_COLORS]
constexpr
Initial value:
= {
"red", "red4", "green", "green4", "royalblue", "royalblue4",
"cyan", "cyan4", "magenta", "magenta4", "yellow", "yellow4"
}

◆ PREFIX_WIDTH

constexpr int vtkm::worklet::contourtree_augmented::PREFIX_WIDTH = 30
constexpr

◆ PRINT_WIDTH

constexpr int vtkm::worklet::contourtree_augmented::PRINT_WIDTH = 12
constexpr

◆ TERMINAL_ELEMENT

constexpr vtkm::Id vtkm::worklet::contourtree_augmented::TERMINAL_ELEMENT = std::numeric_limits<vtkm::Id>::max() / 2 + 1
constexpr