VR-Forces 4.1 Class Documentation
intRecLst.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1999 MAK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: intRecLst.h,v $ $Revision: 1.8 $ $State: Exp $
7 *********************************************************************/
8 #ifndef intRecLst_H_
9 #define intRecLst_H_
10 
11 // \file intRecLst.h
12 // \brief This file contains the DtChordIntersectRecordList class declaration - a wrapper for a DtList of DtChordIntersectionRecords.
14 #include <list>
15 #include "geometry/chrdIntRec.h"
16 
18 
19 typedef std::list<DtChordIntersectionRecord*> DtChordRecordList;
20 typedef DtChordRecordList::iterator DtChordRecordListIterator;
21 typedef DtChordRecordList::const_iterator DtChordRecordListConstIterator;
22 
23 //
24 // DtChordIntersectRecordList represents a list of
25 // DtChordIntersectRecords. This is useful for following chord recording all
26 // of its intersections with a section of the terrain.
27 // Unlike DtList, this class "owns" all of its DtChordIntersectRecords and
28 // will delete them when it is destroyed.
30 {
31 public:
32  // default constructor
34 
35  //copy constructor
37 
38  // destructor
39  virtual ~DtChordIntersectRecordList();
40 
41  // assignment operator
42  DtChordIntersectRecordList& operator=(
43  const DtChordIntersectRecordList& orig);
44 
45  // Insert a DtChordIntersectRecord in the appropriate spot. Assume list
46  // is sorted in increasing distance from beginning of chord.
47  virtual void insertAlongChord(const DtChordIntersectionRecord& record);
48 
49  // Merge in another DtChordIntersectRecordList; assume both lists
50  // are sorted in increasing distance from beginning of chord.
51  virtual void mergeAlongChord(const DtChordIntersectRecordList& otherList);
52 
53  // returns the size of our chord list.
54  int count() const;
55 
56  // returns the first in the chord list.
58 
59  // returns the last in the chord list.
61 
62  virtual DtChordRecordList& chordList();
63  virtual const DtChordRecordList& chordList() const;
64 
65 protected:
66 
68 };
69 
70 
71 #endif
72 

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)