ImFusion C++ SDK 4.4.0
ImFusion::CustomPropertyBase Class Referenceabstract

#include <ImFusion/Mesh/MeshCustomProperties.h>

Basic interface for a custom property, i.e. a collection of values on different elements (vertices/faces). More...

Inheritance diagram for ImFusion::CustomPropertyBase:

Detailed Description

Basic interface for a custom property, i.e. a collection of values on different elements (vertices/faces).

Public Member Functions

virtual CustomPropertyElementBaseelement (size_t idx) const =0
 Untyped access to the property at element idx, for cases where you do not need to interpret the data (e.g. just memcpy).
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.
virtual std::string name () const =0
 Returns name that uniquely identifies the property on this mesh.

Member Function Documentation

◆ element()

virtual CustomPropertyElementBase & ImFusion::CustomPropertyBase::element ( size_t idx) const
pure virtual

Untyped access to the property at element idx, for cases where you do not need to interpret the data (e.g. just memcpy).

Implemented in ImFusion::CustomProperty< T >.

◆ clone()

virtual void ImFusion::CustomPropertyBase::clone ( Mesh & meshToCloneTo) const
pure virtual

Creates a property of the same type and storage name on another mesh, does not (and indeed cannot possibly) copy any data.

Implemented in ImFusion::CustomFaceProperty< T >, and ImFusion::CustomVertexProperty< T >.

◆ name()

virtual std::string ImFusion::CustomPropertyBase::name ( ) const
pure virtual

Returns name that uniquely identifies the property on this mesh.

Implemented in ImFusion::CustomProperty< T >.


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