ImFusion C++ SDK 4.4.0
ImFusion::CustomPropertyElement< T > Class Template Reference

#include <ImFusion/Mesh/MeshCustomProperties.h>

Wrapper for the value of a custom property on a specific element, with conversions to and from the underlying data type. More...

Inheritance diagram for ImFusion::CustomPropertyElement< T >:

Detailed Description

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

Wrapper for the value of a custom property on a specific element, with conversions to and from the underlying data type.

Public Member Functions

 CustomPropertyElement (const T &data)
 CustomPropertyElement (const CustomPropertyElement< T > &other)
CustomPropertyElement< T > & operator= (const CustomPropertyElement< T > &other)
bool operator== (const CustomPropertyElement< T > &other) const
bool operator== (const T &value) const
std::unique_ptr< CustomPropertyElementBase > clone (bool withData=true) const override
 Creates a copy of this object. If not cloning withData, the result will always be invalid.
T & operator= (const T &other)
 operator T () const
CustomPropertyElementBase & operator= (const CustomPropertyElementBase &other) override
bool operator== (const CustomPropertyElementBase &other) const override
Public Member Functions inherited from ImFusion::CustomPropertyElementBase
 CustomPropertyElementBase (bool valid=false)
bool valid () const

Additional Inherited Members

Protected Attributes inherited from ImFusion::CustomPropertyElementBase
bool m_valid = false

Member Function Documentation

◆ clone()

template<typename T>
std::unique_ptr< CustomPropertyElementBase > ImFusion::CustomPropertyElement< T >::clone ( bool withData = true) const
overridevirtual

Creates a copy of this object. If not cloning withData, the result will always be invalid.

Implements ImFusion::CustomPropertyElementBase.

◆ operator=()

template<typename T>
CustomPropertyElementBase & ImFusion::CustomPropertyElement< T >::operator= ( const CustomPropertyElementBase & other)
overridevirtual

◆ operator==()

template<typename T>
bool ImFusion::CustomPropertyElement< T >::operator== ( const CustomPropertyElementBase & other) const
overridevirtual

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