Class Ifc4::IfcColourRgb¶
Defined in File Ifc4.h
Nested Relationships¶
This class is a nested type of Struct Ifc4.
Inheritance Relationships¶
Base Type¶
public Ifc4::IfcColourSpecification
(Class Ifc4::IfcColourSpecification)
Class Documentation¶
-
class
Ifc4
::
IfcColourRgb
: public Ifc4::IfcColourSpecification¶ Definition from ISO/CD 10303-46:1992: A colour rgb as a subtype of colour specifications is defined by three colour component values for red, green, and blue in the RGB colour model.
NOTE In contrary to the usual value range of colour components being integer from 0…255, the definition from ISO10303-46 defines the colour components as real from 0.0 … 1.0. Applications need to execute this conversion before populating the colour RGB values.
NOTE Corresponding STEP name: colour_rgb. The name attribute has been omitted, the data type for the reg, green and blue parts is IfcNormalizedRatioMeasure, that already includes the range restrictions for the values. Please refer to ISO/IS 10303-46:1994, p. 138 for the final definition of the formal standard.
HISTORY New entity in IFC2x2.
Public Types
-
typedef IfcTemplatedEntityList<IfcColourRgb>
list
¶
Public Functions
-
double
Red
() const¶ The intensity of the red colour component.
NOTE The colour component value is given within the range of 0..1, and not within the range of 0..255 as otherwise usual.
-
void
setRed
(double v)¶
-
double
Green
() const¶ The intensity of the green colour component.
NOTE The colour component value is given within the range of 0..1, and not within the range of 0..255 as otherwise usual.
-
void
setGreen
(double v)¶
-
double
Blue
() const¶ The intensity of the blue colour component.
NOTE The colour component value is given within the range of 0..1, and not within the range of 0..255 as otherwise usual.
-
void
setBlue
(double v)¶
-
IfcColourRgb
(IfcEntityInstanceData *e)¶
-
IfcColourRgb
(boost::optional<std::string> v1_Name, double v2_Red, double v3_Green, double v4_Blue)¶
-
typedef IfcTemplatedEntityList<IfcColourRgb>