xmsgrid  1.0
GmPointInPolyTester_GmPolygon Class Reference

Helper class for testing GmPolygon. More...

Inheritance diagram for GmPointInPolyTester_GmPolygon:
GmPointInPolyUnitTests

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::GmPolygonm_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::Pt3dm_outPoly
 Output polygon.
 
std::vector< xms::Pt3dm_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.
 

Detailed Description

Helper class for testing GmPolygon.

Definition at line 319 of file GmPolygon.cpp.

Member Function Documentation

◆ CheckPoint()

virtual void GmPointInPolyTester_GmPolygon::CheckPoint ( const xms::Pt3d a_pt)
inlineoverrideprivatevirtual

Checks if point is covered by the poly and updates status.

Parameters
[in]a_ptThe point.

Implements GmPointInPolyUnitTests.

Definition at line 347 of file GmPolygon.cpp.

References m_poly, and GmPointInPolyUnitTests::m_status.

◆ MaxTime()

virtual double GmPointInPolyTester_GmPolygon::MaxTime ( )
inlineoverrideprivatevirtual

Return the max time this test should ever take.

Returns
The max time.

Implements GmPointInPolyUnitTests.

Definition at line 357 of file GmPolygon.cpp.


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