HDK
|
#include <AttributeArray.h>
Public Types | |
using | Handle = AttributeHandle< ValueType, CodecType > |
using | Ptr = std::shared_ptr< Handle > |
using | UniquePtr = std::unique_ptr< Handle > |
Public Member Functions | |
AttributeHandle (const AttributeArray &array, const bool collapseOnDestruction=true) | |
AttributeHandle (const AttributeHandle &)=default | |
AttributeHandle & | operator= (const AttributeHandle &)=default |
virtual | ~AttributeHandle () |
Index | stride () const |
Index | size () const |
bool | isUniform () const |
bool | hasConstantStride () const |
ValueType | get (Index n, Index m=0) const |
const AttributeArray & | array () const |
Static Public Member Functions | |
static Ptr | create (const AttributeArray &array, const bool collapseOnDestruction=true) |
Protected Types | |
using | GetterPtr = ValueType(*)(const AttributeArray *array, const Index n) |
using | SetterPtr = void(*)(AttributeArray *array, const Index n, const ValueType &value) |
using | ValuePtr = void(*)(AttributeArray *array, const ValueType &value) |
Protected Member Functions | |
Index | index (Index n, Index m) const |
Protected Attributes | |
const AttributeArray * | mArray |
GetterPtr | mGetter |
SetterPtr | mSetter |
ValuePtr | mCollapser |
ValuePtr | mFiller |
Friends | |
class | ::TestAttributeArray |
AttributeHandles provide access to specific TypedAttributeArray methods without needing to know the compression codec, however these methods also incur the cost of a function pointer
Definition at line 832 of file AttributeArray.h.
|
protected |
Definition at line 840 of file AttributeArray.h.
using openvdb::OPENVDB_VERSION_NAME::points::AttributeHandle< ValueType, CodecType >::Handle = AttributeHandle<ValueType, CodecType> |
Definition at line 835 of file AttributeArray.h.
using openvdb::OPENVDB_VERSION_NAME::points::AttributeHandle< ValueType, CodecType >::Ptr = std::shared_ptr<Handle> |
Definition at line 836 of file AttributeArray.h.
|
protected |
Definition at line 841 of file AttributeArray.h.
using openvdb::OPENVDB_VERSION_NAME::points::AttributeHandle< ValueType, CodecType >::UniquePtr = std::unique_ptr<Handle> |
Definition at line 837 of file AttributeArray.h.
|
protected |
Definition at line 842 of file AttributeArray.h.
openvdb::OPENVDB_VERSION_NAME::points::AttributeHandle< ValueType, CodecType >::AttributeHandle | ( | const AttributeArray & | array, |
const bool | collapseOnDestruction = true |
||
) |
Definition at line 2115 of file AttributeArray.h.
|
default |
|
virtual |
Definition at line 2143 of file AttributeArray.h.
const AttributeArray & openvdb::OPENVDB_VERSION_NAME::points::AttributeHandle< ValueType, CodecType >::array | ( | ) | const |
Definition at line 2170 of file AttributeArray.h.
|
static |
Definition at line 2108 of file AttributeArray.h.
ValueType openvdb::OPENVDB_VERSION_NAME::points::AttributeHandle< ValueType, CodecType >::get | ( | Index | n, |
Index | m = 0 |
||
) | const |
Definition at line 2185 of file AttributeArray.h.
bool openvdb::OPENVDB_VERSION_NAME::points::AttributeHandle< ValueType, CodecType >::hasConstantStride | ( | ) | const |
Definition at line 2217 of file AttributeArray.h.
|
protected |
Definition at line 2177 of file AttributeArray.h.
bool openvdb::OPENVDB_VERSION_NAME::points::AttributeHandle< ValueType, CodecType >::isUniform | ( | ) | const |
Definition at line 2211 of file AttributeArray.h.
|
default |
|
inline |
Definition at line 855 of file AttributeArray.h.
|
inline |
Definition at line 854 of file AttributeArray.h.
|
friend |
Definition at line 875 of file AttributeArray.h.
|
protected |
Definition at line 867 of file AttributeArray.h.
|
protected |
Definition at line 871 of file AttributeArray.h.
|
protected |
Definition at line 872 of file AttributeArray.h.
|
protected |
Definition at line 869 of file AttributeArray.h.
|
protected |
Definition at line 870 of file AttributeArray.h.