VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
rangeAndDirectionNetworkSegmentMetric.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2005 MAK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: rangeDirNetSegMet.h,v $ $Revision: 1.3 $ $State: Exp $
7 *********************************************************************/
8 
9 #pragma once
10 
11 #include "gdb/gdbDefines.h"
13 
14 // class DtRangeAndDirectionNetworkSegmentMetric:
15 //
16 // DtRangeAndDirectionNetworkSegmentMetric is a metric for segments in an
17 // mx-cif quadtree. This metric extends DtRangeNetworkSegmentMetric
18 // to to additionally match a specified direction of the segment to within
19 // a specified tolerance.
20 // @see DtRangeNetworkSegmentMetric
22 {
23 
24 public:
25 
28 
31 
34 
37 
39  virtual bool valid(const DtNetworkSegment& seg) const;
40 
43  virtual bool testDirection(const DtPoint& p1, const DtPoint& p2) const;
44 
49  virtual void setDirectionOfInterest(double direction);
50  virtual double directionOfInterest() const;
52 
57  virtual void setDirectionTolerance(double tolerance);
58  virtual double directionTolerance() const;
60 
61  // @{
62  // Get/set whether segments should be considered bidirectional
63  // when testing for direction.
64  // Default is true.
65  virtual void setSearchBidirectional(bool bidi);
66  virtual bool searchBidirectional() const;
67  // @}
68 
69  // Returns the direction of the segment defined by point0 and
70  // point1 in local coordinate radians.
71  virtual double directionOfSegment(const DtPoint& point0,
72  const DtPoint& point1) const;
73 
74 protected:
75 
76  double myDirection;
79 };
80 

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)