00001 // Copyright (C) 2008 - 2009 Mathias Froehlich - Mathias.Froehlich@web.de 00002 // 00003 // This library is free software; you can redistribute it and/or 00004 // modify it under the terms of the GNU Library General Public 00005 // License as published by the Free Software Foundation; either 00006 // version 2 of the License, or (at your option) any later version. 00007 // 00008 // This library is distributed in the hope that it will be useful, 00009 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00011 // Library General Public License for more details. 00012 // 00013 // You should have received a copy of the GNU General Public License 00014 // along with this program; if not, write to the Free Software 00015 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00016 // 00017 00018 #ifndef BVHStaticLeaf_hxx 00019 #define BVHStaticLeaf_hxx 00020 00021 #include <simgear/math/SGGeometry.hxx> 00022 #include "BVHStaticNode.hxx" 00023 00024 namespace simgear { 00025 00026 class BVHStaticLeaf : public BVHStaticNode { 00027 public: 00028 virtual ~BVHStaticLeaf(); 00029 00030 virtual void accept(BVHVisitor& visitor, const BVHStaticData& data) const = 0; 00031 00032 virtual SGBoxf computeBoundingBox(const BVHStaticData&) const = 0; 00033 virtual SGVec3f computeCenter(const BVHStaticData&) const = 0; 00034 }; 00035 00036 } 00037 00038 #endif