VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
distanceNetworkEdgeMetric.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2001 MAK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: distNetEdgMet.h,v $ $Revision: 1.10 $ $State: Exp $
7 *********************************************************************/
8 
9 // \file distNetEdgMet.h
10 // \brief Contains the DtDistanceNetworkEdgeMetric class declaration.
11 
12 #pragma once
13 
14 #include "gdb/gdbDefines.h"
15 #include "gdb/networkEdgeMetric.h"
16 #include "geometry/point.h"
17 
18 // DtDistanceNetworkEdgeMetric is a metric for segments in an
19 // mx-cif quadtree. The metric is based on distance from a point.
21 {
22 public:
23 
26 
28  virtual ~DtDistanceNetworkEdgeMetric();
29 
32 
35 
36 public:
37 
39  virtual double measure(const DtNetworkEdge& edge) const;
40 
42  virtual bool valid(const DtNetworkEdge& edge) const;
43 
45  virtual bool validSW(double xx, double yy) const;
46 
48  virtual bool validSE(double xx, double yy) const;
49 
51  virtual bool validNE(double xx, double yy) const;
52 
54  virtual bool validNW(double xx, double yy) const;
55 
58  virtual double heuristic(const DtPoint& source, const DtPoint& dest) const;
59 
60 };
virtual bool valid(const DtNetworkEdge &edge) const =0
Validates the edge.
Metric for network segments.
Definition: networkEdgeMetric.h:19
#define DT_DLL_gdb
Definition: gdbDefines.h:25
virtual bool validNE(double xx, double yy) const =0
Validates the northeast quadrant (closed on southwest side)
Definition: distanceNetworkEdgeMetric.h:20
virtual double measure(const DtNetworkEdge &edge) const =0
Measures the edge based on the metric's characteristics.
virtual double heuristic(const DtPoint &source, const DtPoint &dest) const =0
A heuristic measure for two points.
const char * source
Definition: lz4.h:442
virtual bool validSE(double xx, double yy) const =0
Validates the southeast quadrant (closed on southwest side)
Definition: networkEdge.h:28
virtual bool validSW(double xx, double yy) const =0
Validates the southwest quadrant (closed on southwest side)
DtNetworkEdgeMetric & operator=(const DtNetworkEdgeMetric &orig)
Assignment operator.
virtual bool validNW(double xx, double yy) const =0
Validates the northwest quadrant (closed on southwest side)
Definition: point.h:34
char * dest
Definition: lz4.h:440

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)