#include <OSGParticleBSP.h>
Public Types | |
| enum | { X = 0, Y, Z, Leaf } |
Public Member Functions | |
Constructors | |
| ParticleBSPNode (void) | |
| ParticleBSPNode (const ParticleBSPNode &source) | |
| ParticleBSPNode (UInt32 value) | |
| ParticleBSPNode (UInt8 axis, Real32 splitvalue) | |
Destructors | |
| ~ParticleBSPNode (void) | |
Access | |
| bool | isLeaf (void) const |
| Int32 | getValue (void) const |
| Real32 | getSplitValue (void) const |
| UInt8 | getAxis (void) const |
| void | setValue (Int32 value) |
| void | setSplit (UInt8 axis, Real32 splitvalue) |
Output | |
| void | dump (UInt32 uiIndent=0, const BitVector bvFlags=0) const |
Public Attributes | |
| enum osg::ParticleBSPNode:: { ... } | Axis |
| Int32 | _value |
| Real32 | _splitvalue |
Private Attributes | |
| UInt8 | _axis |
| union { | |
| Int32 _value | |
| Real32 _splitvalue | |
| }; | |
Definition at line 66 of file OSGParticleBSP.h.
| anonymous enum |
| ParticleBSPNode::ParticleBSPNode | ( | void | ) |
| ParticleBSPNode::ParticleBSPNode | ( | const ParticleBSPNode & | source | ) |
Definition at line 79 of file OSGParticleBSP.cpp.
References _splitvalue, _value, and isLeaf().
00079 : 00080 _axis(source._axis) 00081 { 00082 if(isLeaf()) 00083 { 00084 _value = source._value; 00085 } 00086 else 00087 { 00088 _splitvalue = source._splitvalue; 00089 } 00090 }
| ParticleBSPNode::ParticleBSPNode | ( | UInt32 | value | ) |
Definition at line 98 of file OSGParticleBSP.cpp.
00098 : 00099 _axis(axis), 00100 _splitvalue(splitvalue) 00101 { 00102 }
| ParticleBSPNode::~ParticleBSPNode | ( | void | ) |
| bool osg::ParticleBSPNode::isLeaf | ( | void | ) | const [inline] |
Definition at line 49 of file OSGParticleBSP.inl.
Referenced by osg::ParticleBSPTree::doTraverse(), dump(), and ParticleBSPNode().
| Int32 osg::ParticleBSPNode::getValue | ( | void | ) | const [inline] |
Definition at line 55 of file OSGParticleBSP.inl.
References _value.
Referenced by osg::ParticleBSPTree::doTraverse().
00056 { 00057 return _value; 00058 }
| Real32 osg::ParticleBSPNode::getSplitValue | ( | void | ) | const [inline] |
Definition at line 61 of file OSGParticleBSP.inl.
References _splitvalue.
Referenced by osg::ParticleBSPTree::doTraverse().
00062 { 00063 return _splitvalue; 00064 }
| UInt8 osg::ParticleBSPNode::getAxis | ( | void | ) | const [inline] |
Definition at line 67 of file OSGParticleBSP.inl.
References _axis.
Referenced by osg::ParticleBSPTree::doTraverse().
00068 { 00069 return _axis; 00070 }
| void osg::ParticleBSPNode::setValue | ( | Int32 | value | ) | [inline] |
Definition at line 80 of file OSGParticleBSP.inl.
References _axis, and _splitvalue.
00081 { 00082 _splitvalue = splitvalue; 00083 _axis = axis; 00084 }
Definition at line 110 of file OSGParticleBSP.cpp.
References _axis, _splitvalue, _value, isLeaf(), and PLOG.
00112 { 00113 static const char *axisname = "XYZL"; 00114 00115 Real32 v = isLeaf()?_value:_splitvalue; 00116 00117 PLOG << "(" << axisname[_axis] << " " << v << ")"; 00118 }
| enum { ... } osg::ParticleBSPNode::Axis |
UInt8 osg::ParticleBSPNode::_axis [private] |
Definition at line 118 of file OSGParticleBSP.h.
Referenced by dump(), getAxis(), isLeaf(), setSplit(), and setValue().
Definition at line 122 of file OSGParticleBSP.h.
Referenced by dump(), getValue(), ParticleBSPNode(), and setValue().
Definition at line 123 of file OSGParticleBSP.h.
Referenced by dump(), getSplitValue(), ParticleBSPNode(), and setSplit().
union { ... } [private] |
1.5.5