#include <openvdb/points/AttributeArrayString.h>
 
  
| Public Types | |
| using | Ptr = std::shared_ptr<StringAttributeWriteHandle> | 
| using | UniquePtr = std::unique_ptr<StringAttributeWriteHandle> | 
| Public Member Functions | |
| StringAttributeWriteHandle (AttributeArray &array, const MetaMap &metadata, const bool expand=true) | |
| void | expand (bool fill=true) | 
| If this array is uniform, replace it with an array of length size(). | |
| void | collapse () | 
| Set membership for the whole array and attempt to collapse. | |
| void | collapse (const Name &name) | 
| Set membership for the whole array and attempt to collapse. | |
| bool | compact () | 
| Compact the existing array to become uniform if all values are identical. | |
| void | fill (const Name &name) | 
| Fill the existing array with the given value. | |
| void | set (Index n, const Name &name) | 
| Set the value of the index to name. | |
| void | set (Index n, Index m, const Name &name) | 
| void | resetCache () | 
| Reset the value cache from the metadata. | |
| AttributeArray & | array () | 
| Returns a reference to the array held in the Write Handle. | |
| bool | contains (const Name &name) const | 
| Returns whether or not the metadata cache contains a given value. | |
| Index | stride () const | 
| Index | size () const | 
| bool | isUniform () const | 
| bool | hasConstantStride () const | 
| Name | get (Index n, Index m=0) const | 
| void | get (Name &name, Index n, Index m=0) const | 
| const AttributeArray & | array () const | 
| Returns a reference to the array held in the Handle. | |
| Static Public Member Functions | |
| static Ptr | create (AttributeArray &array, const MetaMap &metadata, const bool expand=true) | 
| static Ptr | create (const AttributeArray &array, const MetaMap &metadata, const bool preserveCompression=true) | 
| Protected Attributes | |
| AttributeHandle< Index, StringCodec< false > > | mHandle | 
| const MetaMap & | mMetadata | 
| using Ptr = std::shared_ptr<StringAttributeWriteHandle> | 
| using UniquePtr = std::unique_ptr<StringAttributeWriteHandle> | 
| StringAttributeWriteHandle | ( | AttributeArray & | array, | 
| const MetaMap & | metadata, | ||
| const bool | expand = true ) | 
| 
 | inherited | 
Returns a reference to the array held in the Handle.
| AttributeArray & array | ( | ) | 
Returns a reference to the array held in the Write Handle.
| void collapse | ( | ) | 
Set membership for the whole array and attempt to collapse.
| void collapse | ( | const Name & | name | ) | 
Set membership for the whole array and attempt to collapse.
| name | Name of the String | 
| bool compact | ( | ) | 
Compact the existing array to become uniform if all values are identical.
| bool contains | ( | const Name & | name | ) | const | 
Returns whether or not the metadata cache contains a given value.
| name | Name of the String. | 
| 
 | staticinherited | 
| 
 | static | 
| void expand | ( | bool | fill = true | ) | 
If this array is uniform, replace it with an array of length size().
| fill | if true, assign the uniform value to each element of the array. | 
| void fill | ( | const Name & | name | ) | 
Fill the existing array with the given value.
| 
 | inlineinherited | 
| 
 | inlineinherited | 
| void resetCache | ( | ) | 
Reset the value cache from the metadata.
| 
 | inlineinherited | 
| 
 | inlineinherited | 
| 
 | protectedinherited | 
| 
 | protectedinherited |