ImFusion SDK 4.3
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 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 & 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 CustomProperty< T >.

◆ clone()

virtual void 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 CustomFaceProperty< T >, and CustomVertexProperty< T >.

◆ name()

virtual std::string name ( ) const
pure virtual

Returns name that uniquely identifies the property on this mesh.

Implemented in CustomProperty< T >.


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