DiCE API nvidia_logo_transpbg.gif Up
icolor.h
Go to the documentation of this file.
1/***************************************************************************************************
2 * Copyright 2023 NVIDIA Corporation. All rights reserved.
3 **************************************************************************************************/
6
7#ifndef MI_NEURAYLIB_ICOLOR_H
8#define MI_NEURAYLIB_ICOLOR_H
9
10#include <mi/math/color.h>
13
14namespace mi {
15
25class IColor :
26 public base::Interface_declare<0x10a52754,0xa1c7,0x454c,0x8a,0x0b,0x56,0xd4,0xd4,0xdc,0x62,0x18,
27 ICompound>
28{
29public:
31 virtual Color_struct get_value() const = 0;
32
34 virtual void get_value( Color_struct& value) const = 0;
35
37 virtual void set_value( const Color_struct& value) = 0;
38
40
42};
43
49class IColor3 :
50 public base::Interface_declare<0x1189e839,0x6d86,0x4bac,0xbc,0x72,0xb0,0xc0,0x2d,0xa9,0x3c,0x6c,
51 ICompound>
52{
53public:
57 virtual Color_struct get_value() const = 0;
58
62 virtual void get_value( Color_struct& value) const = 0;
63
67 virtual void set_value( const Color_struct& value) = 0;
68
70
72};
73 // end group mi_neuray_compounds
75
76} // namespace mi
77
78#endif // MI_NEURAYLIB_ICOLOR_H
This interface represents RGB colors.
Definition: icolor.h:52
virtual void get_value(Color_struct &value) const =0
Returns the color represented by this interface.
virtual Color_struct get_value() const =0
Returns the color represented by this interface.
virtual void set_value(const Color_struct &value)=0
Sets the color represented by this interface.
This interface represents RGBA colors.
Definition: icolor.h:28
virtual void get_value(Color_struct &value) const =0
Returns the color represented by this interface.
virtual Color_struct get_value() const =0
Returns the color represented by this interface.
virtual void set_value(const Color_struct &value)=0
Sets the color represented by this interface.
virtual bool get_value(Size row, Size column, bool &value) const =0
Accesses the (row, column)-th element.
virtual bool set_value(Size row, Size column, bool value)=0
Sets the (row, column)-th element to value.
Mixin class template for deriving new interface declarations.
Definition: interface_declare.h:43
Standard RGBA color class with floating point elements and operations.
Compounds type, i.e., vectors, matrices, colors, spectrums, and bounding boxes.
Common namespace for APIs of NVIDIA Advanced Rendering Center GmbH.
Definition: dice.h:89
Generic storage class template for an RGBA color representation storing four floating points elements...
Definition: vector.h:67
Typedefs for types from the math API.