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

Convenience class with methods for analyzing group data. More...

#include <PointGroup.h>

Public Types

using Descriptor = AttributeSet::Descriptor
 

Public Member Functions

 GroupInfo (const AttributeSet &attributeSet)
 
size_t unusedGroups () const
 
bool canCompactGroups () const
 Return true if there are sufficient empty slots to allow compacting. More...
 
size_t nextUnusedOffset () const
 Return the next empty group slot. More...
 
std::vector< size_t > populateGroupIndices () const
 Return vector of indices correlating to the group attribute arrays. More...
 
bool requiresMove (Name &sourceName, size_t &sourceOffset, size_t &targetOffset) const
 

Static Public Member Functions

static size_t groupBits ()
 Return the number of bits in a group (typically 8) More...
 

Detailed Description

Convenience class with methods for analyzing group data.

Definition at line 323 of file PointGroup.h.

Member Typedef Documentation

Definition at line 326 of file PointGroup.h.

Constructor & Destructor Documentation

openvdb::OPENVDB_VERSION_NAME::points::point_group_internal::GroupInfo::GroupInfo ( const AttributeSet attributeSet)
inline

Definition at line 328 of file PointGroup.h.

Member Function Documentation

bool openvdb::OPENVDB_VERSION_NAME::points::point_group_internal::GroupInfo::canCompactGroups ( ) const
inline

Return true if there are sufficient empty slots to allow compacting.

Definition at line 357 of file PointGroup.h.

static size_t openvdb::OPENVDB_VERSION_NAME::points::point_group_internal::GroupInfo::groupBits ( )
inlinestatic

Return the number of bits in a group (typically 8)

Definition at line 332 of file PointGroup.h.

size_t openvdb::OPENVDB_VERSION_NAME::points::point_group_internal::GroupInfo::nextUnusedOffset ( ) const
inline

Return the next empty group slot.

Definition at line 365 of file PointGroup.h.

std::vector<size_t> openvdb::OPENVDB_VERSION_NAME::points::point_group_internal::GroupInfo::populateGroupIndices ( ) const
inline

Return vector of indices correlating to the group attribute arrays.

Definition at line 391 of file PointGroup.h.

bool openvdb::OPENVDB_VERSION_NAME::points::point_group_internal::GroupInfo::requiresMove ( Name sourceName,
size_t &  sourceOffset,
size_t &  targetOffset 
) const
inline

Determine if a move is required to efficiently compact the data and store the source name, offset and the target offset in the input parameters

Definition at line 409 of file PointGroup.h.

size_t openvdb::OPENVDB_VERSION_NAME::points::point_group_internal::GroupInfo::unusedGroups ( ) const
inline

Return the number of empty group slots which correlates to the number of groups that can be stored without increasing the number of group attribute arrays

Definition at line 336 of file PointGroup.h.


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