VTK-m  2.0
Public Member Functions | Public Attributes | Static Public Attributes | Private Attributes | List of all members
vtkm::worklet::contourtree_augmented::DataSetMeshTriangulation2DFreudenthal Class Reference

Class representing a 2D dataset mesh with freudenthal triangulation connectivity for contour tree computation. More...

#include <DataSetMeshTriangulation2DFreudenthal.h>

Inheritance diagram for vtkm::worklet::contourtree_augmented::DataSetMeshTriangulation2DFreudenthal:
vtkm::worklet::contourtree_augmented::DataSetMesh vtkm::cont::ExecutionObjectBase

Public Member Functions

void SetPrepareForExecutionBehavior (bool getMax)
 
MeshStructureFreudenthal2D PrepareForExecution (vtkm::cont::DeviceAdapterId device, vtkm::cont::Token &token) const
 Prepare mesh for use in VTKm worklets. More...
 
 DataSetMeshTriangulation2DFreudenthal (vtkm::Id2 meshSize)
 Constructor. More...
 
MeshBoundary2DExec GetMeshBoundaryExecutionObject () const
 Helper function to create a boundary excution object for the mesh. More...
 
void GetBoundaryVertices (IdArrayType &boundaryVertexArray, IdArrayType &boundarySortIndexArray, MeshBoundary2DExec *meshBoundaryExecObj=NULL) const
 Get boundary vertices. More...
 
void GetOwnedVerticesByGlobalId (const vtkm::worklet::contourtree_augmented::mesh_dem::IdRelabeler &localToGlobalIdRelabeler, IdArrayType &ownedVertices) const
 Get of global indices of the vertices owned by this mesh. More...
 
- Public Member Functions inherited from vtkm::worklet::contourtree_augmented::DataSetMesh
 DataSetMesh ()
 
 DataSetMesh (vtkm::Id3 meshSize)
 
virtual ~DataSetMesh ()
 
vtkm::Id GetNumberOfVertices () const
 
template<typename T , typename StorageType >
void SortData (const vtkm::cont::ArrayHandle< T, StorageType > &values)
 
vtkm::cont::ArrayHandleTransform< vtkm::cont::ArrayHandlePermutation< IdArrayType, IdArrayType >, mesh_dem::IdRelabelerGetGlobalIdsFromSortIndices (const IdArrayType &sortIds, const mesh_dem::IdRelabeler *localToGlobalIdRelabeler) const
 Routine to return the global IDs for a set of vertices We here return a fancy array handle to convert values on-the-fly without requiring additional memory. More...
 
template<typename MeshIdArrayType >
vtkm::cont::ArrayHandleTransform< MeshIdArrayType, mesh_dem::IdRelabelerGetGlobalIdsFromMeshIndices (const MeshIdArrayType &meshIds, const mesh_dem::IdRelabeler *localToGlobalIdRelabeler) const
 Routine to return the global IDs for a set of vertices We here return a fancy array handle to convert values on-the-fly without requiring additional memory SortIdArrayType must be an array if Ids. More...
 
void DebugPrint (const char *message, const char *fileName, long lineNum)
 

Public Attributes

m2d_freudenthal::EdgeBoundaryDetectionMasksType EdgeBoundaryDetectionMasks
 Constants and case tables. More...
 
- Public Attributes inherited from vtkm::worklet::contourtree_augmented::DataSetMesh
vtkm::Id3 MeshSize
 
vtkm::Id NumVertices
 
vtkm::Id NumLogSteps
 
IdArrayType SortOrder
 
IdArrayType SortIndices
 

Static Public Attributes

static constexpr int MAX_OUTDEGREE = 3
 

Private Attributes

bool UseGetMax
 

Additional Inherited Members

- Protected Member Functions inherited from vtkm::worklet::contourtree_augmented::DataSetMesh
template<typename MeshTypeObj >
void GetOwnedVerticesByGlobalIdImpl (const MeshTypeObj *mesh, const vtkm::worklet::contourtree_augmented::mesh_dem::IdRelabeler &localToGlobalIdRelabeler, IdArrayType &ownedVertices) const
 Compute a list of the global Iss of all vertices that logically belong to the data block represented by this mesh object (used in distributd parallel computation). More...
 
virtual void DebugPrintExtends ()
 
template<typename T , typename StorageType >
void DebugPrintValues (const vtkm::cont::ArrayHandle< T, StorageType > &values)
 

Detailed Description

Class representing a 2D dataset mesh with freudenthal triangulation connectivity for contour tree computation.

Constructor & Destructor Documentation

◆ DataSetMeshTriangulation2DFreudenthal()

vtkm::worklet::contourtree_augmented::DataSetMeshTriangulation2DFreudenthal::DataSetMeshTriangulation2DFreudenthal ( vtkm::Id2  meshSize)
inline

Constructor.

Parameters
meshSizevtkm::Id2 object describing the number of vertices in x and y

Member Function Documentation

◆ GetBoundaryVertices()

void vtkm::worklet::contourtree_augmented::DataSetMeshTriangulation2DFreudenthal::GetBoundaryVertices ( IdArrayType boundaryVertexArray,
IdArrayType boundarySortIndexArray,
MeshBoundary2DExec meshBoundaryExecObj = NULL 
) const
inline

Get boundary vertices.

Parameters
[out]boundaryVertexArrayArray of boundary vertices
[out]boundarySortIndexArrayArray of sort index of boundary vertices
[in]meshBoundaryExecObjOptional mesh boundary object inluced for consistency with ContourTreeMesh. if omitted, GetMeshBoundaryExecutionObject() will be used.

◆ GetMeshBoundaryExecutionObject()

MeshBoundary2DExec vtkm::worklet::contourtree_augmented::DataSetMeshTriangulation2DFreudenthal::GetMeshBoundaryExecutionObject ( ) const
inline

Helper function to create a boundary excution object for the mesh.

The MeshBoundary2DExec object implements functions for using in worklets in VTKm's execution environment related the boundary of the mesh.

◆ GetOwnedVerticesByGlobalId()

void vtkm::worklet::contourtree_augmented::DataSetMeshTriangulation2DFreudenthal::GetOwnedVerticesByGlobalId ( const vtkm::worklet::contourtree_augmented::mesh_dem::IdRelabeler localToGlobalIdRelabeler,
IdArrayType ownedVertices 
) const
inline

Get of global indices of the vertices owned by this mesh.

Implemented via DataSetMesh.GetOwnedVerticesByGlobalIdImpl

◆ PrepareForExecution()

MeshStructureFreudenthal2D vtkm::worklet::contourtree_augmented::DataSetMeshTriangulation2DFreudenthal::PrepareForExecution ( vtkm::cont::DeviceAdapterId  device,
vtkm::cont::Token token 
) const
inline

Prepare mesh for use in VTKm worklets.

This function creates a MeshStructureFreudenthal2D ExecutionObject that implements relevant mesh functions on the device.

◆ SetPrepareForExecutionBehavior()

void vtkm::worklet::contourtree_augmented::DataSetMeshTriangulation2DFreudenthal::SetPrepareForExecutionBehavior ( bool  getMax)
inline

Member Data Documentation

◆ EdgeBoundaryDetectionMasks

m2d_freudenthal::EdgeBoundaryDetectionMasksType vtkm::worklet::contourtree_augmented::DataSetMeshTriangulation2DFreudenthal::EdgeBoundaryDetectionMasks

Constants and case tables.

◆ MAX_OUTDEGREE

constexpr int vtkm::worklet::contourtree_augmented::DataSetMeshTriangulation2DFreudenthal::MAX_OUTDEGREE = 3
staticconstexpr

◆ UseGetMax

bool vtkm::worklet::contourtree_augmented::DataSetMeshTriangulation2DFreudenthal::UseGetMax
private

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