|
xmsgrid
1.0
|
Helper class for testing GmPolygon. More...
Public Member Functions | |
| GmPointInPolyTester_GmPolygon () | |
| Constructor. | |
Public Member Functions inherited from GmPointInPolyUnitTests | |
| GmPointInPolyUnitTests () | |
| constructor | |
| void | DoTest () |
| Run the test. This is the main function to call. | |
Private Member Functions | |
| virtual void | Setup () override |
| Sets things up. | |
| virtual void | CheckPoint (const xms::Pt3d &a_pt) override |
| Checks if point is covered by the poly and updates status. More... | |
| virtual double | MaxTime () override |
| Return the max time this test should ever take. More... | |
| XM_DISALLOW_COPY_AND_ASSIGN (GmPointInPolyTester_GmPolygon) | |
| Hide compiler generated copy and assign. | |
Private Attributes | |
| BSHP< xms::GmPolygon > | m_poly |
| Polygon to test. | |
Additional Inherited Members | |
Protected Member Functions inherited from GmPointInPolyUnitTests | |
| virtual void | CheckPoints () |
| Check a lot of points to see if they are in the polys. | |
| virtual void | GetResults () |
| Get the timer results and do some assertions. | |
Protected Attributes inherited from GmPointInPolyUnitTests | |
| std::vector< xms::Pt3d > | m_outPoly |
| Output polygon. | |
| std::vector< xms::Pt3d > | m_inPoly |
| Input polygon. | |
| boost::timer::cpu_timer | m_timer |
| Timer. | |
| int | m_count |
| Number of points checked. | |
| int | m_status |
| Status (in, out, on) of at least one pt. | |
Helper class for testing GmPolygon.
Definition at line 319 of file GmPolygon.cpp.
|
inlineoverrideprivatevirtual |
Checks if point is covered by the poly and updates status.
| [in] | a_pt | The point. |
Implements GmPointInPolyUnitTests.
Definition at line 347 of file GmPolygon.cpp.
References m_poly, and GmPointInPolyUnitTests::m_status.
|
inlineoverrideprivatevirtual |
Return the max time this test should ever take.
Implements GmPointInPolyUnitTests.
Definition at line 357 of file GmPolygon.cpp.