VR-Forces 4.0.4 Class Documentation
include/gdb/gdbNodeXyExtentEvaluationFunctor.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 2005 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 /******************************************************************************
00006 ** $RCSfile: gdbNodeXyExtentEvaluationFunctor.h,v $ $Revision: 1.3 $ $State: Exp $
00007 ******************************************************************************/
00008 #ifndef gdbNodeXyExtentEvaluationFunctor_H_
00009 #define gdbNodeXyExtentEvaluationFunctor_H_
00010 
00011 //
00012 // \file gdbNodeXyExtentEvaluationFunctor.h
00013 // \brief This file contains the declaration of the DtGdbNodeXyExtentIntersectionFunctor
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 is used to determine if a specified DtGdbNode's extent 
00025 // intersects another specified extent in the XY plane. If so, then it 
00026 // evaluates to true.  Otherwise, it evaluates to false.
00027 class DT_DLL_gdb DtGdbNodeXyExtentEvaluationFunctor : public DtGdbNodeEvaluationFunctor
00028 {
00029 public:
00030    DtGdbNodeXyExtentEvaluationFunctor(const DtExtent& extent);
00031 
00032    virtual ~DtGdbNodeXyExtentEvaluationFunctor();
00033 
00034 private:
00035    // Copy constructor and Assignment operator not implemented
00036    DtGdbNodeXyExtentEvaluationFunctor(const DtGdbNodeXyExtentEvaluationFunctor& original);
00037    const DtGdbNodeXyExtentEvaluationFunctor& operator=(const DtGdbNodeXyExtentEvaluationFunctor& 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 private:
00051 
00052    DtExtent myExtent;
00053 };
00054 
00055 #endif

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)