Blender V2.61 - r43446
Public Member Functions | Public Attributes

LeafNode Class Reference

#include <bvh_node.h>

Inheritance diagram for LeafNode:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 LeafNode (const BoundBox &bounds, uint visibility, int lo, int hi)
 LeafNode (const LeafNode &s)
bool is_leaf () const
int num_children () const
BVHNodeget_child (int) const
int num_triangles () const
void print (int depth) const

Public Attributes

int m_lo
int m_hi

Detailed Description

Definition at line 82 of file bvh_node.h.


Constructor & Destructor Documentation

LeafNode::LeafNode ( const BoundBox bounds,
uint  visibility,
int  lo,
int  hi 
) [inline]

Definition at line 85 of file bvh_node.h.

References bounds(), BVHNode::m_bounds, m_hi, m_lo, and BVHNode::m_visibility.

LeafNode::LeafNode ( const LeafNode s) [inline]

Definition at line 93 of file bvh_node.h.


Member Function Documentation

BVHNode* LeafNode::get_child ( int  ) const [inline, virtual]

Implements BVHNode.

Definition at line 101 of file bvh_node.h.

References NULL.

bool LeafNode::is_leaf ( ) const [inline, virtual]

Implements BVHNode.

Definition at line 99 of file bvh_node.h.

int LeafNode::num_children ( ) const [inline, virtual]

Implements BVHNode.

Definition at line 100 of file bvh_node.h.

int LeafNode::num_triangles ( ) const [inline, virtual]

Reimplemented from BVHNode.

Definition at line 102 of file bvh_node.h.

References m_hi, and m_lo.

Referenced by RegularBVH::pack_leaf(), and QBVH::pack_leaf().

void LeafNode::print ( int  depth) const [virtual]

Implements BVHNode.

Definition at line 92 of file bvh_node.cpp.

References i, m_hi, and m_lo.


Member Data Documentation

Definition at line 106 of file bvh_node.h.

Referenced by LeafNode(), num_triangles(), RegularBVH::pack_leaf(), QBVH::pack_leaf(), and print().

Definition at line 105 of file bvh_node.h.

Referenced by LeafNode(), num_triangles(), RegularBVH::pack_leaf(), QBVH::pack_leaf(), and print().


The documentation for this class was generated from the following files: