#include <openvdb/tree/LeafBuffer.h>
Public Types | |
using | NodeMaskType = util::NodeMask<Log2Dim> |
using | WordType = typename NodeMaskType::Word |
using | ValueType = bool |
using | StorageType = WordType |
using | ValueType |
using | StorageType |
using | NodeMaskType |
Public Member Functions | |
LeafBuffer () | |
LeafBuffer (bool on) | |
LeafBuffer (const NodeMaskType &other) | |
LeafBuffer (const LeafBuffer &other) | |
~LeafBuffer () | |
void | fill (bool val) |
LeafBuffer & | operator= (const LeafBuffer &b) |
const bool & | getValue (Index i) const |
const bool & | operator[] (Index i) const |
bool | operator== (const LeafBuffer &other) const |
bool | operator!= (const LeafBuffer &other) const |
void | setValue (Index i, bool val) |
void | swap (LeafBuffer &other) |
Index | memUsage () const |
Index | memUsageIfLoaded () const |
WordType * | data () |
Return a pointer to the C-style array of words encoding the bits. | |
const WordType * | data () const |
Return a const pointer to the C-style array of words encoding the bits. | |
LeafBuffer () | |
Default constructor. | |
LeafBuffer (const ValueType &) | |
Construct a buffer populated with the specified value. | |
LeafBuffer (const LeafBuffer &) | |
Copy constructor. | |
LeafBuffer (PartialCreate, const ValueType &) | |
Construct a buffer but don't allocate memory for the full array of values. | |
~LeafBuffer () | |
Destructor. | |
bool | isOutOfCore () const |
Return true if this buffer's values have not yet been read from disk. | |
bool | empty () const |
Return true if memory for this buffer has not yet been allocated. | |
bool | allocate () |
Allocate memory for this buffer if it has not already been allocated. | |
void | fill (const ValueType &) |
Populate this buffer with a constant value. | |
const ValueType & | getValue (Index i) const |
Return a const reference to the i'th element of this buffer. | |
const ValueType & | operator[] (Index i) const |
Return a const reference to the i'th element of this buffer. | |
void | setValue (Index i, const ValueType &) |
Set the i'th value of this buffer to the specified value. | |
LeafBuffer & | operator= (const LeafBuffer &) |
Copy the other buffer's values into this buffer. | |
bool | operator== (const LeafBuffer &) const |
Return true if the contents of the other buffer exactly equal the contents of this buffer. | |
bool | operator!= (const LeafBuffer &other) const |
Return true if the contents of the other buffer are not exactly equal to the contents of this buffer. | |
void | swap (LeafBuffer &) |
Exchange this buffer's values with the other buffer's values. | |
Index | memUsage () const |
Return the memory footprint of this buffer in bytes. | |
Index | memUsageIfLoaded () const |
const ValueType * | data () const |
Return a const pointer to the array of voxel values. | |
ValueType * | data () |
Return a pointer to the array of voxel values. | |
Static Public Member Functions | |
static Index | size () |
static Index | size () |
Return the number of values contained in this buffer. | |
Static Public Attributes | |
static const Index | WORD_COUNT = NodeMaskType::WORD_COUNT |
static const Index | SIZE = 1 << 3 * Log2Dim |
static const bool | sOn = true |
static const bool | sOff = false |
static const Index | SIZE |
Friends | |
template<typename, Index> | |
class | LeafNode |
class | ::TestLeaf |
class | LeafNode |
using NodeMaskType |
using NodeMaskType = util::NodeMask<Log2Dim> |
using StorageType |
using StorageType = WordType |
using ValueType |
using WordType = typename NodeMaskType::Word |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Default constructor.
|
inlineexplicit |
Construct a buffer populated with the specified value.
|
inline |
Copy constructor.
|
inline |
Construct a buffer but don't allocate memory for the full array of values.
|
inline |
Destructor.
|
inline |
Allocate memory for this buffer if it has not already been allocated.
|
inline |
Return a pointer to the array of voxel values.
This method guarantees that the buffer is allocated and loaded.
Return a pointer to the C-style array of words encoding the bits.
|
inline |
Return a const pointer to the array of voxel values.
This method guarantees that the buffer is allocated and loaded.
Return a const pointer to the C-style array of words encoding the bits.
|
inline |
Return true
if memory for this buffer has not yet been allocated.
|
inline |
|
inline |
Populate this buffer with a constant value.
Return a const reference to the i'th element of this buffer.
|
inline |
Return true
if this buffer's values have not yet been read from disk.
|
inline |
Return the memory footprint of this buffer in bytes.
|
inline |
|
inline |
Return true
if the contents of the other buffer are not exactly equal to the contents of this buffer.
|
inline |
|
inline |
Copy the other buffer's values into this buffer.
|
inline |
|
inline |
Return true
if the contents of the other buffer exactly equal the contents of this buffer.
|
inline |
Return a const reference to the i'th element of this buffer.
Set the i'th value of this buffer to the specified value.
|
inlinestatic |
Return the number of values contained in this buffer.
|
inline |
Exchange this buffer's values with the other buffer's values.
|
inline |
|
friend |
|
friend |
|
static |
|
inlinestatic |
|
inlinestatic |