VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
gdb
pointIM.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 pointIM_H_
9
#define pointIM_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
//
25
class
DT_DLL_gdb
DtPointIndexedMarked
26
{
27
public
:
28
29
// default constructor
30
DtPointIndexedMarked
();
31
32
// destructor
33
~
DtPointIndexedMarked
();
34
35
// constructor from a parent
36
DtPointIndexedMarked
(
DtPoint
& orig);
37
38
// copy constructor
39
DtPointIndexedMarked
(
const
DtPointIndexedMarked
& orig);
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
63
DtIndexedMarked
myIndexer
;
64
DtPoint
*
myPoint
;
65
};
66
67
68
#endif
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
)