point_locator_tree.h
Go to the documentation of this file.00001 // The libMesh Finite Element Library. 00002 // Copyright (C) 2002-2012 Benjamin S. Kirk, John W. Peterson, Roy H. Stogner 00003 00004 // This library is free software; you can redistribute it and/or 00005 // modify it under the terms of the GNU Lesser General Public 00006 // License as published by the Free Software Foundation; either 00007 // version 2.1 of the License, or (at your option) any later version. 00008 00009 // This library is distributed in the hope that it will be useful, 00010 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 // Lesser General Public License for more details. 00013 00014 // You should have received a copy of the GNU Lesser General Public 00015 // License along with this library; if not, write to the Free Software 00016 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00017 00018 00019 00020 #ifndef LIBMESH_POINT_LOCATOR_TREE_H 00021 #define LIBMESH_POINT_LOCATOR_TREE_H 00022 00023 // Local Includes 00024 #include "libmesh/point_locator_base.h" 00025 #include "libmesh/tree_base.h" 00026 00027 // C++ includes 00028 #include <cstddef> 00029 00030 namespace libMesh 00031 { 00032 00033 00034 // Forward Declarations 00035 class MeshBase; 00036 class Point; 00037 class Elem; 00038 00039 00050 // ------------------------------------------------------------ 00051 // PointLocatorTree class definition 00052 class PointLocatorTree : public PointLocatorBase 00053 { 00054 public: 00055 00056 00065 PointLocatorTree (const MeshBase& mesh, 00066 const PointLocatorBase* master = NULL); 00067 00068 00080 PointLocatorTree (const MeshBase& mesh, 00081 const Trees::BuildType build_type, 00082 const PointLocatorBase* master = NULL); 00083 00084 00085 00086 public: 00087 00091 ~PointLocatorTree (); 00092 00096 virtual void clear(); 00097 00102 void init(const Trees::BuildType build_type); 00103 00108 virtual void init() { this->init(Trees::NODES); } 00109 00116 virtual const Elem* operator() (const Point& p) const; 00117 00124 virtual void enable_out_of_mesh_mode (void); 00125 00131 virtual void disable_out_of_mesh_mode (void); 00132 00133 protected: 00134 00140 TreeBase* _tree; 00141 00147 mutable const Elem* _element; 00148 00153 bool _out_of_mesh_mode; 00154 00155 }; 00156 00157 00158 // ------------------------------------------------------------ 00159 // PointLocatorTree inline methods 00160 00161 00162 } // namespace libMesh 00163 00164 #endif // LIBMESH_POINT_LOCATOR_TREE_H 00165 00166
Site Created By: libMesh Developers
Last modified: February 05 2013 19:54:48 UTC
Hosted By: