fixed: auto_ptr -> unique_ptr
[opensg.git] / Source / System / NodeCores / Drawables / Particles / OSGParticleBSP.inl
blobb948adcf5c63cf2e67b47d2fd8d63aaf2d3d5009
1 /*---------------------------------------------------------------------------*\
2  *                                OpenSG                                     *
3  *                                                                           *
4  *                                                                           *
5  *                     Copyright 2000-2002 by OpenSG Forum                   *
6  *                                                                           *
7  *   contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de          *
8  *                                                                           *
9 \*---------------------------------------------------------------------------*/
10 /*---------------------------------------------------------------------------*\
11  *                                License                                    *
12  *                                                                           *
13  * This library is free software; you can redistribute it and/or modify it   *
14  * under the terms of the GNU Library General Public License as published    *
15  * by the Free Software Foundation, version 2.                               *
16  *                                                                           *
17  * This library is distributed in the hope that it will be useful, but       *
18  * WITHOUT ANY WARRANTY; without even the implied warranty of                *
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU         *
20  * Library General Public License for more details.                          *
21  *                                                                           *
22  * You should have received a copy of the GNU Library General Public         *
23  * License along with this library; if not, write to the Free Software       *
24  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.                 *
25  *                                                                           *
26 \*---------------------------------------------------------------------------*/
27 /*---------------------------------------------------------------------------*\
28  *                                Changes                                    *
29  *                                                                           *
30  *                                                                           *
31  *                                                                           *
32  *                                                                           *
33  *                                                                           *
34  *                                                                           *
35 \*---------------------------------------------------------------------------*/
37 //---------------------------------------------------------------------------
38 //  Includes
39 //---------------------------------------------------------------------------
41 // exclude the whole class from user docs
42 #if !defined(OSG_DO_DOC) || defined(OSG_DOC_DEV)
44 OSG_BEGIN_NAMESPACE
46 inline
47 bool ParticleBSPNode::isLeaf(void) const
49     return _axis == Leaf;
52 inline
53 Int32 ParticleBSPNode::getValue(void) const
55     return _value;
58 inline
59 Real32 ParticleBSPNode::getSplitValue(void) const
61     return _splitvalue;
64 inline
65 UInt8 ParticleBSPNode::getAxis(void) const
67     return _axis;
70 inline
71 void ParticleBSPNode::setValue(Int32 value)
73     _value = value;
74     _axis = Leaf;
77 inline
78 void ParticleBSPNode::setSplit(UInt8 axis, Real32 splitvalue)
80     _splitvalue = splitvalue;
81     _axis       = axis;
84 inline 
85 bool ParticleBSPTree::created(void) const
87     return _tree.size() > 1;
90 OSG_END_NAMESPACE
92 #endif // Doc exclude