Mitsuba Renderer  0.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mitsuba::ClassificationStorage Class Reference

Compact storage for primitive classifcation. More...

#include <mitsuba/render/gkdtree.h>

Public Member Functions

 ClassificationStorage ()
 
 ~ClassificationStorage ()
 
void setPrimitiveCount (size_t size)
 
void set (uint32_t index, int value)
 
int get (uint32_t index) const
 
size_t size () const
 

Detailed Description

Compact storage for primitive classifcation.

When classifying primitives with respect to a split plane, a data structure is needed to hold the tertiary result of this operation. This class implements a compact storage (2 bits per entry) in the spirit of the std::vector<bool> specialization.

Author
Wenzel Jakob

Constructor & Destructor Documentation

mitsuba::ClassificationStorage::ClassificationStorage ( )
inline
mitsuba::ClassificationStorage::~ClassificationStorage ( )
inline

Member Function Documentation

int mitsuba::ClassificationStorage::get ( uint32_t  index) const
inline
void mitsuba::ClassificationStorage::set ( uint32_t  index,
int  value 
)
inline
void mitsuba::ClassificationStorage::setPrimitiveCount ( size_t  size)
inline
size_t mitsuba::ClassificationStorage::size ( ) const
inline

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