8.12.3.9 IfcDraughtingPreDefinedColour(制图预定义颜色)
8.12.3.9.1 语义定义(Semantic definition)
制图预定义颜色是一种通过名称来识别颜色的预定义颜色。允许的名称包括:
- 'black'(黑色)
- 'red'(红色)
- 'green'(绿色)
- 'blue'(蓝色)
- 'yellow'(黄色)
- 'magenta'(洋红色)
- 'cyan'(青色)
- 'white'(白色)
- 'by layer'(按图层)
下表列出了与 IfcDraughtingPreDefinedColour 所给名称关联的RGB值:
| 颜色名称 | 红色 | 绿色 | 蓝色 |
|---|---|---|---|
| black(黑色) | 0 | 0 | 0 |
| red(红色) | 1.0 | 0 | 0 |
| green(绿色) | 0 | 1.0 | 0 |
| blue(蓝色) | 0 | 0 | 1.0 |
| yellow(黄色) | 1.0 | 1.0 | 0 |
| magenta(洋红色) | 1.0 | 0 | 1.0 |
| cyan(青色) | 0 | 1.0 | 1.0 |
| white(白色) | 1.0 | 1.0 | 1.0 |
如果颜色名称为'by layer'(按图层),则从 IfcPresentationLayerWithStyle 获取颜色值。
非正式命题
- 仅当使用颜色定义的几何表示项与 IfcPresentationLayerWithStyle 存在关联,并且该 IfcPresentationLayerWithStyle 实例具有有效的 IfcCurveStyle 或 IfcSurfaceStyle 颜色定义(根据适用情况)时,才应插入'by layer'(按图层)值。
8.12.3.9.2 实体继承(Entity inheritance)
-
- IfcPreDefinedItem
- IfcColourRgbList
- IfcColourSpecification
- IfcCurveStyleFont
- IfcCurveStyleFontAndScaling
- IfcCurveStyleFontPattern
- IfcIndexedColourMap
- IfcSurfaceStyleLighting
- IfcSurfaceStyleRefraction
- IfcSurfaceStyleShading
- IfcSurfaceStyleWithTextures
- IfcSurfaceTexture
- IfcTextStyleForDefinedFont
- IfcTextStyleTextModel
- IfcTextureCoordinate
- IfcTextureVertex
- IfcTextureVertexList
8.12.3.9.3 特性(Attributes)
| # | 特性(Attributes) | 类型 | 描述 |
|---|---|---|---|
| IfcPreDefinedItem (1) | |||
| 1 | Name | IfcLabel |
用于标识预定义项的字符串。该字符串的允许值在子类型级别声明。 |
8.12.3.9.4 形式化命题(Formal propositions)
| 名称 | 描述 |
|---|---|
| PreDefinedColourNames |
预定义项的继承名称应仅具有以下单词之一的值。 |
|
|
8.12.3.9.5 形式化表示(Formal representation)
ENTITY IfcDraughtingPreDefinedColour
SUBTYPE OF (IfcPreDefinedColour);
WHERE
PreDefinedColourNames : SELF\IfcPreDefinedItem.Name IN ['black','red','green','blue','yellow',
'magenta','cyan','white','by layer'];
END_ENTITY;