00001 /*---------------------------------------------------------------------------*\ 00002 * OpenSG * 00003 * * 00004 * * 00005 * Copyright 2000-2002 by OpenSG Forum * 00006 * * 00007 * contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de * 00008 * * 00009 \*---------------------------------------------------------------------------*/ 00010 /*---------------------------------------------------------------------------*\ 00011 * License * 00012 * * 00013 * This library is free software; you can redistribute it and/or modify it * 00014 * under the terms of the GNU Library General Public License as published * 00015 * by the Free Software Foundation, version 2. * 00016 * * 00017 * This library is distributed in the hope that it will be useful, but * 00018 * WITHOUT ANY WARRANTY; without even the implied warranty of * 00019 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * 00020 * Library General Public License for more details. * 00021 * * 00022 * You should have received a copy of the GNU Library General Public * 00023 * License along with this library; if not, write to the Free Software * 00024 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * 00025 * * 00026 \*---------------------------------------------------------------------------*/ 00027 /*---------------------------------------------------------------------------*\ 00028 * Changes * 00029 * * 00030 * * 00031 * * 00032 * * 00033 * * 00034 * * 00035 \*---------------------------------------------------------------------------*/ 00036 00037 //--------------------------------------------------------------------------- 00038 // Includes 00039 //--------------------------------------------------------------------------- 00040 00041 #include <OSGConfig.h> 00042 00043 // exclude the whole class from user docs 00044 #if !defined(OSG_DO_DOC) || defined(OSG_DOC_DEV) 00045 00046 OSG_BEGIN_NAMESPACE 00047 00048 inline 00049 bool ParticleBSPNode::isLeaf(void) const 00050 { 00051 return _axis == Leaf; 00052 } 00053 00054 inline 00055 Int32 ParticleBSPNode::getValue(void) const 00056 { 00057 return _value; 00058 } 00059 00060 inline 00061 Real32 ParticleBSPNode::getSplitValue(void) const 00062 { 00063 return _splitvalue; 00064 } 00065 00066 inline 00067 UInt8 ParticleBSPNode::getAxis(void) const 00068 { 00069 return _axis; 00070 } 00071 00072 inline 00073 void ParticleBSPNode::setValue(Int32 value) 00074 { 00075 _value = value; 00076 _axis = Leaf; 00077 } 00078 00079 inline 00080 void ParticleBSPNode::setSplit(UInt8 axis, Real32 splitvalue) 00081 { 00082 _splitvalue = splitvalue; 00083 _axis = axis; 00084 } 00085 00086 inline 00087 bool ParticleBSPTree::created(void) 00088 { 00089 return _tree.size() > 1; 00090 } 00091 00092 OSG_END_NAMESPACE 00093 00094 #endif // Doc exclude 00095 00096 #define OSGPARTICLEBSP_INLINE_CVSID "@(#)$Id: OSGParticleBSP.inl,v 1.1 2002/01/10 21:14:10 dirk Exp $" 00097
1.4.3