VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrfutil
vertexList.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 1999 MaK Technologies, Inc.
3
** All rights reserved.
4
*********************************************************************/
5
8
9
#pragma once
10
11
#include "
vrfutil/rwList.h
"
12
13
class
DtRwVector
;
14
class
DtVector
;
15
class
DtRwVectorIterator
;
16
20
21
#include "
vrfutil/vrfutilDefines.h
"
22
class
DT_DLL_vrfutil
DtVertexList
:
public
DtRwList
23
{
24
public
:
25
27
DtVertexList
();
28
30
DtVertexList
(
const
DtString
& name,
DtReaderWriterRegistry
*
31
parentRegistry = 0);
32
34
virtual
~
DtVertexList
();
35
36
virtual
DtRwVector
& operator[](
unsigned
index)
const
;
37
38
virtual
int
index(
const
DtListItem* entry)
const
;
39
40
virtual
const
DtRwVectorIterator
& witerator()
const
;
41
45
virtual
double
distSquaredTo(
const
DtVector
&
point
)
const
;
46
48
virtual
bool
getClosestVertex(
const
DtVector
& point,
DtVector
& vertex)
const
;
49
51
virtual
DtListItem* getClosestVertex(
const
DtVector
& point)
const
;
52
55
virtual
bool
getClosestLine(
const
DtVector
& point,
DtVector
& linePt1,
56
DtVector
& linePt2)
const
;
57
59
virtual
void
translate(
const
DtVector
& offset);
60
62
virtual
void
copyList(
const
DtVertexList
&);
63
64
public
:
65
67
static
double
distanceSquaredPointToLine(
const
DtVector
& point,
68
const
DtVector
& linePt1,
const
DtVector
& linePt2);
69
71
static
double
distanceSquaredPointToPoint(
const
DtVector
& point1,
72
const
DtVector
& point2);
73
74
protected
:
75
78
virtual
DtlObjPtr
getData
(DtlObjPtr args,
const
DtFilename& searchPath,
79
const
DtVariableBindingsList
& variableBindings);
80
81
private
:
84
DtVertexList
(
const
DtVertexList
& orig);
85
88
DtVertexList
&
operator=
(
const
DtVertexList
& orig);
89
90
protected
:
91
DtRwVectorIterator
*
myVertexIterator
;
92
};
93
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
)