HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
openvdb::OPENVDB_VERSION_NAME::points::GroupWriteHandle Class Reference

#include <AttributeGroup.h>

+ Inheritance diagram for openvdb::OPENVDB_VERSION_NAME::points::GroupWriteHandle:

Public Types

using Ptr = std::shared_ptr< GroupWriteHandle >
 
using UniquePtr = std::unique_ptr< GroupWriteHandle >
 
- Public Types inherited from openvdb::OPENVDB_VERSION_NAME::points::GroupHandle
using Ptr = std::shared_ptr< GroupHandle >
 
using UniquePtr = std::unique_ptr< GroupHandle >
 
using GroupIndex = std::pair< Index, uint8_t >
 

Public Member Functions

 GroupWriteHandle (GroupAttributeArray &array, const GroupType &offset)
 
void set (Index n, bool on)
 Set on at the given index n. More...
 
void setUnsafe (Index n, bool on)
 Set on at the given index n (assumes in-core and non-uniform) More...
 
bool collapse (bool on)
 Set membership for the whole array and attempt to collapse. More...
 
bool compact ()
 Compact the existing array to become uniform if all values are identical. More...
 
- Public Member Functions inherited from openvdb::OPENVDB_VERSION_NAME::points::GroupHandle
 GroupHandle (const GroupAttributeArray &array, const GroupType &offset)
 
 GroupHandle (const GroupAttributeArray &array, const GroupType &bitMask, BitMask)
 
Index size () const
 
bool isUniform () const
 
bool get (Index n) const
 
bool getUnsafe (Index n) const
 

Additional Inherited Members

- Protected Attributes inherited from openvdb::OPENVDB_VERSION_NAME::points::GroupHandle
const GroupAttributeArraymArray
 
const GroupType mBitMask
 

Detailed Description

Definition at line 101 of file AttributeGroup.h.

Member Typedef Documentation

using openvdb::OPENVDB_VERSION_NAME::points::GroupWriteHandle::Ptr = std::shared_ptr<GroupWriteHandle>

Definition at line 104 of file AttributeGroup.h.

using openvdb::OPENVDB_VERSION_NAME::points::GroupWriteHandle::UniquePtr = std::unique_ptr<GroupWriteHandle>

Definition at line 105 of file AttributeGroup.h.

Constructor & Destructor Documentation

openvdb::OPENVDB_VERSION_NAME::points::GroupWriteHandle::GroupWriteHandle ( GroupAttributeArray array,
const GroupType offset 
)

Member Function Documentation

bool openvdb::OPENVDB_VERSION_NAME::points::GroupWriteHandle::collapse ( bool  on)

Set membership for the whole array and attempt to collapse.

Parameters
onTrue or false for inclusion in group
Note
This method guarantees that all attributes will have group membership changed according to the input bool, however compaction will not be performed if other groups that share the same underlying array are non-uniform. The return value indicates if the group array ends up being uniform.
bool openvdb::OPENVDB_VERSION_NAME::points::GroupWriteHandle::compact ( )

Compact the existing array to become uniform if all values are identical.

void openvdb::OPENVDB_VERSION_NAME::points::GroupWriteHandle::set ( Index  n,
bool  on 
)

Set on at the given index n.

void openvdb::OPENVDB_VERSION_NAME::points::GroupWriteHandle::setUnsafe ( Index  n,
bool  on 
)

Set on at the given index n (assumes in-core and non-uniform)


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