VR-Forces 4.1 Class Documentation
intersectNetSegMet.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2001 MAK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: intersectNetSegMet.h,v $ $Revision: 1.13 $ $State: Exp $
7 *********************************************************************/
8 
9 #pragma once
10 
11 //
12 // \file intersectNetSegMet.h
13 // \brief This file contains the DtIntersectNetworkSegmentMetric class declaration.
14 //
15 
16 #include "gdb/gdbDefines.h"
17 #include "gdb/netwrkSegMet.h"
18 #include "geometry/chord.h"
19 #include "gdb/netwrkSegHelper.h"
20 
21 class DtTerrainDatabase;
23 
28 {
29 public:
30 
33 
36 
39 
42 
43 public:
44 
46  virtual double measure(const DtNetworkSegment& seg) const;
47 
50  virtual double measure(const DtNetworkSegment& seg, DtPoint &p) const;
51 
54  virtual bool circumscribedSquareTest(const DtNetworkSegment& seg) const;
55 
57  virtual bool valid(const DtNetworkSegment& seg) const;
58 
60  virtual bool validSW(double xx, double yy) const;
61 
63  virtual bool validSE(double xx, double yy) const;
64 
66  virtual bool validNE(double xx, double yy) const;
67 
69  virtual bool validNW(double xx, double yy) const;
70 
72  virtual const DtChord& centerOfInterest() const;
73  virtual void setCenterOfInterest(const DtChord& centerOfInterest);
74 
76  virtual bool evalInZ();
77  virtual void setEvalInZ(bool eval);
78 
80  virtual double maxRange() const;
81  virtual void setMaxRange(double val);
82 
84  virtual double measureMultiplier() const;
85  virtual void setMeasureMultiplier(double val);
86 
88  virtual const DtTerrainDatabase* terrainDb();
89  virtual void setTerrainDb(const DtTerrainDatabase *db);
90 
92  virtual void initialize( Coordinate_System* cs );
93 
94 protected:
95 
97 
100  double myMaxRange;
102 
103  double myMaxX;
104  double myMaxY;
105  double myMinX;
106  double myMinY;
107  double mySize;
108 
110 
114 
115  bool myEvalInZ;
116  DtCoordTransform myTopoToLocal;
117 
118 };

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)