Class Ifc2x3::IfcTextStyle¶
Defined in File Ifc2x3.h
Nested Relationships¶
This class is a nested type of Struct Ifc2x3.
Inheritance Relationships¶
Base Type¶
public Ifc2x3::IfcPresentationStyle
(Class Ifc2x3::IfcPresentationStyle)
Class Documentation¶
-
class
Ifc2x3
::
IfcTextStyle
: public Ifc2x3::IfcPresentationStyle¶ Definition from ISO/CD 10303-46:1992: The text style is a presentation style for annotation text.
The IfcTextStyle provides the text style table for presentation information assigned to text literals. The style is defined by color, text font characteristics, and text box characteristics. The definitions are based upon:
definitions from ISO/IS 10303-46:1994 for (old) vector based and monospace text. definitions from Cascading Style Sheets, level 1, W3C Recommendation 17 Dec 1996, revised 11 Jan 1999, CSS1, for all true type text. The use of the CSS1 definitions is the preferred way to represent text styles.
An IfcTextStyle, when representing (old) vector based and monospace text, is instantiated with:
TextCharacterAppearance:: IfcTextStyleForDefinedFont (with BackgroundColour = NIL) TextStyle:: IfcTextStyleWithBoxCharacteristics TextFontStyle:: IfcDraughtingPreDefinedTextFont or IfcExternallyDefinedTextFont
An IfcTextStyle, when representing (new) true type text, based on CSS1 definitions, is instantiated with:
TextCharacterAppearance:: IfcTextStyleForDefinedFont TextStyle:: IfcTextStyleTextModel TextFontStyle:: IfcTextStyleFontModel
An IfcTextStyle can be assigned to IfcTextLiteral via the IfcPresentationStyleAssignment through an intermediate IfcAnnotationTextOccurrence.
NOTE Corresponding ISO 10303 name: text_style. Please refer to ISO/IS 10303-46:1994 for the final definition of the formal standard. In order to avoid ANDOR subtype relationships, the IfcTextBlockStyleSelect has been introduced that allows the combination of a text style as having box characteristic, and/or having spacing, or having none of those additional properties.
NOTE Corresponding CSS1 definitions are: Font properties (font-family, font-style, font-variant, font-weight, font-size), Color and background properties (color, background-color) and Text properties (word-spacing, letter-spacing, text-decoration, text-transform, text-align, text-indent, line-height).
HISTORY New entity in IFC2x2.
IFC2x3 CHANGE The IfcTextStyle has been changed by adding TextFontStyle and different data types for TextStyle and IfcCharacterStyleSelect.
Public Types
-
typedef IfcTemplatedEntityList<IfcTextStyle>
list
¶
Public Functions
-
bool
hasTextCharacterAppearance
() const¶ Whether the optional attribute TextCharacterAppearance is defined for this IfcTextStyle.
-
::Ifc2x3::IfcCharacterStyleSelect *
TextCharacterAppearance
() const¶ A character style to be used for presented text.
-
void
setTextCharacterAppearance
(::Ifc2x3::IfcCharacterStyleSelect *v)¶
-
bool
hasTextStyle
() const¶ Whether the optional attribute TextStyle is defined for this IfcTextStyle.
-
::Ifc2x3::IfcTextStyleSelect *
TextStyle
() const¶ The style applied to the text block for its visual appearance. It defines the text block characteristics, either for vector based or monospace text fonts (see select item IfcTextStyleWithBoxCharacteristics), or for true type text fonts (see select item IfcTextStyleTextModel.
IFC2x Edition 3 CHANGE The attribute TextBlockStyle has been changed from SET[1:?] to a non-aggregated optional, it has been renamed from TextStyles.
-
void
setTextStyle
(::Ifc2x3::IfcTextStyleSelect *v)¶
-
::Ifc2x3::IfcTextFontSelect *
TextFontStyle
() const¶ The style applied to the text font for its visual appearance. It defines the font family, font style, weight and size.
IFC2x Edition 2 Addendum 2 CHANGE The attribute TextFontStyle is a new attribute attached to IfcTextStyle.
-
void
setTextFontStyle
(::Ifc2x3::IfcTextFontSelect *v)¶
-
IfcTextStyle
(IfcEntityInstanceData *e)¶
-
IfcTextStyle
(boost::optional<std::string> v1_Name, ::Ifc2x3::IfcCharacterStyleSelect *v2_TextCharacterAppearance, ::Ifc2x3::IfcTextStyleSelect *v3_TextStyle, ::Ifc2x3::IfcTextFontSelect *v4_TextFontStyle)¶
-
typedef IfcTemplatedEntityList<IfcTextStyle>