#include <Fence.h>
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 () |
Public Member Functions inherited from vtStructure | |
| void | CopyFrom (const vtStructure &v) |
| void | SetType (vtStructureType t) |
| vtStructureType | GetType () |
| void | SetElevationOffset (float fOffset) |
| float | GetElevationOffset () const |
| void | SetAbsolute (bool b) |
| bool | GetAbsolute () const |
| vtBuilding * | GetBuilding () |
| vtFence * | GetFence () |
| vtStructInstance * | GetInstance () |
| void | WriteTags (GZOutput &out) const |
Public Member Functions inherited from Selectable | |
| void | Select (bool b) |
| bool | IsSelected () |
| void | ToggleSelect () |
Public Member Functions inherited from vtTagArray | |
| void | AddTag (const vtTag &pTag) |
| void | AddTag (const char *name, const char *value) |
| vtTag * | FindTag (const char *szTagName) |
| const vtTag * | FindTag (const char *szTagName) const |
| vtTag * | GetTag (int index) |
| const vtTag * | GetTag (int index) const |
| uint | NumTags () const |
| void | RemoveTag (int index) |
| void | RemoveTag (const char *szTagName) |
| void | Clear () |
| void | SetValueString (const char *szTagName, const vtString &string, bool bCreating=false) |
| void | SetValueBool (const char *szTagName, bool value, bool bCreating=false) |
| void | SetValueInt (const char *szTagName, int value, bool bCreating=false) |
| void | SetValueFloat (const char *szTagName, float value, bool bCreating=false) |
| void | SetValueDouble (const char *szTagName, double value, bool bCreating=false) |
| void | SetValueRGBi (const char *szTagName, const RGBi &value, bool bCreating=false) |
| const char * | GetValueString (const char *szTagName, bool bSuppressWarning=false) const |
| bool | GetValueBool (const char *szTagName) const |
| int | GetValueInt (const char *szTagName) const |
| float | GetValueFloat (const char *szTagName) const |
| double | GetValueDouble (const char *szTagName) const |
| RGBi | GetValueRGBi (const char *szTagName) const |
| bool | GetValueString (const char *szTagName, vtString &string) const |
| bool | GetValueBool (const char *szTagName, bool &bValue) const |
| bool | GetValueInt (const char *szTagName, int &iValue) const |
| bool | GetValueFloat (const char *szTagName, float &fValue) const |
| bool | GetValueDouble (const char *szTagName, double &dValue) const |
| bool | GetValueRGBi (const char *szTagName, RGBi &color) const |
| vtTagArray & | operator= (const vtTagArray &v) |
| bool | operator== (const vtTagArray &v) const |
| bool | operator!= (const vtTagArray &v) const |
| void | CopyTagsFrom (const vtTagArray &v) |
| bool | WriteToXML (const char *fname, const char *title) const |
| void | WriteToXMLBody (FILE *fp, int iIndent) const |
| bool | LoadFromXML (const char *fname) |
| virtual bool | OverrideValue (const char *szTagName, const vtString &string) |
| virtual void | WriteOverridesToXML (FILE *fp) const |
| void | LogTags () const |
Protected Attributes | |
| DLine2 | m_pFencePts |
| vtLinearParams | m_Params |
Protected Attributes inherited from vtStructure | |
| vtStructureType | m_type |
| float | m_fElevationOffset |
| bool | m_bAbsolute |
Protected Attributes inherited from Selectable | |
| bool | m_bSelect |
Protected Attributes inherited from vtTagArray | |
| std::vector< vtTag > | m_tags |
Additional Inherited Members | |
Static Public Member Functions inherited from vtTagArray | |
| static void | SetVerbose (bool value) |
Static Protected Attributes inherited from vtTagArray | |
| static bool | s_bVerbose = false |
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.8.4