|
xmsgrid
1.0
|
Implementation of GmPolyLinePtRedistributer. More...
Public Member Functions | |
| virtual VecPt3d | Redistribute (const VecPt3d &a_input, double a_size) override |
| Redistributes the distance between points on a polyline based on the a_size value provided to the method. More... | |
| double | PolyLineLengths (const VecPt3d &a_pts, VecDbl &a_lengths) |
| Calculates the total length (xy) of a polyline as well as the length of each segment. More... | |
| VecPt3d | RedistPolyLineWithNumSeg (const VecPt3d &a_pts, double a_totalLength, const VecDbl &a_lengths, int a_nSeg) |
| Calculates the total length (xy) of a polyline as well as the length of each segment. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from xms::GmPolyLinePtRedistributer | |
| static BSHP< GmPolyLinePtRedistributer > | New () |
| Creates an instance of this class. More... | |
Implementation of GmPolyLinePtRedistributer.
Definition at line 41 of file GmPolyLinePtRedistributer.cpp.
| double xms::GmPolyLinePtRedistributerImpl::PolyLineLengths | ( | const VecPt3d & | a_pts, |
| VecDbl & | a_lengths | ||
| ) |
Calculates the total length (xy) of a polyline as well as the length of each segment.
| [in] | a_pts | The point locations of the polyline. |
| [out] | a_lengths | The length of each segment of the polyline. |
Definition at line 101 of file GmPolyLinePtRedistributer.cpp.
References Mdist(), xms::Pt3< T >::x, and xms::Pt3< T >::y.
Referenced by Redistribute().
| VecPt3d xms::GmPolyLinePtRedistributerImpl::RedistPolyLineWithNumSeg | ( | const VecPt3d & | a_pts, |
| double | a_totalLength, | ||
| const VecDbl & | a_lengths, | ||
| int | a_nSeg | ||
| ) |
Calculates the total length (xy) of a polyline as well as the length of each segment.
| [in] | a_pts | The point locations of the polyline. |
| [in] | a_totalLength | The total length of the polyline. |
| [in] | a_lengths | The length of each segment of the polyline. |
| [in] | a_nSeg | The number of segments for the new polyline. |
Definition at line 122 of file GmPolyLinePtRedistributer.cpp.
References xms::Pt3< T >::x, and xms::Pt3< T >::y.
Referenced by Redistribute().
|
overridevirtual |
Redistributes the distance between points on a polyline based on the a_size value provided to the method.
| [in] | a_polyLines | Point locations defining the polylines. |
| [in] | a_size | Target distance between points on the polyline. |
Definition at line 84 of file GmPolyLinePtRedistributer.cpp.
References PolyLineLengths(), RedistPolyLineWithNumSeg(), and XM_ENSURE_TRUE.
Referenced by GmPolyLinePtRedistributerUnitTests::testRedistribute(), and GmPolyLinePtRedistributerUnitTests::testRedistribute1().