OpenVDB: PointAttribute.h File Reference

OpenVDB 7.1.0

Classes | Namespaces | Functions
PointAttribute.h File Reference

Point attribute manipulation in a VDB Point Grid. More...

`#include <openvdb/openvdb.h>`
`#include "AttributeArrayString.h"`
`#include "AttributeSet.h"`
`#include "AttributeGroup.h"`
`#include "PointDataGrid.h"`

Go to the source code of this file.

## Classes
struct | Default< ValueType >
struct | AttributeTypeConversion< ValueType, CodecType >
struct | AttributeTypeConversion< Name, CodecType >
struct | MetadataStorage< PointDataTreeT, ValueType >
struct | MetadataStorage< PointDataTreeT, Name >

## Namespaces
| openvdb
| openvdb::v7_1
| openvdb::v7_1::points
| openvdb::v7_1::points::point_attribute_internal

## Functions
template<typename PointDataTreeT >
void | appendAttribute (PointDataTreeT &tree, const Name &name, const NamePair &type, const Index strideOrTotalSize=1, const bool constantStride=true, const Metadata *defaultValue=nullptr, const bool hidden=false, const bool transient=false)
| Appends a new attribute to the VDB tree (this method does not require a templated AttributeType) More...
template<typename ValueType , typename CodecType = NullCodec, typename PointDataTreeT = PointDataTree>
void | appendAttribute (PointDataTreeT &tree, const std::string &name, const ValueType &uniformValue=point_attribute_internal::Default< ValueType >::value(), const Index strideOrTotalSize=1, const bool constantStride=true, const TypedMetadata< ValueType > *defaultValue=nullptr, const bool hidden=false, const bool transient=false)
| Appends a new attribute to the VDB tree. More...
template<typename ValueType , typename PointDataTreeT >
void | collapseAttribute (PointDataTreeT &tree, const Name &name, const ValueType &uniformValue=point_attribute_internal::Default< ValueType >::value())
| Collapse the attribute into a uniform value. More...
template<typename PointDataTreeT >
void | dropAttributes (PointDataTreeT &tree, const std::vector< size_t > &indices)
| Drops attributes from the VDB tree. More...
template<typename PointDataTreeT >
void | dropAttributes (PointDataTreeT &tree, const std::vector< Name > &names)
| Drops attributes from the VDB tree. More...
template<typename PointDataTreeT >
void | dropAttribute (PointDataTreeT &tree, const size_t &index)
| Drop one attribute from the VDB tree (convenience method). More...
template<typename PointDataTreeT >
void | dropAttribute (PointDataTreeT &tree, const Name &name)
| Drop one attribute from the VDB tree (convenience method). More...
template<typename PointDataTreeT >
void | renameAttributes (PointDataTreeT &tree, const std::vector< Name > &oldNames, const std::vector< Name > &newNames)
| Rename attributes in a VDB tree. More...
template<typename PointDataTreeT >
void | renameAttribute (PointDataTreeT &tree, const Name &oldName, const Name &newName)
| Rename an attribute in a VDB tree. More...
template<typename PointDataTreeT >
void | compactAttributes (PointDataTreeT &tree)
| Compact attributes in a VDB tree (if possible). More...
template<typename ValueType >
void | collapseAttribute (AttributeArray &array, const AttributeSet::Descriptor &, const ValueType &uniformValue)
void | collapseAttribute (AttributeArray &array, const AttributeSet::Descriptor &descriptor, const Name &uniformValue)
template<typename PointDataTreeT >
OPENVDB_DEPRECATED void | appendAttribute (PointDataTreeT &tree, const Name &name, const NamePair &type, const Index strideOrTotalSize, const bool constantStride, Metadata::Ptr metaDefaultValue, const bool hidden=false, const bool transient=false)
template<typename ValueType , typename CodecType = NullCodec, typename PointDataTreeT = PointDataTree>
OPENVDB_DEPRECATED void | appendAttribute (PointDataTreeT &tree, const std::string &name, const ValueType &uniformValue, const Index strideOrTotalSize, const bool constantStride, Metadata::Ptr metaDefaultValue, const bool hidden=false, const bool transient=false)

## Detailed Description

Point attribute manipulation in a VDB Point Grid.

Author
  Dan Bailey, Khang Ngo