VR-Forces Development_Version Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vrfutil
localVertexList.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 1999-2001 MaK Technologies, Inc.
3
** All rights reserved.
4
*********************************************************************/
5
8
#pragma once
9
10
#include "
vrfutil/vertexList.h
"
11
12
class
DtLocalVector
;
13
class
DtLocalVectorIterator
;
14
19
#include "
vrfutil/vrfutilDefines.h
"
20
class
DT_DLL_vrfutil
DtLocalVertexList
:
public
DtVertexList
21
{
22
public
:
23
25
DtLocalVertexList
();
26
28
DtLocalVertexList
(
const
DtString
& name,
DtReaderWriterRegistry
*
29
parentRegistry = NULL);
30
32
virtual
~
DtLocalVertexList
();
33
36
virtual
bool
closedFigure()
const
;
37
virtual
void
setClosedFigure(
bool
closed);
38
41
virtual
bool
projection()
const
;
42
virtual
void
setProjection(
bool
projection);
43
44
virtual
const
DtLocalVectorIterator
& localIterator()
const
;
45
50
58
63
virtual
bool
inside
(
const
DtVector
& point)
const
;
64
70
virtual
bool
leftOf
(
const
DtVector
& point)
const
;
71
77
virtual
double
headingAngleTo
(
const
DtVector
& point)
const
;
78
84
virtual
double
elevationAngleTo
(
const
DtVector
& point)
const
;
85
91
virtual
double
localDistSquaredTo
(
const
DtVector
& point)
const
;
92
98
virtual
double
distSquaredTo2D
(
const
DtVector
& point)
const
;
99
106
virtual
bool
intersects
(
const
DtVector
& point1,
const
DtVector
& point2)
const
;
107
110
virtual
bool
getClosestVertex2D
(
const
DtVector
& point,
DtVector
& vertex)
const
;
111
114
virtual
DtListItem*
getClosestVertex2D
(
const
DtVector
& point)
const
;
115
119
virtual
bool
getClosestLine2D
(
const
DtVector
& point,
DtVector
& linePt1,
120
DtVector
& linePt2)
const
;
121
122
public
:
123
125
static
double
distanceSquaredPointToLine2D
(
const
DtVector
& point,
126
const
DtVector
& linePt1,
const
DtVector
& linePt2);
127
129
static
double
distanceSquaredPointToPoint2D
(
const
DtVector
& point1,
130
const
DtVector
& point2);
131
132
private
:
133
136
DtLocalVertexList
(
const
DtLocalVertexList
& orig);
137
140
DtLocalVertexList
&
operator=
(
const
DtLocalVertexList
& orig);
141
142
protected
:
143
144
bool
myClosedFigure
;
145
bool
myProjection
;
146
DtLocalVectorIterator
*
myLocalVectorIterator
;
147
};
Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)