IfcColourRgb

BACnet MVD

#### IfcColourRgb

Natural language names

| RGB-Farbe
| Colour Rgb
| Couleur RGB

Change log

Item | SPF | XML | Change | Description
--- | --- | --- | --- | ---
IFC2x3 to IFC4
IfcColourRgb |  |  | MOVED | Schema changed from IFCPRESENTATIONRESOURCE to IFCPRESENTATIONAPPEARANCERESOURCE.

##### Semantic definitions at the entity

Entity definition

> NOTE Definition according to 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.

Attribute definitions

# | Attribute | Type | Cardinality | Description | B
--- | --- | --- | --- | --- | ---

2

Red

IfcNormalisedRatioMeasure

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.

X

X

3

Green

IfcNormalisedRatioMeasure

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.

X

X

4

Blue

IfcNormalisedRatioMeasure

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.

X

X

##### Inherited definitions from supertypes

Entity inheritance
Attribute inheritance

# | Attribute | Type | Cardinality | Description | B
--- | --- | --- | --- | --- | ---
IfcPresentationItem
IfcColourSpecification

1

Name

IfcLabel

?

Optional name given to a particular colour specification in addition to the colour components (like the RGB values).

> EXAMPLE Names of a industry colour classification, such as RAL.

> IFC2x3 CHANGE Attribute added.

X

X

IfcColourRgb

2

Red

IfcNormalisedRatioMeasure

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.

X

X

3

Green

IfcNormalisedRatioMeasure

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.

X

X

4

Blue

IfcNormalisedRatioMeasure

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.

X

X

##### Formal representations

XML Specification
`<xs:element name="IfcColourRgb" type="ifc:IfcColourRgb" substitutionGroup="ifc:IfcColourSpecification" nillable="true"/>
<xs:complexType name="IfcColourRgb">
<xs:complexContent>
<xs:extension base="ifc:IfcColourSpecification">
<xs:attribute name="Red" type="ifc:IfcNormalisedRatioMeasure" use="optional"/>
<xs:attribute name="Green" type="ifc:IfcNormalisedRatioMeasure" use="optional"/>
<xs:attribute name="Blue" type="ifc:IfcNormalisedRatioMeasure" use="optional"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
`
EXPRESS Specification
`ENTITY IfcColourRgb
SUBTYPE OF (IfcColourSpecification);
Red : IfcNormalisedRatioMeasure;
Green : IfcNormalisedRatioMeasure;
Blue : IfcNormalisedRatioMeasure;
END_ENTITY;

EXPRESS-G diagram

`

References: IfcSurfaceStyleLighting IfcSurfaceStyleShading IfcColourOrFactor IfcLightSource IfcLightSourceGoniometric

Link to this page