![]() |
ImFusion SDK 4.3
|
#include <ImFusion/Mesh/MeshCustomProperties.h>
Interface for a custom typed property, allowing access to the values at individual elements. More...
Interface for a custom typed property, allowing access to the values at individual elements.
Public Member Functions | |
CustomPropertyElement< T > & | operator[] (size_t idx) |
Typed access to the property of vertex idx. | |
const CustomPropertyElement< T > & | operator[] (size_t idx) const |
CustomPropertyElementBase & | element (size_t idx) const override |
Untyped access to the property of vertex idx. | |
std::string | name () const override |
Returns name that uniquely identifies the property on this mesh. | |
![]() | |
virtual void | clone (Mesh &meshToCloneTo) const =0 |
Creates a property of the same type and storage name on another mesh, does not (and indeed cannot possibly) copy any data. | |
Protected Member Functions | |
CustomProperty (std::vector< CustomPropertyElement< T > > &data, const std::string &name) | |
![]() | |
NotCopyable (NotCopyable &&) noexcept=default | |
NotCopyable & | operator= (NotCopyable &&) noexcept=default |
NotCopyable (const NotCopyable &)=delete | |
NotCopyable & | operator= (const NotCopyable &)=delete |
Protected Attributes | |
CustomPropertyDescriptor< T > | m_descriptor |
std::vector< CustomPropertyElement< T > > & | m_data |
|
overridevirtual |
Untyped access to the property of vertex idx.
Implements CustomPropertyBase.
|
overridevirtual |
Returns name that uniquely identifies the property on this mesh.
Implements CustomPropertyBase.