Class Ifc4x2::IfcStyledItem¶
Defined in File Ifc4x2.h
Nested Relationships¶
This class is a nested type of Struct Ifc4x2.
Inheritance Relationships¶
Base Type¶
public Ifc4x2::IfcRepresentationItem
(Class Ifc4x2::IfcRepresentationItem)
Class Documentation¶
-
class
Ifc4x2
::
IfcStyledItem
: public Ifc4x2::IfcRepresentationItem¶ Definition from ISO/CD 10303-46:1992: The styled item is an assignment of style for presentation to a geometric representation item as it is used in a representation.
NOTE Corresponding ISO 10303 name: styled_item. Please refer to ISO/IS 10303-46:1994 for the final definition of the formal standard.
The IfcStyledItem holds presentation style information for products, either explicitly for an IfcGeometricRepresentationItem being part of an IfcShapeRepresentation assigned to a product, or by assigning presentation information to IfcMaterial being assigned as other representation for a product.
If the IfcStyledItem is used within a reference from an IfcProductDefinitionShape then one Item shall be provided. If the IfcStyledItem is used within a reference from an IfcMaterialDefinitionRepresentation then no Item shall be provided.
HISTORY New entity in IFC2x2.
IFC2x2 Addendum 1 CHANGE The entity IfcStyledItem has been made non abstract and the attribute Name added.
IFC2x3 CHANGE The attribute Item has been made optional, upward compatibility for file based exchange is guaranteed.
IFC2x4 CHANGE The subtype IfcAnnotationOccurrence and its subtypes are deleted. Use IfcStyledItem for all instantiations. The data type of Styles has been changed to IfcStyleAssignmentSelect
Use Definition
Figure 293 illustrates use of IfcStyledItem for the two usage examples:
As a presentation for a geometric representation item As a presentation for a material definition
NOTE The new IfcStyleAssignmentSelect allows the direct assignment styles, such as IfcCurveStyle, IfcSurfaceStyle without using the intermediate IfcPresentationStyleAssignment
Figure 293 — Styled item
Public Types
-
typedef IfcTemplatedEntityList<IfcStyledItem>
list
¶
Public Functions
-
bool
hasItem
() const¶ Whether the optional attribute Item is defined for this IfcStyledItem.
-
::Ifc4x2::IfcRepresentationItem *
Item
() const¶ A geometric representation item to which the style is assigned.
IFC2x Edition 2 Addendum 2 CHANGE The attribute Item has been made optional. Upward compatibility for file based exchange is guaranteed.
-
void
setItem
(::Ifc4x2::IfcRepresentationItem *v)¶
-
IfcEntityList::ptr
Styles
() const¶ Representation styles which are assigned, either to an geometric representation item, or to a material definition.
IFC2x4 CHANGE The data type has been changed to IfcStyleAssignmentSelect with upward compatibility for file based exchange.
NOTE Only the select item IfcPresentationStyle shall be used from IFC2x4 onwards, the IfcPresentationStyleAssignment has been deprecated.
-
void
setStyles
(IfcEntityList::ptr v)¶
-
bool
hasName
() const¶ Whether the optional attribute Name is defined for this IfcStyledItem.
-
std::string
Name
() const¶ The word, or group of words, by which the styled item is referred to.
-
void
setName
(std::string v)¶
-
IfcStyledItem
(IfcEntityInstanceData *e)¶
-
IfcStyledItem
(::Ifc4x2::IfcRepresentationItem *v1_Item, IfcEntityList::ptr v2_Styles, boost::optional<std::string> v3_Name)¶
-
typedef IfcTemplatedEntityList<IfcStyledItem>