VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
rangeNetworkSegmentMetric.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2001 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: rangeNetSegMet.h,v $ $Revision: 1.12 $ $State: Exp $
7 *********************************************************************/
8 
9 #pragma once
10 
11 #include "gdb/gdbDefines.h"
13 
14 class DtNetworkSegment;
15 
16 
21 {
22 public:
23 
26 
28  virtual ~DtRangeNetworkSegmentMetric();
29 
32 
35 
36 public:
37 
39  virtual double measure(const DtNetworkSegment& seg) const;
40 
43  virtual bool circumscribedSquareTest(const DtNetworkSegment& seg) const;
44 
47  virtual bool inscribedSquareTest(const DtNetworkSegment& seg) const;
48 
50  virtual bool valid(const DtNetworkSegment& seg) const;
51 
53  virtual bool validSW(double xx, double yy) const;
54 
56  virtual bool validSE(double xx, double yy) const;
57 
59  virtual bool validNE(double xx, double yy) const;
60 
62  virtual bool validNW(double xx, double yy) const;
63 
65  virtual const DtPoint& centerOfInterest() const;
66  virtual void setCenterOfInterest(const DtPoint& val);
67 
69  virtual DtVector vectorCenterOfInterest() const;
70  virtual void setCenterOfInterest(const DtVector& val);
71 
73  virtual double maxRange() const;
74  virtual void setMaxRange(double val);
75 
77  virtual double measureMultiplier() const;
78  virtual void setMeasureMultiplier(double val);
79 
81  virtual bool evalInZ() const;
82  virtual void setEvalInZ(bool evalInZ);
83 
86  virtual double closestPointInXY(const DtNetworkSegment& seg, const DtPoint& pointFrom,DtPoint& closest);
87  virtual void initialize(Coordinate_System* cs);
88 
89 protected:
90  virtual double closestPointInXY(const DtNetworkSegment& seg, const DtPoint& pointFrom) const;
91 
92  virtual double distanceToPoint(const DtNetworkSegment& seg, const DtPoint& point) const;
93 
94 protected:
95 
97  double myMaxRange;
99  bool myEvalInZ;
100 
101 };
102 
double myMeasureMultiplier
Definition: rangeNetworkSegmentMetric.h:98
DtNetworkSegmentMetric & operator=(const DtNetworkSegmentMetric &orig)
Assignment operator.
DtNetworkSegmentMetric is a metric for network segments.
Definition: networkSegmentMetric.h:18
virtual bool validSW(double xx, double yy) const =0
Validate the southwest quadrant (closed on southwest side)
DtRangeNetworkSegmentMetric is a metric for segments in an mx-cif quadtree. The metric is based on di...
Definition: rangeNetworkSegmentMetric.h:20
Definition: networkSegment.h:26
virtual bool valid(const DtNetworkSegment &seg) const =0
Validate the segment.
#define DT_DLL_gdb
Definition: gdbDefines.h:25
DtPoint myCenterOfInterest
Definition: rangeNetworkSegmentMetric.h:96
virtual double measure(const DtNetworkSegment &seg) const =0
Measure the segment.
double myMaxRange
Definition: rangeNetworkSegmentMetric.h:97
Definition: coordSystem.h:54
bool myEvalInZ
Definition: rangeNetworkSegmentMetric.h:99
virtual void initialize(Coordinate_System *cs)
Initialize the metric. Use this call to do any additional preparation/initialization before the metri...
virtual bool validNW(double xx, double yy) const =0
Validate the northwest quadrant (closed on southwest side)
virtual bool validNE(double xx, double yy) const =0
Validate the northeast quadrant (closed on southwest side)
DT_DLL_vrfutil double closestPointInXY(const DtRailSegment *seg, const DtVector &pointFronm, DtVector &closest, const Coordinate_System &coordinateSystem)
virtual bool validSE(double xx, double yy) const =0
Validate the southeast quadrant (closed on southwest side)
Definition: point.h:34

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)