VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
pointIndexedMarked.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1999 MAK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: pointIM.h,v $ $Revision: 1.8 $ $State: Exp $
7 *********************************************************************/
8 #ifndef pointIndexedMarked_H_
9 #define pointIndexedMarked_H_
10 
11 #include "gdb/gdbDefines.h"
12 #include "geometry/point.h"
13 #include "gdb/indexedMarked.h"
14 
15 //
16 // A DtPointIndexedMarked associates a specified DtPoint with an IndexedMarked
17 // This is used by the DtVectorNetwork to remove duplicate vertices.
18 // @see DtVectorNetwork
19 //
20 // @note This class has no virtual functions on purpose to reduce the size.
21 // Because an instance is created for every vertex during vertex reduction, the size
22 // difference becomes important for large scenes. Additionally, classes should
23 // @b not be derived from this class.
24 //
26 {
27 public:
28 
29  // default constructor
31 
32  // destructor
34 
35  // constructor from a parent
37 
38  // copy constructor
40 
41  // assignment operator
42  DtPointIndexedMarked& operator=(const DtPointIndexedMarked& orig);
43 
44  // This function replaces the sortWorldCoordinatePointsByX
45  // @returns true if the specified other DtPointIndexedMarked
46  // is larger.
47  // DtPointIndexedMarked point1 is < DtPointIndexedMarked point2
48  // iff its X, Y, and Z components are each < their corresponding component
49  // in point2. The order is important. If x1 < x2, then point1 < point2,
50  // even if y1 > y2 or z1 > z2.
51  // @note Essentially sorts in x direction, then y and then z only if the
52  // previous components are equal.
53  bool operator<(const DtPointIndexedMarked& other) const;
54 
55  DtPoint* point();
56  const DtPoint* point() const;
57 
58  // access to the indexer
59  DtIndexedMarked* indexer();
60 
61 protected:
62 
65 };
66 
67 
68 #endif

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)