![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /********************************************************************* 00002 ** Copyright (c) 2001 MaK Technologies, Inc. 00003 ** All rights reserved. 00004 *********************************************************************/ 00005 /********************************************************************* 00006 ** $RCSfile: areaNetMet.h,v $ $Revision: 1.9 $ $State: Exp $ 00007 *********************************************************************/ 00008 00009 #pragma once 00010 00011 #include "gdb/gdbDefines.h" 00012 #include "gdb/metric.h" 00013 #include "geometry/point.h" 00014 00015 class DtNetworkSegment; 00016 00022 00023 class DT_DLL_gdb DtNetworkAreaMetric : public DtMetric 00024 { 00025 00026 public: 00027 00029 DtNetworkAreaMetric(); 00030 00032 virtual ~DtNetworkAreaMetric(); 00033 00035 DtNetworkAreaMetric(const DtNetworkAreaMetric& orig); 00036 00038 DtNetworkAreaMetric& operator=(const DtNetworkAreaMetric& orig); 00039 00041 virtual double measure(const DtNetworkSegment& seg) const; 00042 00045 virtual bool valid(const DtNetworkSegment& seg) const; 00046 00048 virtual const DtPoint& centerOfInterest() const; 00049 virtual void setCenterOfInterest(const DtPoint& centerOfInterest); 00050 00052 virtual DtVector vectorCenterOfInterest() const; 00053 virtual void setCenterOfInterest(const DtVector& centerOfInterest); 00054 00056 virtual void initialize(Coordinate_System* cs); 00057 00058 protected: 00059 00060 DtPoint myCenterOfInterest; 00061 DtVector myTopoCenterOfInterest; 00062 }; 00063