Material Definition Language API nvidia_logo_transpbg.gif Up
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
set_get.h File Reference

Helper functions to set/get values of mi::IData. More...

Go to the source code of this file.

Namespaces

 mi
 Common namespace for APIs of NVIDIA Advanced Rendering Center GmbH.
 

Constant Groups

 mi
 Common namespace for APIs of NVIDIA Advanced Rendering Center GmbH.
 

Functions

template<class T >
mi::Sint32 mi::set_value (mi::IData *data, const T &value)
 Simplifies setting the value of mi::IData from the corresponding classes from the base and math API. More...
 
mi::Sint32 mi::set_value (mi::IData *data, const char *value)
 This specialization handles mi::IString and mi::IRef. More...
 
mi::Sint32 mi::set_value (mi::IData *data, const std::string &value)
 This specialization handles mi::IString and mi::IRef. More...
 
mi::Sint32 mi::set_value (mi::IData *data, const mi::base::Uuid &value)
 This specialization handles mi::IUuid. More...
 
template<class T , Size DIM>
mi::Sint32 mi::set_value (mi::IData *data, const mi::math::Vector< T, DIM > &value)
 This specialization handles the vector specializations of mi::ICompound. More...
 
template<class T , Size ROW, Size COL>
mi::Sint32 mi::set_value (mi::IData *data, const mi::math::Matrix< T, ROW, COL > &value)
 This specialization handles the matrix specializations of mi::ICompound. More...
 
mi::Sint32 mi::set_value (mi::IData *data, const mi::Color &value)
 This specialization handles mi::IColor and mi::IColor3. More...
 
mi::Sint32 mi::set_value (mi::IData *data, const mi::Spectrum &value)
 This specialization handles mi::ISpectrum. More...
 
mi::Sint32 mi::set_value (mi::IData *data, const mi::Bbox3 &value)
 This specialization handles mi::IBbox3. More...
 
template<class T >
mi::Sint32 mi::set_value (mi::IData *data, mi::Size index, const T &value)
 This variant handles elements of collections identified via an additional index. More...
 
template<class T >
mi::Sint32 mi::set_value (mi::IData *data, const char *key, const T &value)
 This variant handles elements of collections identified via an additional key. More...
 
template<class T >
mi::Sint32 mi::get_value (const mi::IData *data, T &value)
 Simplifies reading the value of mi::IData into the corresponding classes from the base and math API. More...
 
mi::Sint32 mi::get_value (const mi::IData *data, const char *&value)
 This specialization handles mi::IString and mi::IRef. More...
 
mi::Sint32 mi::get_value (const mi::IData *data, mi::base::Uuid &value)
 This specialization handles mi::IUuid. More...
 
template<class T , Size DIM>
mi::Sint32 mi::get_value (const mi::IData *data, mi::math::Vector< T, DIM > &value)
 This specialization handles the vector specializations of mi::ICompound. More...
 
template<class T , Size ROW, Size COL>
mi::Sint32 mi::get_value (const mi::IData *data, mi::math::Matrix< T, ROW, COL > &value)
 This specialization handles the matrix specializations of mi::ICompound. More...
 
mi::Sint32 mi::get_value (const mi::IData *data, mi::Color &value)
 This specialization handles mi::IColor and mi::IColor3. More...
 
mi::Sint32 mi::get_value (const mi::IData *data, mi::Spectrum &value)
 This specialization handles mi::ISpectrum. More...
 
mi::Sint32 mi::get_value (const mi::IData *data, mi::Bbox3 &value)
 This specialization handles mi::IBbox3. More...
 
template<class T >
mi::Sint32 mi::get_value (const mi::IData *data, mi::Size index, T &value)
 This variant handles elements of collections identified via an additional index. More...
 
template<class T >
mi::Sint32 mi::get_value (const mi::IData *data, const char *key, T &value)
 This variant handles elements of collections identified via an additional key. More...
 
template<class T >
mi::Sint32 mi::set_value (mi::neuraylib::IAttribute_set *attribute_set, const char *name, const T &value)
 Simplifies setting the value of an attribute from the corresponding classes from the base and math API. More...
 
template<class T >
mi::Sint32 mi::set_value (mi::neuraylib::IAttribute_set *attribute_set, const char *name, mi::Size index, const T &value)
 Simplifies setting the value of an attribute from the corresponding classes from the base and math API (variant with an index for collections). More...
 
template<class T >
mi::Sint32 mi::set_value (mi::neuraylib::IAttribute_set *attribute_set, const char *name, const char *key, const T &value)
 Simplifies setting the value of an attribute from the corresponding classes from the base and math API (variant with a key for collections). More...
 
template<class T >
mi::Sint32 mi::get_value (const mi::neuraylib::IAttribute_set *attribute_set, const char *name, T &value)
 Simplifies reading the value of an attribute into the corresponding classes from the base and math API. More...
 
template<class T >
mi::Sint32 mi::get_value (const mi::neuraylib::IAttribute_set *attribute_set, const char *name, mi::Size index, T &value)
 Simplifies reading the value of an attribute into the corresponding classes from the base and math API (variant with an index for collections). More...
 
template<class T >
mi::Sint32 mi::get_value (const mi::neuraylib::IAttribute_set *attribute_set, const char *name, const char *key, T &value)
 Simplifies reading the value of an attribute into the corresponding classes from the base and math API (variant with a key for collections). More...
 

Detailed Description

Helper functions to set/get values of mi::IData.