VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
localVertexList.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1999-2001 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 
8 #pragma once
9 
10 #include "vrfutil/vrfutilDefines.h"
11 #include "vrfutil/vertexList.h"
12 
13 class DtLocalVector;
15 
21 {
22 public:
23 
26 
29  parentRegistry = NULL);
30 
32  virtual ~DtLocalVertexList() override;
33 
36  virtual bool closedFigure() const;
37  virtual void setClosedFigure(bool closed);
38 
41  virtual bool isEllipsoid() const;
42  virtual void setIsEllipsoid(bool closed);
43 
46  virtual bool projection() const;
47  virtual void setProjection(bool projection);
48 
53 
61 
67  virtual bool leftOf(const DtVector& point) const;
68 
74  virtual double headingAngleTo(const DtVector& point) const;
75 
81  virtual double elevationAngleTo(const DtVector& point) const;
82 
88  virtual double localDistSquaredTo(const DtVector& point) const;
89 
95  virtual double distSquaredTo2D(const DtVector& point) const;
96 
103  virtual bool intersects(const DtVector& point1, const DtVector& point2) const;
104 
107  virtual bool getClosestVertex2D(const DtVector& point, DtVector& vertex) const;
108 
111  virtual DtListItem* getClosestVertex2D(const DtVector& point) const;
112 
116  virtual bool getClosestLine2D(const DtVector& point, DtVector& linePt1,
117  DtVector& linePt2) const;
118 
120  virtual void setFrom(const DtLocalVectorIterator&);
121 
122 public:
123 
125  static double distanceSquaredPointToLine2D(const DtVector& point,
126  const DtVector& linePt1, const DtVector& linePt2);
127 
129  static double distanceSquaredPointToPoint2D(const DtVector& point1,
130  const DtVector& point2);
131 
134  DtLocalVertexList& operator=(const std::vector<DtVector>& orig);
135 
136 private:
137 
141 
142 protected:
143 
147 };
DtVertexList & operator=(const std::vector< DtVector > &)
DT_DLL_vrfutil DtListItem * getClosestVertex2D(const DtVector &localPoint, const DtLocalVertexList &localVertexList, const Coordinate_System &coordinateSystem)
Sets vertex to be the vertex closest in 2D to point in localVertexList. Position and vertex list must...
File: lclVecIter.h.
Definition: localVectorIterator.h:25
DT_DLL_vrfutil double headingAngleTo(const DtVector &observerPosition, const DtVector &targetPosition, const Coordinate_System &coordinateSystem)
Local(database) functions for performing topocentric 2-D geometry operations on points and vertex li...
Definition: readerWriterRegistry.h:39
DT_DLL_vrfutil bool leftOf(const DtVector &localPoint, const DtLocalVertexList &localVertexList, const Coordinate_System &coordinateSystem)
Returns true if localPoint is left of the localVertexList in 2D. Always returns false if this has onl...
DT_DLL_vrfutil double distanceSquaredPointToPoint2D(const DtVector &localLinePt1, const DtVector &localLinePt2, const Coordinate_System &coordinateSystem)
Returns the distance^2 from point1 to point2 in 2D. All points must be in the coordinate system given...
DT_DLL_vrfutil double elevationAngleTo(const DtVector &observerPosition, const DtVector &targetPosition, const Coordinate_System &coordinateSystem)
Returns the elevation angle in radians from observer position to target position. Positions must be i...
DT_DLL_vrfutil double distanceSquaredPointToLine2D(const DtVector &localPoint, const DtVector &localLinePt1, const DtVector &localLinePt2, const Coordinate_System &coordinateSystem)
Returns the distance^2 from point to linePt1-linePt2 in topographic 2D. All points must be in the giv...
Definition: localVector.h:25
class DtVertexList:
Definition: vertexList.h:22
bool myProjection
Definition: localVertexList.h:146
bool myClosedFigure
Definition: localVertexList.h:144
DT_DLL_vrfutil bool getClosestLine2D(const DtVector &localPoint, DtVector &localLinePt1, DtVector &localLinePt2, const DtLocalVertexList &localVertexList, const Coordinate_System &coordinateSystem)
Sets linePt1 and linePt2 to be the vertices of the line segment closest in 2D to point in localVertex...
#define DT_DLL_vrfutil
This file is used to determine how to build Disable inconsistent dll linkage warning Visual Studio 6...
Definition: vrfutilDefines.h:34
DT_DLL_vrfutil bool intersects(const DtVector &localPoint1, const DtVector &localPoint2, const DtLocalVertexList &localVertexList, const Coordinate_System &coordinateSystem)
Returns true if the line segment localPoint1-localPoint2 intersects any line segment in localVert...
DT_DLL_vrfutil double localDistSquaredTo(const DtVector &localPoint, const DtLocalVertexList &localVertexList, const Coordinate_System &coordinateSystem)
Returns the distance from localPoint to the closest vertex in localVertexList. If localVertexList is ...
class DtLocalVertexList:
Definition: localVertexList.h:20
bool myIsEllipsoid
Definition: localVertexList.h:145
DT_DLL_vrfutil double distSquaredTo2D(const DtVector &position1, const DtVector &position2, const Coordinate_System &coordinateSystem)
Returns the (2D) squared distance between given position. Positions must be in the given coordinate s...

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)