Iray SDK API nvidia_logo_transpbg.gif Up
iparameter.h
Go to the documentation of this file.
1/***************************************************************************************************
2 * Copyright 2024 NVIDIA Corporation. All rights reserved.
3 **************************************************************************************************/
6
7#ifndef MI_NEURAYLIB_IPARAMETER_H
8#define MI_NEURAYLIB_IPARAMETER_H
9
10#include <mi/neuraylib/idata.h>
11
12namespace mi {
13
14class IParameter :
15 public base::Interface_declare<0xbdef76e3,0x465e,0x471c,0xb9,0x70,0x5f,0x2f,0x2d,0xad,0x35,0xd4,
16 IData_simple>
17{
18public:
19 virtual void get_value( Uint32& val) const = 0;
20
21 virtual void set_value( Uint32 val) = 0;
22
23 Uint32 get_value() const { Uint32 value; get_value( value); return value; }
24};
25
26} // namespace mi
27
28#endif // MI_NEURAYLIB_IPARAMETER_H
unsigned int Uint32
32-bit unsigned integer.
Definition: types.h:49
mi::Sint32 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.
Definition: set_get.h:52
mi::Sint32 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.
Definition: set_get.h:267
Types.
Common namespace for APIs of NVIDIA Advanced Rendering Center GmbH.
Definition: neuraylib.h:179