VR-Forces 4.0.4 Class Documentation
include/gdb/distNetEdgMet.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 2001 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *********************************************************************/
00005 /*********************************************************************
00006 ** $RCSfile: distNetEdgMet.h,v $ $Revision: 1.10 $ $State: Exp $
00007 *********************************************************************/
00008 
00009 // \file distNetEdgMet.h
00010 // \brief Contains the DtDistanceNetworkEdgeMetric class declaration.
00011 
00012 #pragma once
00013 
00014 #include "gdb/gdbDefines.h"
00015 #include "gdb/netwrkEdgMet.h"
00016 #include "geometry/point.h"
00017 
00018 // DtDistanceNetworkEdgeMetric is a metric for segments in an
00019 // mx-cif quadtree.  The metric is based on distance from a point.
00020 class DT_DLL_gdb DtDistanceNetworkEdgeMetric : public DtNetworkEdgeMetric
00021 {
00022 public:
00023 
00025    DtDistanceNetworkEdgeMetric();
00026 
00028    virtual ~DtDistanceNetworkEdgeMetric();
00029 
00031    DtDistanceNetworkEdgeMetric(const DtDistanceNetworkEdgeMetric& orig);
00032 
00034    DtDistanceNetworkEdgeMetric& operator=(const DtDistanceNetworkEdgeMetric& orig);
00035 
00036 public:
00037 
00039    virtual double measure(const DtNetworkEdge& edge) const;
00040 
00042    virtual bool valid(const DtNetworkEdge& edge) const;
00043 
00045    virtual bool validSW(double xx, double yy) const;
00046 
00048    virtual bool validSE(double xx, double yy) const;
00049 
00051    virtual bool validNE(double xx, double yy) const;
00052 
00054    virtual bool validNW(double xx, double yy) const;
00055 
00058    virtual double heuristic(const DtPoint& source, const DtPoint& dest) const;
00059 
00060 };

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)