![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /****************************************************************************** 00002 ** Copyright (c) 2005 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 ******************************************************************************/ 00005 /****************************************************************************** 00006 ** $RCSfile: gdbNodeExtentEvaluationFunctor.h,v $ $Revision: 1.3 $ $State: Exp $ 00007 ******************************************************************************/ 00008 #ifndef gdbNodeExtentEvaluationFunctor_H_ 00009 #define gdbNodeExtentEvaluationFunctor_H_ 00010 00011 // 00012 // \file gdbNodeExtentEvaluationFunctor.h 00013 // \brief Contains the DtGdbNodeExtentSelectionFunctor class desclaration and related functionality. 00014 // 00015 00016 #include "gdb/gdbDefines.h" 00017 #include "gdb/gdbNodeEvaluationFunctor.h" 00018 #include <geometry/tdbextent.h> 00019 00020 class DtGdbNode; 00021 00022 00023 // 00024 // This functor determines if a specified DtGdbNode's extent intersects a 00025 // specified extent. If so, then it evaluates to true. Otherwise, it evaluates 00026 // to false. 00027 class DT_DLL_gdb DtGdbNodeExtentSelectionFunctor : public DtGdbNodeEvaluationFunctor 00028 { 00029 public: 00030 DtGdbNodeExtentSelectionFunctor(const DtExtent& extent); 00031 00032 virtual ~DtGdbNodeExtentSelectionFunctor(); 00033 00034 private: 00035 // Copy constructor and Assignment operator not implemented 00036 DtGdbNodeExtentSelectionFunctor(const DtGdbNodeExtentSelectionFunctor& original); 00037 const DtGdbNodeExtentSelectionFunctor& operator=(const DtGdbNodeExtentSelectionFunctor& original); 00038 00039 public: 00040 00041 // \return True if the specified node's extent intersects this functor's 00042 // extent and false otherwise. 00043 // \note This does \b not do an exact intersection test between this functor's 00044 // extent and the specified node's actual dimensions, whatever they may be. 00045 // It tests the extent \b only. 00046 bool operator()(const DtGdbNode& nodeToEvalulate); 00047 00048 00049 protected: 00050 00051 private: 00052 00053 DtExtent myExtent; 00054 }; 00055 00056 #endif