OpenWalnut  1.5.0dev
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
WJoinContourTreeTest Class Reference

Unit tests the Join Tree of the Contour Tree! More...

#include <WJoinContourTree_test.h>

+ Inheritance diagram for WJoinContourTreeTest:
+ Collaboration diagram for WJoinContourTreeTest:

Public Member Functions

void testbuildJoinTreeOnRegular2DGrid (void)
 The construction of a Join Tree is done via a special index array. More...
 
void testGetVolumeVoxelsEnclosedByIsoSurfaceWithOutMerge (void)
 All voxels enclosed by the biggest isosurface are contained in the biggest component of the JoinTree above the given isovalue the in in the JoinTree. More...
 
void testGetVolumeVoxelsEnclosedByIsoSurfaceWithMerges (void)
 All voxels enclosed by the biggest isoSurface are contained in the biggest component which may be created with some merges of the join tree. More...
 

Protected Member Functions

void setUp ()
 Creates an example dataset so I hope its easy to test the join tree. More...
 
void tearDown (void)
 Tidy up things created during setUp. More...
 

Protected Attributes

std::shared_ptr< WDataSetSinglem_dataset
 Dataset which is used to create the join tree. More...
 

Detailed Description

Unit tests the Join Tree of the Contour Tree!

Definition at line 40 of file WJoinContourTree_test.h.

Member Function Documentation

◆ setUp()

void WJoinContourTreeTest::setUp ( )
inlineprotected

Creates an example dataset so I hope its easy to test the join tree.

Definition at line 121 of file WJoinContourTree_test.h.

References WLogger::startup().

+ Here is the call graph for this function:

◆ tearDown()

void WJoinContourTreeTest::tearDown ( void  )
inlineprotected

Tidy up things created during setUp.

Definition at line 148 of file WJoinContourTree_test.h.

References m_dataset.

◆ testbuildJoinTreeOnRegular2DGrid()

void WJoinContourTreeTest::testbuildJoinTreeOnRegular2DGrid ( void  )
inline

The construction of a Join Tree is done via a special index array.

15 \ 14 13 \ \ \ 12 \ \ \ 11 \ \ \ 10 \ \ / \ 9 \ / \ 8 \ / 5 | 4 | 3 | 2 | 1 | 0 | -1 | -3

Definition at line 46 of file WJoinContourTree_test.h.

References WJoinContourTree::buildJoinTree(), m_dataset, and WJoinContourTree::m_joinTree.

+ Here is the call graph for this function:

◆ testGetVolumeVoxelsEnclosedByIsoSurfaceWithMerges()

void WJoinContourTreeTest::testGetVolumeVoxelsEnclosedByIsoSurfaceWithMerges ( void  )
inline

All voxels enclosed by the biggest isoSurface are contained in the biggest component which may be created with some merges of the join tree.

Definition at line 106 of file WJoinContourTree_test.h.

References WJoinContourTree::buildJoinTree(), WJoinContourTree::getVolumeVoxelsEnclosedByIsoSurface(), and m_dataset.

+ Here is the call graph for this function:

◆ testGetVolumeVoxelsEnclosedByIsoSurfaceWithOutMerge()

void WJoinContourTreeTest::testGetVolumeVoxelsEnclosedByIsoSurfaceWithOutMerge ( void  )
inline

All voxels enclosed by the biggest isosurface are contained in the biggest component of the JoinTree above the given isovalue the in in the JoinTree.

Definition at line 91 of file WJoinContourTree_test.h.

References WJoinContourTree::buildJoinTree(), WJoinContourTree::getVolumeVoxelsEnclosedByIsoSurface(), and m_dataset.

+ Here is the call graph for this function:

Member Data Documentation

◆ m_dataset

std::shared_ptr< WDataSetSingle > WJoinContourTreeTest::m_dataset
protected

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