VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vertexList.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1999 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 
8 
9 #pragma once
10 
11 #include "vrfutil/rwList.h"
12 #include <matrix/vlVector.h>
13 
14 class DtRwVector;
15 class DtRwVectorIterator;
16 
20 
21 #include "vrfutil/vrfutilDefines.h"
23 {
24 public:
25 
27  DtVertexList();
28 
31  parentRegistry = 0);
32 
34  virtual ~DtVertexList();
35 
36  virtual DtRwVector& operator[](unsigned index) const;
37 
38  virtual int index(const DtListItem* entry) const;
39 
40  virtual const DtRwVectorIterator& witerator() const;
41 
45  virtual double distSquaredTo(const DtVector& point) const;
46 
48  virtual bool getClosestVertex(const DtVector& point, DtVector& vertex) const;
49 
51  virtual DtListItem* getClosestVertex(const DtVector& point) const;
52 
55  virtual bool getClosestLine(const DtVector& point, DtVector& linePt1,
56  DtVector& linePt2) const;
57 
59  virtual void translate(const DtVector& offset);
60 
62  virtual void copyList(const DtVertexList&);
63 
64 public:
65 
67  static double distanceSquaredPointToLine(const DtVector& point,
68  const DtVector& linePt1, const DtVector& linePt2);
69 
71  static double distanceSquaredPointToPoint(const DtVector& point1,
72  const DtVector& point2);
73 
74 protected:
75 
78  virtual DtlObjPtr getData(DtlObjPtr args, const DtReaderWriter::SearchPaths& searchPaths,
79  const DtVariableBindingsList& variableBindings);
80 
81 private:
84  DtVertexList(const DtVertexList& orig);
85 
88  DtVertexList& operator=(const DtVertexList& orig);
89 
90 protected:
92 };
93 

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)