VTK-m
2.0
|
#include <ContourTreeMesh.h>
Public Member Functions | |
void | SetPrepareForExecutionBehavior (bool getMax) |
contourtree_mesh_inc_ns::MeshStructureContourTreeMesh | PrepareForExecution (vtkm::cont::DeviceAdapterId, vtkm::cont::Token &token) const |
ContourTreeMesh () | |
ContourTreeMesh (const IdArrayType &arcs, const IdArrayType &inSortOrder, const vtkm::cont::ArrayHandle< FieldType > &values, const IdArrayType &inGlobalMeshIndex) | |
ContourTreeMesh (const IdArrayType &nodes, const IdArrayType &arcs, const IdArrayType &inSortOrder, const vtkm::cont::ArrayHandle< FieldType > &values, const IdArrayType &inGlobalMeshIndex) | |
ContourTreeMesh (const IdArrayType &nodes, const IdArrayType &arcs, const ContourTreeMesh< FieldType > &mesh) | |
ContourTreeMesh (const IdArrayType &arcs, const ContourTreeMesh< FieldType > &mesh) | |
ContourTreeMesh (const char *filename) | |
vtkm::Id | GetNumberOfVertices () const |
void | MergeWith (ContourTreeMesh< FieldType > &other, vtkm::cont::LogLevel TreeLogLevel=vtkm::cont::LogLevel::Perf, std::string timingsMessage="") |
void | Save (const char *filename) const |
void | Load (const char *filename) |
template<typename T , typename StorageType > | |
void | SortData (const vtkm::cont::ArrayHandle< T, StorageType > &values) const |
void | PrintContent (std::ostream &outStream=std::cout) const |
void | DebugPrint (const char *message, const char *fileName, long lineNum) const |
MeshBoundaryContourTreeMeshExec | GetMeshBoundaryExecutionObject (vtkm::Id3 globalSize, vtkm::Id3 minIdx, vtkm::Id3 maxIdx) const |
void | GetBoundaryVertices (IdArrayType &boundaryVertexArray, IdArrayType &boundarySortIndexArray, MeshBoundaryContourTreeMeshExec *meshBoundaryExecObj) const |
vtkm::cont::ArrayHandlePermutation< IdArrayType, IdArrayType > | GetGlobalIdsFromSortIndices (const IdArrayType &sortIds, const vtkm::worklet::contourtree_augmented::mesh_dem::IdRelabeler *localToGlobalIdRelabeler=nullptr) const |
copies the global IDs for a set of sort IDs notice that the sort ID is the same as the mesh ID for the ContourTreeMesh class. More... | |
template<typename MeshIdArrayType > | |
vtkm::cont::ArrayHandlePermutation< MeshIdArrayType, IdArrayType > | GetGlobalIdsFromMeshIndices (const MeshIdArrayType &meshIds, const vtkm::worklet::contourtree_augmented::mesh_dem::IdRelabeler *localToGlobalIdRelabeler=nullptr) const |
copies the global IDs for a set of mesh IDs notice that the sort ID is the same as the mesh ID for the ContourTreeMesh class. More... | |
Static Public Attributes | |
static const int | MAX_OUTDEGREE = 20 |
Private Member Functions | |
void | InitializeNeighborConnectivityFromArcs (const IdArrayType &arcs) |
void | ComputeMaxNeighbors () |
template<typename ValueType > | |
void | SaveVector (std::ostream &os, const vtkm::cont::ArrayHandle< ValueType > &vec) const |
template<typename ValueType > | |
void | LoadVector (std::istream &is, vtkm::cont::ArrayHandle< ValueType > &vec) |
Private Attributes | |
vtkm::cont::Invoker | Invoke |
bool | mGetMax |
|
inline |
vtkm::worklet::contourtree_augmented::ContourTreeMesh< FieldType >::ContourTreeMesh | ( | const IdArrayType & | arcs, |
const IdArrayType & | inSortOrder, | ||
const vtkm::cont::ArrayHandle< FieldType > & | values, | ||
const IdArrayType & | inGlobalMeshIndex | ||
) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprivate |
|
inline |
|
inline |
|
inline |
copies the global IDs for a set of mesh IDs notice that the sort ID is the same as the mesh ID for the ContourTreeMesh class.
To reduce memory usage we here use a fancy array handle rather than copy data as is needed for the DataSetMesh types. MeshIdArrayType must be an array if Ids. Usually this is a vtkm::worklet::contourtree_augmented::IdArrayType but in some cases it may also be a fancy array to avoid memory allocation We here return a fancy array handle to convert values on-the-fly without requiring additional memory
[in] | meshIds | Array with mesh Ids to be converted from local to global Ids |
[in] | localToGlobalIdRelabeler | This parameter is here only for consistency with the DataSetMesh types but is not used here and as such can simply be set to nullptr |
|
inline |
copies the global IDs for a set of sort IDs notice that the sort ID is the same as the mesh ID for the ContourTreeMesh class.
To reduce memory usage we here use a fancy array handle rather than copy data as is needed for the DataSetMesh types. We here return a fancy array handle to convert values on-the-fly without requiring additional memory
[in] | sortIds | Array with sort Ids to be converted from local to global Ids |
[in] | localToGlobalIdRelabeler | This parameter is here only for consistency with the DataSetMesh types but is not used here and as such can simply be set to nullptr |
|
inline |
|
inline |
|
inlineprivate |
|
inline |
|
inlineprivate |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprivate |
|
inline |
|
inline |
IdArrayType vtkm::worklet::contourtree_augmented::ContourTreeMesh< FieldType >::GlobalMeshIndex |
|
private |
|
static |
vtkm::Id vtkm::worklet::contourtree_augmented::ContourTreeMesh< FieldType >::MaxNeighbors |
|
private |
IdArrayType vtkm::worklet::contourtree_augmented::ContourTreeMesh< FieldType >::NeighborConnectivity |
IdArrayType vtkm::worklet::contourtree_augmented::ContourTreeMesh< FieldType >::NeighborOffsets |
vtkm::Id vtkm::worklet::contourtree_augmented::ContourTreeMesh< FieldType >::NumVertices |
vtkm::cont::ArrayHandle<FieldType> vtkm::worklet::contourtree_augmented::ContourTreeMesh< FieldType >::SortedValues |
vtkm::cont::ArrayHandleIndex vtkm::worklet::contourtree_augmented::ContourTreeMesh< FieldType >::SortIndices |
vtkm::cont::ArrayHandleIndex vtkm::worklet::contourtree_augmented::ContourTreeMesh< FieldType >::SortOrder |