VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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"
19 
20 class DtNetworkNode;
21 class DtTerrainDatabase;
22 
27 {
28 public:
29 
32 
35 
38 
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 
99 
101  double myMaxRange;
103 
104  double myMaxX;
105  double myMaxY;
106  double myMinX;
107  double myMinY;
108  double mySize;
109 
111 
112  bool myEvalInZ;
113  DtCoordTransform myTopoToLocal;
114 };

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)