11 #ifndef networkSegment_H_
12 #define networkSegment_H_
15 #include <vlutil/vlConfig.h>
19 #include <vlutil/vlString.h>
43 virtual const DtChord chord()
const;
44 virtual void setPoints(
int pt1,
int pt2);
45 virtual void increaseIndex(
int val);
55 virtual DtPoint endpoint0()
const;
56 virtual DtPoint endpoint1()
const;
58 virtual double length()
const;
64 virtual double minX()
const;
65 virtual double maxX()
const;
66 virtual double minY()
const;
67 virtual double maxY()
const;
68 virtual double minZ()
const;
69 virtual double maxZ()
const;
75 virtual double distanceToPoint(
const DtPoint& point)
const;
81 virtual double distanceToPointInXY(
const DtPoint& pointIn)
const;
94 double& distanceSquared,
98 double& otherY)
const;
106 virtual void closestPoint(
const DtPoint& pointIn,
118 double& distance)
const;
NOTE: This entire class is deprecated, in favor of Dt3dChord.
Definition: chord.h:40
int myIndex2
Definition: networkSegment.h:121
The DtNetworkElement is the base member for nodes, segments, and edges. This class presents the inter...
Definition: networkSegment.h:26
#define DT_DLL_gdb
Definition: gdbDefines.h:25
DtNetworkEdge * myParentEdge
Definition: networkSegment.h:123
virtual const DtSpecification & specification() const =0
DT_DLL_VRVCORE double distance(const makVrv::DtCoordinateSystem &, const DtVector &from, const DtVector &to)
Returns the distance from the two points. Coordinates are in local database coordinates The coordinat...
Definition: specification.h:27
Definition: networkEdge.h:28
A DtChord is a finite line segment in 3-space, represented by two points. Data derived from the two e...
DT_DLL_VRVCORE double length(const makVrv::DtCoordinateSystem &, const std::vector< DtVector > &vertices)
Returns the total distance of a segmented line defined by the provided vector of vertices. Coordinates are in local database coordinates. The coordinate system is used to convert between the local database coordinates and geocentric. All distance is in 2D – the Z value is ignored.
DT_DLL_vrfutil double closestPointInXY(const DtRailSegment *seg, const DtVector &pointFronm, DtVector &closest, const Coordinate_System &coordinateSystem)
int myIndex1
Definition: networkSegment.h:120
Definition: networkElement.h:38
static const double theParallelAngle
Definition: networkSegment.h:125