VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
rwVectorIterator.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2001 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: rwVecIterator.h,v $ $Revision: 1.9 $ $State: Exp $
7 *******************************************************************************/
8 
11 
17 
18 #ifndef DtRwVectorIterator_H_
19 #define DtRwVectorIterator_H_
20 
21 #include "vrfutil/vertexList.h"
22 #include "readerWriter/rwVector.h"
23 #include "vrfutil/iteratorBase.h"
27 
28 #include "vrfutil/vrfutilDefines.h"
30 {
31 private:
36 
37 public:
38 
40  DtRwVectorIterator(const DtList& list) : DtIteratorBase<DtRwVector>(list) {};
41 
44 
45  virtual ~DtRwVectorIterator() {};
46 
49  bool setToClosest(DtVector point)
50  {
51  DtVertexList* list = (DtVertexList*)(&myList);
52 
53  myCursor = list->getClosestVertex(point);
54 
55  return (myCursor != NULL);
56  };
57 };
58 
59 #endif
const DtIteratorBase & operator=(const DtIteratorBase &orig)
Assignment Operator.
virtual ~DtRwVectorIterator()
Definition: rwVectorIterator.h:45
bool setToClosest(DtVector point)
Set this iterator to point to the vertex closest in 2D to point. Returns true unless the list is empt...
Definition: rwVectorIterator.h:49
Definition: rwVector.h:23
Description: DtIteratorBase is the base class for iterators used to iterate over a DtList...
Definition: iteratorBase.h:32
class DtVertexList:
Definition: vertexList.h:22
DtRwVectorIterator(const DtList &list)
Constructor. Supply the DtList to be iterated over.
Definition: rwVectorIterator.h:40
DtRwVectorIterator(const DtRwVectorIterator &orig)
Copy constructor.
Definition: rwVectorIterator.h:43
virtual bool getClosestVertex(const DtVector &point, DtVector &vertex) const
Sets vertex to be the vertex closest to point in this object geometry.
#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
File: rwVector.h.
File: rwVecIterator.h.
Definition: rwVectorIterator.h:29

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)