Base class of all kd-trees. More...
#include <mitsuba/render/gkdtree.h>
Inheritance diagram for mitsuba::KDTreeBase< AABBType >:Classes | |
| struct | KDNode |
| KD-tree node in 8 bytes. More... | |
Public Types | |
| typedef uint32_t | IndexType |
| Index number format (max 2^32 prims) More... | |
| typedef uint32_t | SizeType |
| Size number format. More... | |
Public Member Functions | |
| BOOST_STATIC_ASSERT (sizeof(KDNode)==8) | |
| ELogLevel | getLogLevel () const |
| Return the log level of kd-tree status messages. More... | |
| void | setLogLevel (ELogLevel level) |
| Return the log level of kd-tree status messages. More... | |
| const KDNode * | getRoot () const |
| Return the root node of the kd-tree. More... | |
| bool | isBuilt () const |
| Return whether or not the kd-tree has been built. More... | |
| const AABBType & | getAABB () const |
| Return a (slightly enlarged) axis-aligned bounding box containing all primitives. More... | |
| const AABBType & | getTightAABB () const |
| Return a tight axis-aligned bounding box containing all primitives. More... | |
| virtual const Class * | getClass () const |
| Retrieve this object's class. More... | |
Public Member Functions inherited from Object | |
| Object () | |
| Construct a new object. More... | |
| int | getRefCount () const |
| Return the current reference count. More... | |
| void | incRef () const |
| Increase the reference count of the object by one. More... | |
| void | decRef (bool autoDeallocate=true) const |
| Decrease the reference count of the object and possibly deallocate it. More... | |
| virtual std::string | toString () const |
| Return a human-readable string representation of the object's contents. More... | |
Static Public Attributes | |
| static Class * | m_theClass = new Class("KDTreeBase", true, "Object") |
Static Public Attributes inherited from Object | |
| static Class * | m_theClass |
| Pointer to the object's class descriptor. More... | |
Protected Member Functions | |
| virtual | ~KDTreeBase () |
Protected Member Functions inherited from Object | |
| virtual | ~Object () |
| Virtual private deconstructor. (Will only be called by ref) More... | |
Protected Attributes | |
| KDNode * | m_nodes |
| ELogLevel | m_logLevel |
| AABBType | m_aabb |
| AABBType | m_tightAABB |
Additional Inherited Members | |
Static Public Member Functions inherited from Object | |
| static void | staticInitialization () |
| Initializes the built-in reference count debugger (if enabled) More... | |
| static void | staticShutdown () |
| Free the memory taken by staticInitialization() More... | |
Base class of all kd-trees.
This class defines the byte layout for KD-tree nodes and provides methods for querying the tree structure.
| typedef uint32_t mitsuba::KDTreeBase< AABBType >::IndexType |
Index number format (max 2^32 prims)
| typedef uint32_t mitsuba::KDTreeBase< AABBType >::SizeType |
Size number format.
|
inlineprotectedvirtual |
| mitsuba::KDTreeBase< AABBType >::BOOST_STATIC_ASSERT | ( | sizeof(KDNode) | = =8 | ) |
|
inline |
Return a (slightly enlarged) axis-aligned bounding box containing all primitives.
|
virtual |
|
inline |
Return the log level of kd-tree status messages.
|
inline |
Return the root node of the kd-tree.
|
inline |
Return a tight axis-aligned bounding box containing all primitives.
|
inline |
Return whether or not the kd-tree has been built.
|
inline |
Return the log level of kd-tree status messages.
|
protected |
|
protected |
|
protected |
|
static |
|
protected |