VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
gdb
intersectNetSegMet.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 2001 MAK Technologies, Inc.
3
** All rights reserved.
4
*********************************************************************/
5
/*********************************************************************
6
** $RCSfile: intersectNetSegMet.h,v $ $Revision: 1.13 $ $State: Exp $
7
*********************************************************************/
8
9
#pragma once
10
11
//
12
// \file intersectNetSegMet.h
13
// \brief This file contains the DtIntersectNetworkSegmentMetric class declaration.
14
//
15
16
#include "
gdb/gdbDefines.h
"
17
#include "
gdb/netwrkSegMet.h
"
18
#include "
geometry/chord.h
"
19
#include "
gdb/netwrkSegHelper.h
"
20
21
class
DtTerrainDatabase
;
22
class
DtSpecificationAttribute
;
23
27
class
DT_DLL_gdb
DtIntersectNetworkSegmentMetric
:
public
DtNetworkSegmentMetric
28
{
29
public
:
30
32
DtIntersectNetworkSegmentMetric
();
33
35
virtual
~
DtIntersectNetworkSegmentMetric
();
36
38
DtIntersectNetworkSegmentMetric
(
const
DtIntersectNetworkSegmentMetric
& orig);
39
41
DtIntersectNetworkSegmentMetric
&
operator=
(
const
DtIntersectNetworkSegmentMetric
& orig);
42
43
public
:
44
46
virtual
double
measure
(
const
DtNetworkSegment
& seg)
const
;
47
50
virtual
double
measure
(
const
DtNetworkSegment
& seg,
DtPoint
&p)
const
;
51
54
virtual
bool
circumscribedSquareTest(
const
DtNetworkSegment
& seg)
const
;
55
57
virtual
bool
valid
(
const
DtNetworkSegment
& seg)
const
;
58
60
virtual
bool
validSW
(
double
xx,
double
yy)
const
;
61
63
virtual
bool
validSE
(
double
xx,
double
yy)
const
;
64
66
virtual
bool
validNE
(
double
xx,
double
yy)
const
;
67
69
virtual
bool
validNW
(
double
xx,
double
yy)
const
;
70
72
virtual
const
DtChord
& centerOfInterest()
const
;
73
virtual
void
setCenterOfInterest(
const
DtChord
& centerOfInterest);
74
76
virtual
bool
evalInZ();
77
virtual
void
setEvalInZ(
bool
eval);
78
80
virtual
double
maxRange()
const
;
81
virtual
void
setMaxRange(
double
val);
82
84
virtual
double
measureMultiplier()
const
;
85
virtual
void
setMeasureMultiplier(
double
val);
86
88
virtual
const
DtTerrainDatabase
* terrainDb();
89
virtual
void
setTerrainDb(
const
DtTerrainDatabase
*db);
90
92
virtual
void
initialize
(
Coordinate_System
* cs );
93
94
protected
:
95
96
const
DtTerrainDatabase
*
myDb
;
97
98
DtChord
myCenterOfInterest
;
99
DtChord
myTopoCenterOfInterest
;
100
double
myMaxRange
;
101
double
myMeasureMultiplier
;
102
103
double
myMaxX
;
104
double
myMaxY
;
105
double
myMinX
;
106
double
myMinY
;
107
double
mySize
;
108
109
DtNetworkSegmentHelper
myTopoSeg
;
110
111
DtPoint
myTopoSegEndPoint0
;
112
DtPoint
myTopoSegEndPoint1
;
113
DtPoint
myQ
;
114
115
bool
myEvalInZ
;
116
DtCoordTransform
myTopoToLocal
;
117
118
};
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
)