![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /********************************************************************* 00002 ** Copyright (c) 2001 MaK Technologies, Inc. 00003 ** All rights reserved. 00004 *********************************************************************/ 00005 /********************************************************************* 00006 ** $RCSfile: rangeNetNodMet.h,v $ $Revision: 1.11 $ $State: Exp $ 00007 *********************************************************************/ 00008 00009 #pragma once 00010 00011 #include "gdb/gdbDefines.h" 00012 #include "gdb/netwrkNodMet.h" 00013 00014 class DtNetworkNode; 00015 00016 // DtRangeNetworkNodeMetric is a metric for a point quadtree. 00017 // It determines whether there is any network node within a given 00018 // range from the center of interest. 00019 class DT_DLL_gdb DtRangeNetworkNodeMetric : public DtNetworkNodeMetric 00020 { 00021 public: 00022 00024 DtRangeNetworkNodeMetric(); 00025 00027 virtual ~DtRangeNetworkNodeMetric(); 00028 00030 DtRangeNetworkNodeMetric(const DtRangeNetworkNodeMetric& orig); 00031 00033 DtRangeNetworkNodeMetric& operator=(const DtRangeNetworkNodeMetric& orig); 00034 00035 public: 00036 00039 virtual double measure(const DtNetworkNode& node) const; 00040 00042 virtual bool valid(const DtNetworkNode& node) const; 00043 00045 virtual bool validSW(const DtNetworkNode& node) const; 00046 00048 virtual bool validSE(const DtNetworkNode& node) const; 00049 00051 virtual bool validNE(const DtNetworkNode& node) const; 00052 00054 virtual bool validNW(const DtNetworkNode& node) const; 00055 00057 virtual const DtPoint& centerOfInterest() const; 00058 virtual void setCenterOfInterest(const DtPoint& val); 00059 00061 virtual DtVector vectorCenterOfInterest() const; 00062 virtual void setCenterOfInterest(const DtVector& val); 00063 00065 virtual double maxRange() const; 00066 virtual void setMaxRange(double val); 00067 00069 virtual double measureMultiplier() const; 00070 virtual void setMeasureMultiplier(double val); 00071 00073 virtual bool evalInZ() const; 00074 virtual void setEvalInZ(bool evalInZ); 00075 00076 protected: 00077 00078 DtPoint myCenterOfInterest; 00079 double myMaxRange; 00080 double myMeasureMultiplier; 00081 bool myEvalInZ; 00082 }; 00083