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 #include "BVHStaticBinary.hxx" 00019 00020 #include "BVHVisitor.hxx" 00021 00022 namespace simgear { 00023 00024 BVHStaticBinary::BVHStaticBinary(unsigned splitAxis, 00025 const BVHStaticNode* leftChild, 00026 const BVHStaticNode* rightChild, 00027 const SGBoxf& boundingBox) : 00028 _splitAxis(splitAxis), 00029 _leftChild(leftChild), 00030 _rightChild(rightChild), 00031 _boundingBox(boundingBox) 00032 { 00033 } 00034 00035 BVHStaticBinary::~BVHStaticBinary() 00036 { 00037 } 00038 00039 void 00040 BVHStaticBinary::accept(BVHVisitor& visitor, const BVHStaticData& data) const 00041 { 00042 visitor.apply(*this, data); 00043 } 00044 00045 }