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 834 of file AttributeArray.h.
|
protected |
Definition at line 842 of file AttributeArray.h.
using openvdb::OPENVDB_VERSION_NAME::points::AttributeHandle< ValueType, CodecType >::Handle = AttributeHandle<ValueType, CodecType> |
Definition at line 837 of file AttributeArray.h.
using openvdb::OPENVDB_VERSION_NAME::points::AttributeHandle< ValueType, CodecType >::Ptr = std::shared_ptr<Handle> |
Definition at line 838 of file AttributeArray.h.
|
protected |
Definition at line 843 of file AttributeArray.h.
using openvdb::OPENVDB_VERSION_NAME::points::AttributeHandle< ValueType, CodecType >::UniquePtr = std::unique_ptr<Handle> |
Definition at line 839 of file AttributeArray.h.
|
protected |
Definition at line 844 of file AttributeArray.h.
openvdb::OPENVDB_VERSION_NAME::points::AttributeHandle< ValueType, CodecType >::AttributeHandle | ( | const AttributeArray & | array, |
const bool | collapseOnDestruction = true |
||
) |
Definition at line 2117 of file AttributeArray.h.
|
default |
|
virtual |
Definition at line 2145 of file AttributeArray.h.
const AttributeArray & openvdb::OPENVDB_VERSION_NAME::points::AttributeHandle< ValueType, CodecType >::array | ( | ) | const |
Definition at line 2172 of file AttributeArray.h.
|
static |
Definition at line 2110 of file AttributeArray.h.
ValueType openvdb::OPENVDB_VERSION_NAME::points::AttributeHandle< ValueType, CodecType >::get | ( | Index | n, |
Index | m = 0 |
||
) | const |
Definition at line 2187 of file AttributeArray.h.
bool openvdb::OPENVDB_VERSION_NAME::points::AttributeHandle< ValueType, CodecType >::hasConstantStride | ( | ) | const |
Definition at line 2219 of file AttributeArray.h.
|
protected |
Definition at line 2179 of file AttributeArray.h.
bool openvdb::OPENVDB_VERSION_NAME::points::AttributeHandle< ValueType, CodecType >::isUniform | ( | ) | const |
Definition at line 2213 of file AttributeArray.h.
|
default |
|
inline |
Definition at line 857 of file AttributeArray.h.
|
inline |
Definition at line 856 of file AttributeArray.h.
|
friend |
Definition at line 877 of file AttributeArray.h.
|
protected |
Definition at line 869 of file AttributeArray.h.
|
protected |
Definition at line 873 of file AttributeArray.h.
|
protected |
Definition at line 874 of file AttributeArray.h.
|
protected |
Definition at line 871 of file AttributeArray.h.
|
protected |
Definition at line 872 of file AttributeArray.h.