Bit mask for the internal and leaf nodes of VDB. This is a 64-bit implementation.  
 More...
|  | 
|  | NodeMask () | 
|  | Default constructor sets all bits off. 
 | 
|  | 
|  | NodeMask (bool on) | 
|  | All bits are set to the specified state. 
 | 
|  | 
|  | NodeMask (const NodeMask &other) | 
|  | Copy constructor. 
 | 
|  | 
|  | ~NodeMask () | 
|  | Destructor. 
 | 
|  | 
| NodeMask & | operator= (const NodeMask &other) | 
|  | Assignment operator. 
 | 
|  | 
| OnIterator | beginOn () const | 
|  | 
| OnIterator | endOn () const | 
|  | 
| OffIterator | beginOff () const | 
|  | 
| OffIterator | endOff () const | 
|  | 
| DenseIterator | beginDense () const | 
|  | 
| DenseIterator | endDense () const | 
|  | 
| bool | operator== (const NodeMask &other) const | 
|  | 
| bool | operator!= (const NodeMask &other) const | 
|  | 
| template<typename WordOp> | 
| const NodeMask & | foreach (const NodeMask &other, const WordOp &op) | 
|  | Apply a functor to the words of the this and the other mask. 
 | 
|  | 
| template<typename WordOp> | 
| const NodeMask & | foreach (const NodeMask &other1, const NodeMask &other2, const WordOp &op) | 
|  | 
| template<typename WordOp> | 
| const NodeMask & | foreach (const NodeMask &other1, const NodeMask &other2, const NodeMask &other3, const WordOp &op) | 
|  | 
| const NodeMask & | operator&= (const NodeMask &other) | 
|  | Bitwise intersection. 
 | 
|  | 
| const NodeMask & | operator|= (const NodeMask &other) | 
|  | Bitwise union. 
 | 
|  | 
| const NodeMask & | operator-= (const NodeMask &other) | 
|  | Bitwise difference. 
 | 
|  | 
| const NodeMask & | operator^= (const NodeMask &other) | 
|  | Bitwise XOR. 
 | 
|  | 
| NodeMask | operator! () const | 
|  | 
| NodeMask | operator& (const NodeMask &other) const | 
|  | 
| NodeMask | operator| (const NodeMask &other) const | 
|  | 
| NodeMask | operator^ (const NodeMask &other) const | 
|  | 
| Index32 | countOn () const | 
|  | Return the total number of on bits. 
 | 
|  | 
| Index32 | countOff () const | 
|  | Return the total number of on bits. 
 | 
|  | 
| void | setOn (Index32 n) | 
|  | Set the nth bit on. 
 | 
|  | 
| void | setOff (Index32 n) | 
|  | Set the nth bit off. 
 | 
|  | 
| void | set (Index32 n, bool On) | 
|  | Set the nth bit to the specified state. 
 | 
|  | 
| void | set (bool on) | 
|  | Set all bits to the specified state. 
 | 
|  | 
| void | setOn () | 
|  | Set all bits on. 
 | 
|  | 
| void | setOff () | 
|  | Set all bits off. 
 | 
|  | 
| void | toggle (Index32 n) | 
|  | Toggle the state of the nth bit. 
 | 
|  | 
| void | toggle () | 
|  | Toggle the state of all bits in the mask. 
 | 
|  | 
| void | setFirstOn () | 
|  | Set the first bit on. 
 | 
|  | 
| void | setLastOn () | 
|  | Set the last bit on. 
 | 
|  | 
| void | setFirstOff () | 
|  | Set the first bit off. 
 | 
|  | 
| void | setLastOff () | 
|  | Set the last bit off. 
 | 
|  | 
| bool | isOn (Index32 n) const | 
|  | Return trueif the nth bit is on.
 | 
|  | 
| bool | isOff (Index32 n) const | 
|  | Return trueif the nth bit is off.
 | 
|  | 
| bool | isOn () const | 
|  | Return trueif all the bits are on.
 | 
|  | 
| bool | isOff () const | 
|  | Return trueif all the bits are off.
 | 
|  | 
| bool | isConstant (bool &isOn) const | 
|  | 
| Index32 | findFirstOn () const | 
|  | 
| Index32 | findFirstOff () const | 
|  | 
| template<typename WordT> | 
| WordT | getWord (Index n) const | 
|  | Return the nth word of the bit mask, for a word of arbitrary size. 
 | 
|  | 
| template<typename WordT> | 
| WordT & | getWord (Index n) | 
|  | 
| void | save (std::ostream &os) const | 
|  | 
| void | load (std::istream &is) | 
|  | 
| void | seek (std::istream &is) const | 
|  | 
| void | printInfo (std::ostream &os=std::cout) const | 
|  | simple print method for debugging 
 | 
|  | 
| void | printBits (std::ostream &os=std::cout, Index32 max_out=80u) const | 
|  | 
| void | printAll (std::ostream &os=std::cout, Index32 max_out=80u) const | 
|  | 
| Index32 | findNextOn (Index32 start) const | 
|  | 
| Index32 | findNextOff (Index32 start) const | 
|  | 
template<
Index Log2Dim>
class openvdb::v12_0::util::NodeMask< Log2Dim >
Bit mask for the internal and leaf nodes of VDB. This is a 64-bit implementation. 
- Note
- A template specialization for Log2Dim=1 and Log2Dim=2 are given below.