xmsgrid  1.0
XmUGridUnitTests Class Reference

Tests XmUGrids. More...

Inheritance diagram for XmUGridUnitTests:

Public Member Functions

void testOperators ()
 Test constructors and assignment operator.
 
void testUGridStreams ()
 [snip_test_UGrid_Streams] More...
 
void testGetSetPoint ()
 [snip_test_UGrid_Streams] More...
 
void testGetCellCellstream ()
 Test Getting a cell stream.
 
void testGetCellType ()
 Test getting number of points, cells, and cell type.
 
void testGetCellDimension ()
 Test getting dimension of single cells and all cells.
 
void testGetExtents ()
 Test getting the extents of a UGrid.
 
void testGetCellEdgeCount ()
 Test getting edges of single cells.
 
void testGetCell3dFaceCount ()
 [snip_test_GetNumberOfCellFaces] More...
 
void testGetCell3dFacePointCount ()
 [snip_test_GetNumberOfCellFaces] More...
 
void testGetPointAdjacentCellsSimple ()
 Test getting the cells attached to points.
 
void testGetPointAdjacentCells ()
 Test getting cells adjacent to a point.
 
void testGetCellPoints ()
 Test getting a vector of point indices for a cell.
 
void testGetCellEdge ()
 Test iterating through the edges of cells. More...
 
void testGetPointsAdjacentCells ()
 Test retrieving common cells from points.
 
void testGetCellAdjacentCells ()
 [snip_test_GetCellAdjacentCells] More...
 
void testGetCellEdgeAdjacentCells ()
 [snip_test_GetCellAdjacentCells] More...
 
void testEdgeAdjacentCells ()
 Test retrieving Adjacent Cell.
 
void testGetCell3dFacePoints ()
 Test retrieving Cell Face.
 
void testGetCell3dFaceAdjacentCell ()
 [snip_test_GetCell3dFaceAdjacentCell] More...
 
void testGetPointAdjacentPoints ()
 [snip_test_GetCell3dFaceAdjacentCell] More...
 
void testGetCellPlanViewPolygon ()
 [snip_test_GetPointAdjacentPoints] More...
 
void testGetCellPlanViewPolygonMultiSideFace ()
 [snip_test_GetCellPlanViewPolygon] More...
 
void testIsCellValidWithPointChange ()
 Test validating a cell for a changed point.
 
void testPointFunctions ()
 [snip_test_PointFunctions] More...
 
void testCellFunctions ()
 [snip_test_PointFunctions] More...
 
void testCellstreamFunctions ()
 Test various cell functions. More...
 
void testCellEdgeAdjacentCellFunctions ()
 Test all get adjacent cell functions. More...
 
void testCellEdges ()
 Test various cell functions. More...
 
void testCell3dFaceFunctions ()
 Test various get face functions. More...
 
void testGetCell3dFaceOrientationHexahedrons ()
 [snip_test_Cell3dFaceFunctions] More...
 
void testGetCell3dFaceOrientationConcaveCell ()
 Test face orientation for concave cell where a triangle from the first two points in the top face to the centroid create a triangle with a normal pointing down rather than up.
 
void testCell3dFunctionCaching ()
 Test caching to speed up a few 3D cell getters.
 
void testLargeUGridLinkSpeed ()
 Tests creating a large UGrid and checks the time spent.
 

Detailed Description

Tests XmUGrids.

Definition at line 30 of file XmUGrid.t.h.

Member Function Documentation

◆ testCell3dFaceFunctions()

void XmUGridUnitTests::testCell3dFaceFunctions ( )

Test various get face functions.

[snip_test_CellEdges] [snip_test_Cell3dFaceFunctions]

Definition at line 5430 of file XmUGrid.cpp.

References xms::TEST_XmUGrid3dLinear(), and TS_REQUIRE_NOT_NULL.

◆ testCellEdgeAdjacentCellFunctions()

void XmUGridUnitTests::testCellEdgeAdjacentCellFunctions ( )

Test all get adjacent cell functions.

[snip_test_CellstreamFunctions] [snip_test_CellEdgeAdjacentCellFunctions]

Definition at line 5375 of file XmUGrid.cpp.

References xms::TEST_XmUGridSimpleQuad(), and TS_REQUIRE_NOT_NULL.

◆ testCellEdges()

void XmUGridUnitTests::testCellEdges ( )

Test various cell functions.

[snip_test_CellEdgeAdjacentCellFunctions] [snip_test_CellEdges]

Definition at line 5414 of file XmUGrid.cpp.

References xms::TEST_XmUGridSimpleQuad(), and TS_REQUIRE_NOT_NULL.

◆ testCellFunctions()

void XmUGridUnitTests::testCellFunctions ( )

[snip_test_PointFunctions]

[snip_test_CellFunctions] Test various cell functions

Definition at line 5310 of file XmUGrid.cpp.

References xms::TEST_XmUGridSimpleQuad(), and TS_REQUIRE_NOT_NULL.

◆ testCellstreamFunctions()

void XmUGridUnitTests::testCellstreamFunctions ( )

Test various cell functions.

[snip_test_CellFunctions] [snip_test_CellstreamFunctions]

Definition at line 5353 of file XmUGrid.cpp.

References xms::TEST_XmUGridSimpleQuad(), and TS_REQUIRE_NOT_NULL.

◆ testGetCell3dFaceAdjacentCell()

void XmUGridUnitTests::testGetCell3dFaceAdjacentCell ( )

[snip_test_GetCell3dFaceAdjacentCell]

Test retrieving Cell Face Neighbor

Definition at line 4976 of file XmUGrid.cpp.

References xms::TEST_XmUBuildHexahedronUgrid(), and TS_REQUIRE_NOT_NULL.

◆ testGetCell3dFaceCount()

void XmUGridUnitTests::testGetCell3dFaceCount ( )

[snip_test_GetNumberOfCellFaces]

Test getting edges of single cells.

Definition at line 4318 of file XmUGrid.cpp.

References xms::TEST_XmUGrid2dLinear(), xms::TEST_XmUGrid3dLinear(), and TS_REQUIRE_NOT_NULL.

◆ testGetCell3dFaceOrientationHexahedrons()

void XmUGridUnitTests::testGetCell3dFaceOrientationHexahedrons ( )

[snip_test_Cell3dFaceFunctions]

Test face orientation for 3D grid of hexahedrons.

Definition at line 5531 of file XmUGrid.cpp.

References xms::TEST_XmUBuildHexahedronUgrid(), and xms::TEST_XmUBuildPolyhedronUgrid().

◆ testGetCell3dFacePointCount()

void XmUGridUnitTests::testGetCell3dFacePointCount ( )

[snip_test_GetNumberOfCellFaces]

Test getting the number of face points for a cell face.

Definition at line 4349 of file XmUGrid.cpp.

References xms::TEST_XmUGrid2dLinear(), xms::TEST_XmUGrid3dLinear(), and TS_REQUIRE_NOT_NULL.

◆ testGetCellAdjacentCells()

void XmUGridUnitTests::testGetCellAdjacentCells ( )

[snip_test_GetCellAdjacentCells]

Test retrieving Cell Neighbors

Definition at line 4718 of file XmUGrid.cpp.

References xms::TEST_XmUGrid2dLinear(), xms::TEST_XmUGrid3dLinear(), xms::TEST_XmUGridSimpleQuad(), and TS_REQUIRE_NOT_NULL.

◆ testGetCellEdge()

void XmUGridUnitTests::testGetCellEdge ( )

Test iterating through the edges of cells.

[snip_test_GetCellEdgeFromEdgeIndex2D]

[snip_test_GetCellEdgeFromEdgeIndex2D]

[snip_test_GetCellEdgeFromEdgeIndex3D]

[snip_test_GetCellEdgeFromEdgeIndex3D]

Definition at line 4541 of file XmUGrid.cpp.

References xms::TEST_XmUGrid2dLinear(), xms::TEST_XmUGrid3dLinear(), xms::TEST_XmUGridSimpleQuad(), and TS_REQUIRE_NOT_NULL.

◆ testGetCellEdgeAdjacentCells()

void XmUGridUnitTests::testGetCellEdgeAdjacentCells ( )

[snip_test_GetCellAdjacentCells]

Test retrieving Adjacent Cell

Definition at line 4798 of file XmUGrid.cpp.

References xms::TEST_XmUBuildHexahedronUgrid(), xms::TEST_XmUGridSimpleQuad(), and TS_REQUIRE_NOT_NULL.

◆ testGetCellPlanViewPolygon()

void XmUGridUnitTests::testGetCellPlanViewPolygon ( )

[snip_test_GetPointAdjacentPoints]

[snip_test_GetCellPlanViewPolygon] Test getting the plan view polygon of a cell.

Definition at line 5112 of file XmUGrid.cpp.

References xms::TEST_XmUBuild3DChevronUgrid(), xms::TEST_XmUGrid2dLinear(), xms::TEST_XmUGrid3dLinear(), and TS_REQUIRE_NOT_NULL.

◆ testGetCellPlanViewPolygonMultiSideFace()

void XmUGridUnitTests::testGetCellPlanViewPolygonMultiSideFace ( )

[snip_test_GetCellPlanViewPolygon]

Test getting the plan view points of a cell.

Definition at line 5170 of file XmUGrid.cpp.

References xms::XmUGrid::New(), and TS_REQUIRE_NOT_NULL.

◆ testGetPointAdjacentPoints()

void XmUGridUnitTests::testGetPointAdjacentPoints ( )

[snip_test_GetCell3dFaceAdjacentCell]

[snip_test_GetPointAdjacentPoints] Test GetPointAdjacentPoints and GetPointAdjacentLocations.

Definition at line 5074 of file XmUGrid.cpp.

References xms::TEST_XmUGridSimpleQuad(), and TS_REQUIRE_NOT_NULL.

◆ testGetSetPoint()

void XmUGridUnitTests::testGetSetPoint ( )

[snip_test_UGrid_Streams]

Test Getting a point

[snip_test_NewOperator]

[snip_test_NewOperator]

Definition at line 4099 of file XmUGrid.cpp.

References xms::XmUGrid::New().

◆ testPointFunctions()

void XmUGridUnitTests::testPointFunctions ( )

[snip_test_PointFunctions]

Test various point functions

Definition at line 5254 of file XmUGrid.cpp.

References xms::TEST_XmUGridSimpleQuad(), and TS_REQUIRE_NOT_NULL.

◆ testUGridStreams()

void XmUGridUnitTests::testUGridStreams ( )

[snip_test_UGrid_Streams]

Test XmUGrid point and cell streams.

Definition at line 4041 of file XmUGrid.cpp.

References xms::XmUGrid::IsValidCellstream(), and xms::XmUGrid::New().


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