VR-Forces 4.7 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 <readerWriter/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  DtVertexList& operator=(const std::vector<DtVector>&);
65 
66  virtual void emptyList();
67 
68 public:
69 
71  static double distanceSquaredPointToLine(const DtVector& point,
72  const DtVector& linePt1, const DtVector& linePt2);
73 
75  static double distanceSquaredPointToPoint(const DtVector& point1,
76  const DtVector& point2);
77 
78 protected:
79 
82  virtual DtlObjPtr getData(DtlObjPtr args, const DtReaderWriter::SearchPaths& searchPaths,
83  const DtVariableBindingsList& variableBindings);
84 
85 private:
88  DtVertexList(const DtVertexList& orig);
89 
92  DtVertexList& operator=(const DtVertexList& orig);
93 
94 protected:
96 };
97 

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)