xmsgrid  1.0
GmPointInPolyTester_gmPointInPolygon2D Class Reference

For testing point in polygon speed. More...

Inheritance diagram for GmPointInPolyTester_gmPointInPolygon2D:
GmPointInPolyUnitTests

Public Member Functions

 GmPointInPolyTester_gmPointInPolygon2D ()
 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 CheckPoint (const xms::Pt3d &a_pt) override
 Determine if a point is in or out. More...
 
virtual double MaxTime () override
 Maximum time test should take. More...
 
 XM_DISALLOW_COPY_AND_ASSIGN (GmPointInPolyTester_gmPointInPolygon2D)
 prevent copy/assign compiler generated functions
 

Additional Inherited Members

- Protected Member Functions inherited from GmPointInPolyUnitTests
virtual void Setup ()
 Setup the polygons.
 
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

For testing point in polygon speed.

Definition at line 2373 of file geoms.cpp.

Member Function Documentation

◆ CheckPoint()

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

Determine if a point is in or out.

Parameters
a_ptThe point to check.

Determines whether (a_x, a_y) is inside=1, on=0, or outside=-1 the polygon defined by the given vertices.

Implements GmPointInPolyUnitTests.

Definition at line 2389 of file geoms.cpp.

References xms::gmPointInPolygon2D().

◆ MaxTime()

virtual double GmPointInPolyTester_gmPointInPolygon2D::MaxTime ( )
inlineoverrideprivatevirtual

Maximum time test should take.

Returns
The maximum time.

Implements GmPointInPolyUnitTests.

Definition at line 2412 of file geoms.cpp.


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