ImFusion SDK 4.3
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 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< CustomPropertyElementBaseclone (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
 
CustomPropertyElementBaseoperator= (const CustomPropertyElementBase &other) override
 
bool operator== (const CustomPropertyElementBase &other) const override
 
- Public Member Functions inherited from CustomPropertyElementBase
 CustomPropertyElementBase (bool valid=false)
 
bool valid () const
 

Additional Inherited Members

- Protected Attributes inherited from CustomPropertyElementBase
bool m_valid = false
 

Member Function Documentation

◆ clone()

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

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

Implements CustomPropertyElementBase.

◆ operator=()

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

Reimplemented from CustomPropertyElementBase.

◆ operator==()

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

Reimplemented from CustomPropertyElementBase.


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