MeshLib Documentation
Loading...
Searching...
No Matches
MR::FeatureObjectSharedProperty Struct Reference

#include <MRFeatureObject.h>

Public Member Functions

template<typename T , typename C , typename SetterFunc >
 FeatureObjectSharedProperty (std::string name, FeaturePropertyKind kind, T(C::*m_getter)(ViewportId) const, SetterFunc m_setter)
 

Public Attributes

std::string propertyName
 
FeaturePropertyKind kind
 
std::function< FeaturesPropertyTypesVariant(const FeatureObject *objectToInvoke, ViewportId id)> getter
 
std::function< void(const FeaturesPropertyTypesVariant &, FeatureObject *objectToInvoke, ViewportId id)> setter
 

Constructor & Destructor Documentation

◆ FeatureObjectSharedProperty()

template<typename T , typename C , typename SetterFunc >
MR::FeatureObjectSharedProperty::FeatureObjectSharedProperty ( std::string name,
FeaturePropertyKind kind,
T(C::* m_getter )(ViewportId) const,
SetterFunc m_setter )
inline

Member Data Documentation

◆ getter

std::function<FeaturesPropertyTypesVariant( const FeatureObject* objectToInvoke, ViewportId id )> MR::FeatureObjectSharedProperty::getter

◆ kind

FeaturePropertyKind MR::FeatureObjectSharedProperty::kind

◆ propertyName

std::string MR::FeatureObjectSharedProperty::propertyName

◆ setter

std::function<void( const FeaturesPropertyTypesVariant&, FeatureObject* objectToInvoke, ViewportId id )> MR::FeatureObjectSharedProperty::setter

The documentation for this struct was generated from the following file: