VR-Forces 4.0.4 Class Documentation
include/vrfutil/rwVecIterator.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 2001 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: rwVecIterator.h,v $ $Revision: 1.9 $ $State: Exp $
00007 *******************************************************************************/
00008 
00011 
00017 
00018 #ifndef DtRwVectorIterator_H_
00019 #define DtRwVectorIterator_H_
00020 
00021 #include "vrfutil/vertexList.h"
00022 #include "vrfutil/rwVector.h"
00023 #include "vrfutil/iteratorBase.h"
00027 
00028 #include "vrfutil/vrfutilDefines.h"
00029 class DT_DLL_vrfutil DtRwVectorIterator : public DtIteratorBase<DtRwVector>
00030 {
00031 private:
00033    DtRwVectorIterator();
00035    const DtRwVectorIterator& operator=(const DtRwVectorIterator& orig);
00036 
00037 public:
00038 
00040    DtRwVectorIterator(const DtList& list) : DtIteratorBase<DtRwVector>(list) {};
00041 
00043    DtRwVectorIterator(const DtRwVectorIterator& orig) : DtIteratorBase<DtRwVector>(orig) {};
00044 
00045    virtual ~DtRwVectorIterator() {};
00046 
00049    bool setToClosest(DtVector point)
00050       {
00051          DtVertexList* list = (DtVertexList*)(&myList);
00052 
00053          myCursor = list->getClosestVertex(point);
00054 
00055          return (myCursor != NULL);
00056       };
00057 };
00058 
00059 #endif

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)