VR-Forces 4.0.4 Class Documentation
include/vrfutil/lclVecIter.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 2001 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: lclVecIter.h,v $ $Revision: 1.12 $ $State: Exp $
00007 *******************************************************************************/
00008 
00011 
00017 
00018 #ifndef DtLocalVectorIterator_H_
00019 #define DtLocalVectorIterator_H_
00020 
00021 #include "vrfutil/lclVector.h"
00022 #include "vrfutil/lclVtxList.h"
00023 #include "vrfutil/iteratorBase.h"
00024 #include <matrix/LibMatrix.h>
00025 
00029 #include "vrfutil/vrfutilDefines.h"
00030 class DT_DLL_vrfutil DtLocalVectorIterator : public DtIteratorBase<DtLocalVector>
00031 {
00032 private:
00034    const DtLocalVectorIterator& operator=(const DtLocalVectorIterator& orig);
00035 
00036 public:
00037 
00038    DtLocalVectorIterator();
00039 
00042    DtLocalVectorIterator(const DtLocalVectorIterator& orig) : DtIteratorBase<DtLocalVector>(orig) {};
00043 
00044    DtLocalVectorIterator(const DtList& list) :
00045       DtIteratorBase<DtLocalVector>(list) {};
00046 
00047    virtual ~DtLocalVectorIterator() {};
00048 
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)