vtdata library
Public Member Functions | Protected Attributes
vtFence Class Reference
Inheritance diagram for vtFence:
Inheritance graph
[legend]

List of all members.

Public Member Functions

vtFenceoperator= (const vtFence &v)
void AddPoint (const DPoint2 &epos)
DLine2GetFencePoints ()
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)
vtLinearParamsGetParams ()
virtual void SetParams (const vtLinearParams &params)
virtual void ProfileChanged ()

Protected Attributes

DLine2 m_pFencePts
vtLinearParams m_Params

Detailed Description

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.


Member Function Documentation

void vtFence::GetClosestPoint ( const DPoint2 point,
DPoint2 closest_point 
)

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.

 All Classes Files Functions Variables Enumerations Enumerator