HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PointAttribute.h File Reference

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

+ Include dependency graph for PointAttribute.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  openvdb::OPENVDB_VERSION_NAME::points::point_attribute_internal::Default< ValueType >
 

Namespaces

 openvdb
 
 openvdb::OPENVDB_VERSION_NAME
 
 openvdb::OPENVDB_VERSION_NAME::points
 
 openvdb::OPENVDB_VERSION_NAME::points::point_attribute_internal
 

Functions

template<typename PointDataTreeT >
void openvdb::OPENVDB_VERSION_NAME::points::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 , typename PointDataTreeT >
void openvdb::OPENVDB_VERSION_NAME::points::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 openvdb::OPENVDB_VERSION_NAME::points::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 openvdb::OPENVDB_VERSION_NAME::points::dropAttributes (PointDataTreeT &tree, const std::vector< size_t > &indices)
 Drops attributes from the VDB tree. More...
 
template<typename PointDataTreeT >
void openvdb::OPENVDB_VERSION_NAME::points::dropAttributes (PointDataTreeT &tree, const std::vector< Name > &names)
 Drops attributes from the VDB tree. More...
 
template<typename PointDataTreeT >
void openvdb::OPENVDB_VERSION_NAME::points::dropAttribute (PointDataTreeT &tree, const size_t &index)
 Drop one attribute from the VDB tree (convenience method). More...
 
template<typename PointDataTreeT >
void openvdb::OPENVDB_VERSION_NAME::points::dropAttribute (PointDataTreeT &tree, const Name &name)
 Drop one attribute from the VDB tree (convenience method). More...
 
template<typename PointDataTreeT >
void openvdb::OPENVDB_VERSION_NAME::points::renameAttributes (PointDataTreeT &tree, const std::vector< Name > &oldNames, const std::vector< Name > &newNames)
 Rename attributes in a VDB tree. More...
 
template<typename PointDataTreeT >
void openvdb::OPENVDB_VERSION_NAME::points::renameAttribute (PointDataTreeT &tree, const Name &oldName, const Name &newName)
 Rename an attribute in a VDB tree. More...
 
template<typename PointDataTreeT >
void openvdb::OPENVDB_VERSION_NAME::points::compactAttributes (PointDataTreeT &tree)
 Compact attributes in a VDB tree (if possible). More...
 

Detailed Description

Point attribute manipulation in a VDB Point Grid.

Author
Dan Bailey, Khang Ngo

Definition in file PointAttribute.h.