ImFusion C++ SDK 4.4.0
ImFusion::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 ImFusion::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 ImFusion::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 ImFusion::Utils::NotCopyable
 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

Member Function Documentation

◆ element()

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

Untyped access to the property of vertex idx.

Implements ImFusion::CustomPropertyBase.

◆ name()

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

Returns name that uniquely identifies the property on this mesh.

Implements ImFusion::CustomPropertyBase.


The documentation for this class was generated from the following file:
  • ImFusion/Mesh/MeshCustomProperties.h
Search Tab / S to search, Esc to close