VR-Forces 4.5 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
gdb
intersectNetworkNodeMetric.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 2001 MAK Technologies, Inc.
3
** All rights reserved.
4
*********************************************************************/
5
/*********************************************************************
6
** $RCSfile: intersectNetNodMet.h,v $ $Revision: 1.13 $ $State: Exp $
7
*********************************************************************/
8
9
#pragma once
10
11
//
12
// \file intersectNetNodMet.h
13
// \brief This file contains the DtIntersectNetworkNodeMetric class declaration.
14
//
15
16
#include "
gdb/gdbDefines.h
"
17
#include "
gdb/networkNodeMetric.h
"
18
#include "
gdb/networkSegmentHelper.h
"
19
20
class
DtNetworkNode
;
21
class
DtTerrainDatabase
;
22
26
class
DT_DLL_gdb
DtIntersectNetworkNodeMetric
:
public
DtNetworkNodeMetric
27
{
28
public
:
29
31
DtIntersectNetworkNodeMetric
();
32
34
virtual
~
DtIntersectNetworkNodeMetric
();
35
37
DtIntersectNetworkNodeMetric
(
const
DtIntersectNetworkNodeMetric
& orig);
38
40
DtIntersectNetworkNodeMetric
&
operator=
(
const
DtIntersectNetworkNodeMetric
& orig);
41
42
public
:
43
46
virtual
double
measure
(
const
DtNetworkNode
& node)
const
;
47
49
// \param p a reference to a point that is set to the closest point on the segment to the specified point.
50
virtual
double
measure
(
const
DtNetworkNode
& node,
DtPoint
&p)
const
;
51
53
virtual
bool
valid
(
const
DtNetworkNode
& node)
const
;
54
56
virtual
bool
validSW
(
const
DtNetworkNode
& node)
const
;
57
59
virtual
bool
validSE
(
const
DtNetworkNode
& node)
const
;
60
62
virtual
bool
validNE
(
const
DtNetworkNode
& node)
const
;
63
65
virtual
bool
validNW
(
const
DtNetworkNode
& node)
const
;
66
68
virtual
const
DtChord
& centerOfInterest()
const
;
69
virtual
void
setCenterOfInterest(
const
DtChord
& val);
70
72
virtual
double
maxRange()
const
;
73
virtual
void
setMaxRange(
double
val);
74
76
virtual
bool
evalInZ();
77
virtual
void
setEvalInZ(
bool
eval);
78
80
virtual
double
measureMultiplier()
const
;
81
virtual
void
setMeasureMultiplier(
double
val);
82
84
virtual
const
DtTerrainDatabase
* terrainDb();
85
virtual
void
setTerrainDb(
const
DtTerrainDatabase
*db);
86
88
virtual
void
initialize
(
Coordinate_System
* cs);
89
90
protected
:
91
92
virtual
bool
intersectsWithNode(
const
DtNetworkSegment
& seg,
93
const
DtNetworkNode
& node,
DtPoint
& intersectionPoint,
94
double
& time)
const
;
95
96
protected
:
97
98
const
DtTerrainDatabase
*
myDb
;
99
100
DtChord
myCenterOfInterest
;
101
double
myMaxRange
;
102
double
myMeasureMultiplier
;
103
104
double
myMaxX
;
105
double
myMaxY
;
106
double
myMinX
;
107
double
myMinY
;
108
double
mySize
;
109
110
DtNetworkSegmentHelper
mySeg
;
111
112
bool
myEvalInZ
;
113
DtCoordTransform
myTopoToLocal
;
114
};
Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (
www.mak.com
)