![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /********************************************************************* 00002 ** Copyright (c) 2005 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *********************************************************************/ 00005 /********************************************************************* 00006 ** $RCSfile: featureExtIntersectNetNodMet.h,v $ $Revision: 1.5 $ $State: Exp $ 00007 ** Created: 10/24/05 MEM, Updated: 00008 *********************************************************************/ 00009 #ifndef featureExtIntersectNetNodMet_H_ 00010 #define featureExtIntersectNetNodMet_H_ 00011 00012 // 00013 // \file featureExtIntersectNetNodMet.h 00014 // \brief This file contains the DtFeatureExtentIntersectNetworkNodeMetric 00015 // class declaration. The purpose of this class is to do a rough selection 00016 // of features based on whether their extent intersects with the given extent 00017 // This metric takes advantage of a quadtree structure such as the vector 00018 // network's node quadtree. 00019 // 00020 00021 #include "gdb/gdbDefines.h" 00022 #include <stdio.h> 00023 #include <vlutil/vlNetTypes.h> 00024 #include "gdb/intersectNetNodMet.h" 00025 #include "geometry/tdbextent.h" 00026 00027 class DtNetworkNode; 00028 00029 class DT_DLL_gdb DtFeatureExtentIntersectNetworkNodeMetric : public DtIntersectNetworkNodeMetric 00030 { 00031 public: 00032 00033 // default constructor 00034 DtFeatureExtentIntersectNetworkNodeMetric(); 00035 00036 // destructor 00037 virtual ~DtFeatureExtentIntersectNetworkNodeMetric(); 00038 00039 // copy constructor 00040 DtFeatureExtentIntersectNetworkNodeMetric(const 00041 DtFeatureExtentIntersectNetworkNodeMetric& orig); 00042 00043 // assignment operator 00044 DtFeatureExtentIntersectNetworkNodeMetric& operator=(const 00045 DtFeatureExtentIntersectNetworkNodeMetric& orig); 00046 00047 public: 00048 00049 // validate the node 00050 virtual bool valid(const DtNetworkNode& node) const; 00051 00052 // get/set extent of interest 00053 virtual const DtExtent& extentOfInterest() const; 00054 virtual void setExtentOfInterest(const DtExtent& ext); 00055 00056 protected: 00057 00058 DtExtent myExtentOfInterest; 00059 }; 00060 00061 #endif