VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
rangeNetworkNodeMetric.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2001 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: rangeNetNodMet.h,v $ $Revision: 1.11 $ $State: Exp $
7 *********************************************************************/
8 
9 #pragma once
10 
11 #include "gdb/gdbDefines.h"
12 #include "gdb/networkNodeMetric.h"
13 
14 class DtNetworkNode;
15 
16 // DtRangeNetworkNodeMetric is a metric for a point quadtree.
17 // It determines whether there is any network node within a given
18 // range from the center of interest.
20 {
21 public:
22 
25 
27  virtual ~DtRangeNetworkNodeMetric();
28 
31 
34 
35 public:
36 
39  virtual double measure(const DtNetworkNode& node) const;
40 
42  virtual bool valid(const DtNetworkNode& node) const;
43 
45  virtual bool validSW(const DtNetworkNode& node) const;
46 
48  virtual bool validSE(const DtNetworkNode& node) const;
49 
51  virtual bool validNE(const DtNetworkNode& node) const;
52 
54  virtual bool validNW(const DtNetworkNode& node) const;
55 
57  virtual const DtPoint& centerOfInterest() const;
58  virtual void setCenterOfInterest(const DtPoint& val);
59 
61  virtual DtVector vectorCenterOfInterest() const;
62  virtual void setCenterOfInterest(const DtVector& val);
63 
65  virtual double maxRange() const;
66  virtual void setMaxRange(double val);
67 
69  virtual double measureMultiplier() const;
70  virtual void setMeasureMultiplier(double val);
71 
73  virtual bool evalInZ() const;
74  virtual void setEvalInZ(bool evalInZ);
75 
76 protected:
77 
79  double myMaxRange;
81  bool myEvalInZ;
82 };
83 
double myMeasureMultiplier
Definition: rangeNetworkNodeMetric.h:80
DtNetworkNodeMetric & operator=(const DtNetworkNodeMetric &orig)
Assignment operator.
virtual bool validSW(const DtNetworkNode &node) const =0
Validate the southwest quadrant (closed on southwest side)
bool myEvalInZ
Definition: rangeNetworkNodeMetric.h:81
virtual bool validNE(const DtNetworkNode &node) const =0
Validate the northeast quadrant (closed on southwest side)
#define DT_DLL_gdb
Definition: gdbDefines.h:25
virtual double measure(const DtNetworkNode &node) const =0
Measure the node.
Definition: networkNode.h:38
DtPoint myCenterOfInterest
Definition: rangeNetworkNodeMetric.h:78
Definition: rangeNetworkNodeMetric.h:19
DtNetworkNodeMetric is a metric for network nodes.
Definition: networkNodeMetric.h:18
virtual bool validSE(const DtNetworkNode &node) const =0
Validate the southeast quadrant (closed on southwest side)
double myMaxRange
Definition: rangeNetworkNodeMetric.h:79
virtual bool valid(const DtNetworkNode &node) const =0
Validate the node.
Definition: point.h:34
virtual bool validNW(const DtNetworkNode &node) const =0
Validate the northwest quadrant (closed on southwest side)

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)