Material Definition Language API nvidia_logo_transpbg.gif Up
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
mi::neuraylib::IValue_color Class Referenceabstract

A value of type color. More...

Inheritance diagram for mi::neuraylib::IValue_color:
mi::base::Interface_declare< 0x3bb9bf46, 0x1cbb, 0x4460, 0xbe, 0x27, 0x10, 0xf5, 0x71, 0x61, 0x96, 0xa2, neuraylib::IValue_compound > mi::neuraylib::IValue_compound mi::base::Interface_declare< 0xdabc8fe3, 0x5c70, 0x4ef0, 0xa2, 0xf7, 0x34, 0x30, 0xb5, 0x67, 0xdc, 0x75, neuraylib::IValue > mi::neuraylib::IValue mi::base::Interface_declare< 0xbf837f4a, 0x9034, 0x4f32, 0xaf, 0x5c, 0x75, 0xb3, 0x67, 0x64, 0x53, 0x23 > mi::base::IInterface

Public Member Functions

virtual const IType_colorget_type () const =0
 Returns the type of this value. More...
 
virtual const IValue_floatget_value (Size index) const =0
 Returns the value at index, or NULL if index is out of bounds. More...
 
virtual IValue_floatget_value (Size index)=0
 Returns the value at index, or NULL if index is out of bounds. More...
 
virtual Sint32 set_value (Size index, IValue_float *value)=0
 Sets the value at index. More...
 

Static Public Attributes

static const Kind s_kind = VK_COLOR
 The kind of this subclass. More...
 

Additional Inherited Members

- Public Types inherited from mi::base::Interface_declare< 0x3bb9bf46, 0x1cbb, 0x4460, 0xbe, 0x27, 0x10, 0xf5, 0x71, 0x61, 0x96, 0xa2, neuraylib::IValue_compound >
typedef Interface_declare< id1,
id2, id3, id4, id5, id6, id7,
id8, id9, id10, id11,
neuraylib::IValue_compound
Self
 Own type. More...
 
typedef Uuid_t< id1, id2, id3,
id4, id5, id6, id7, id8, id9,
id10, id11 > 
IID
 Declares the interface ID (IID) of this interface. More...
 
- Static Public Member Functions inherited from mi::base::Interface_declare< 0x3bb9bf46, 0x1cbb, 0x4460, 0xbe, 0x27, 0x10, 0xf5, 0x71, 0x61, 0x96, 0xa2, neuraylib::IValue_compound >
static bool compare_iid (const Uuid &iid)
 Compares the interface ID iid against the interface ID of this interface and of its ancestors. More...
 

Detailed Description

A value of type color.

Member Function Documentation

virtual const IType_color* mi::neuraylib::IValue_color::get_type ( ) const
pure virtual

Returns the type of this value.

Implements mi::neuraylib::IValue_compound.

virtual const IValue_float* mi::neuraylib::IValue_color::get_value ( Size  index) const
pure virtual

Returns the value at index, or NULL if index is out of bounds.

Implements mi::neuraylib::IValue_compound.

virtual IValue_float* mi::neuraylib::IValue_color::get_value ( Size  index)
pure virtual

Returns the value at index, or NULL if index is out of bounds.

Implements mi::neuraylib::IValue_compound.

virtual Sint32 mi::neuraylib::IValue_color::set_value ( Size  index,
IValue_float value 
)
pure virtual

Sets the value at index.

Returns
  • 0: Success.
  • -1: Invalid parameter (NULL pointer).
  • -2: index is out of bounds.

Member Data Documentation

const Kind mi::neuraylib::IValue_color::s_kind = VK_COLOR
static

The kind of this subclass.