ImFusion SDK 4.3
CustomProperty< T > Class Template Reference

#include <ImFusion/Mesh/MeshCustomProperties.h>

Interface for a custom typed property, allowing access to the values at individual elements. More...

+ Inheritance diagram for CustomProperty< T >:

Detailed Description

template<typename T>
class ImFusion::CustomProperty< T >

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
 
CustomPropertyElementBaseelement (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.
 
- Public Member Functions inherited from CustomPropertyBase
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)
 
- Protected Member Functions inherited from NotCopyable
 NotCopyable (NotCopyable &&) noexcept=default
 
NotCopyableoperator= (NotCopyable &&) noexcept=default
 
 NotCopyable (const NotCopyable &)=delete
 
NotCopyableoperator= (const NotCopyable &)=delete
 

Protected Attributes

CustomPropertyDescriptor< T > m_descriptor
 
std::vector< CustomPropertyElement< T > > & m_data
 

Member Function Documentation

◆ element()

template<typename T>
CustomPropertyElementBase & element ( size_t idx) const
overridevirtual

Untyped access to the property of vertex idx.

Implements CustomPropertyBase.

◆ name()

template<typename T>
std::string name ( ) const
overridevirtual

Returns name that uniquely identifies the property on this mesh.

Implements CustomPropertyBase.


The documentation for this class was generated from the following file:
Search Tab / S to search, Esc to close