|
vtdata library
|

Public Member Functions | |
| vtFence & | operator= (const vtFence &v) |
| void | AddPoint (const DPoint2 &epos) |
| DLine2 & | GetFencePoints () |
| void | GetClosestPoint (const DPoint2 &point, DPoint2 &closest) |
| double | GetDistanceToLine (const DPoint2 &point) |
| int | GetNearestPointIndex (const DPoint2 &point, double &fDist) |
| bool | IsContainedBy (const DRECT &rect) const |
| bool | GetExtents (DRECT &rect) const |
| void | WriteXML (GZOutput &out, bool bDegrees) const |
| void | ApplyStyle (vtLinearStyle style) |
| vtLinearParams & | GetParams () |
| virtual void | SetParams (const vtLinearParams ¶ms) |
| virtual void | ProfileChanged () |
Protected Attributes | |
| DLine2 | m_pFencePts |
| vtLinearParams | m_Params |
The vtFence class represents any linear structure. This can be a fence, a wall, a railing, or any other kind of build structure which follows a line on the ground.
Given a 2d point, return the fence point closest to it.
| double vtFence::GetDistanceToLine | ( | const DPoint2 & | point | ) |
Given a 2d point, return the distance to the closest point on the centerline.
1.7.4