MDL SDK API nvidia_logo_transpbg.gif Up
set_get.h File Reference

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

Go to the source code of this file.

Namespaces

namespace  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::set_value (mi::IData *data, const T *values, mi::Size n)
 This variant handles entire arrays (as C-like array). More...
 
template<class T>
mi::Sint32 mi::set_value (mi::IData *data, const std::vector<T> &values)
 This variant handles entire arrays (as std::vector). 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::get_value (const mi::IData *data, T *values, mi::Size n)
 This variant handles entire arrays (as C-like arrays). More...
 
template<class T>
mi::Sint32 mi::get_value (const mi::IData *data, std::vector<T> &values)
 This variant handles entire arrays (as std::vector). More...
 
mi::Sint32 mi::get_value (const mi::IData *data, std::string &value)
 This variant handles strings as std::string. 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::set_value (mi::neuraylib::IAttribute_set *attribute_set, const char *name, const T *values, mi::Size n)
 Simplifies setting the value of an attribute from the corresponding classes from the base and math API (variant for entire arrays as C-like arrays). More...
 
template<class T>
mi::Sint32 mi::set_value (mi::neuraylib::IAttribute_set *attribute_set, const char *name, const std::vector<T> &values)
 Simplifies setting the value of an attribute from the corresponding classes from the base and math API (variant for entire arrays as std::vector). 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...
 
template<class T>
mi::Sint32 mi::get_value (const mi::neuraylib::IAttribute_set *attribute_set, const char *name, T *values, mi::Size n)
 Simplifies reading the value of an attribute into the corresponding classes from the base and math API (variant for entire arrays as C-like array). More...
 
template<class T>
mi::Sint32 mi::get_value (const mi::neuraylib::IAttribute_set *attribute_set, const char *name, std::vector<T> &values)
 Simplifies reading the value of an attribute into the corresponding classes from the base and math API (variant for entire arrays as std::vector). More...
 

Detailed Description

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