10 #ifndef OPENVDB_POINTS_POINT_ATTRIBUTE_HAS_BEEN_INCLUDED
11 #define OPENVDB_POINTS_POINT_ATTRIBUTE_HAS_BEEN_INCLUDED
26 namespace point_attribute_internal {
28 template <
typename ValueType>
48 template <
typename Po
intDataTreeT>
52 const Index strideOrTotalSize = 1,
53 const bool constantStride =
true,
54 const Metadata* defaultValue =
nullptr,
55 const bool hidden =
false,
56 const bool transient =
false);
69 typename CodecType = NullCodec,
70 typename PointDataTreeT>
75 const Index strideOrTotalSize = 1,
76 const bool constantStride =
true,
78 const bool hidden =
false,
79 const bool transient =
false);
86 template <
typename ValueType,
typename Po
intDataTreeT>
96 template <
typename Po
intDataTreeT>
98 const std::vector<size_t>&
indices);
104 template <
typename Po
intDataTreeT>
106 const std::vector<Name>& names);
112 template <
typename Po
intDataTreeT>
114 const size_t&
index);
120 template <
typename Po
intDataTreeT>
133 template <
typename Po
intDataTreeT>
135 const std::vector<Name>& oldNames,
136 const std::vector<Name>& newNames);
145 template <
typename Po
intDataTreeT>
148 const Name& newName);
153 template <
typename Po
intDataTreeT>
163 #endif // OPENVDB_POINTS_POINT_ATTRIBUTE_HAS_BEEN_INCLUDED
GLsizei GLenum const void * indices
GLdouble GLdouble GLint GLint const GLdouble * points
GLsizei const GLchar *const * string
GLsizei const GLfloat * value
#define OPENVDB_USE_VERSION_NAMESPACE
void compactAttributes(PointDataTreeT &tree)
Compact attributes in a VDB tree (if possible).
void renameAttributes(PointDataTreeT &tree, const std::vector< Name > &oldNames, const std::vector< Name > &newNames)
Rename attributes in a VDB tree.
void appendAttribute(PointDataTreeT &tree, const Name &name, const NamePair &type, const Index strideOrTotalSize, const bool constantStride, const Metadata *defaultValue, const bool hidden, const bool transient)
Appends a new attribute to the VDB tree (this method does not require a templated AttributeType) ...
Attribute array storage for string data using Descriptor Metadata.
void dropAttributes(PointDataTreeT &tree, const std::vector< size_t > &indices)
Drops attributes from the VDB tree.
GLuint const GLchar * name
std::pair< Name, Name > NamePair
Set of Attribute Arrays which tracks metadata about each array.
void collapseAttribute(PointDataTreeT &tree, const Name &name, const ValueType &uniformValue)
Collapse the attribute into a uniform value.
Attribute Group access and filtering for iteration.
void dropAttribute(PointDataTreeT &tree, const size_t &index)
Drop one attribute from the VDB tree (convenience method).
void renameAttribute(PointDataTreeT &tree, const Name &oldName, const Name &newName)
Rename an attribute in a VDB tree.
#define OPENVDB_VERSION_NAME
The version namespace name for this library version.
Attribute-owned data structure for points. Point attributes are stored in leaf nodes and ordered by v...