VR-Forces 4.10 Class Documentation
 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/vertexList.h"
11 
12 class DtLocalVector;
14 
19 #include "vrfutil/vrfutilDefines.h"
21 {
22 public:
23 
26 
29  parentRegistry = NULL);
30 
32  virtual ~DtLocalVertexList();
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 
49  virtual const DtLocalVectorIterator& localIterator() const;
50 
55 
63 
69  virtual bool leftOf(const DtVector& point) const;
70 
76  virtual double headingAngleTo(const DtVector& point) const;
77 
83  virtual double elevationAngleTo(const DtVector& point) const;
84 
90  virtual double localDistSquaredTo(const DtVector& point) const;
91 
97  virtual double distSquaredTo2D(const DtVector& point) const;
98 
105  virtual bool intersects(const DtVector& point1, const DtVector& point2) const;
106 
109  virtual bool getClosestVertex2D(const DtVector& point, DtVector& vertex) const;
110 
113  virtual DtListItem* getClosestVertex2D(const DtVector& point) const;
114 
118  virtual bool getClosestLine2D(const DtVector& point, DtVector& linePt1,
119  DtVector& linePt2) const;
120 
121 public:
122 
124  static double distanceSquaredPointToLine2D(const DtVector& point,
125  const DtVector& linePt1, const DtVector& linePt2);
126 
128  static double distanceSquaredPointToPoint2D(const DtVector& point1,
129  const DtVector& point2);
130 
131 private:
132 
136 
140 
141 protected:
142 
147 };
DtVertexList & operator=(const std::vector< DtVector > &)
DtLocalVectorIterator * myLocalVectorIterator
Definition: localVertexList.h:146
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.
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.
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.
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. ...
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.
Definition: localVector.h:25
class DtVertexList:
Definition: vertexList.h:22
bool myProjection
Definition: localVertexList.h:145
bool myClosedFigure
Definition: localVertexList.h:143
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.
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.
class DtLocalVertexList:
Definition: localVertexList.h:20
bool myIsEllipsoid
Definition: localVertexList.h:144
DT_DLL_vrfutil double distSquaredTo2D(const DtVector &position1, const DtVector &position2, const Coordinate_System &coordinateSystem)
Returns the (2D) squared distance between given position.

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)