Class Ifc4x1::IfcTextStyle¶
Defined in File Ifc4x1.h
Nested Relationships¶
This class is a nested type of Struct Ifc4x1.
Inheritance Relationships¶
Base Type¶
public Ifc4x1::IfcPresentationStyle
(Class Ifc4x1::IfcPresentationStyle)
Class Documentation¶
-
class
Ifc4x1
::
IfcTextStyle
: public Ifc4x1::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.
-
::Ifc4x1::IfcTextStyleForDefinedFont *
TextCharacterAppearance
() const¶ A character style to be used for presented text.
-
void
setTextCharacterAppearance
(::Ifc4x1::IfcTextStyleForDefinedFont *v)¶
-
bool
hasTextStyle
() const¶ Whether the optional attribute TextStyle is defined for this IfcTextStyle.
-
::Ifc4x1::IfcTextStyleTextModel *
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
(::Ifc4x1::IfcTextStyleTextModel *v)¶
-
::Ifc4x1::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
(::Ifc4x1::IfcTextFontSelect *v)¶
-
bool
hasModelOrDraughting
() const¶ Whether the optional attribute ModelOrDraughting is defined for this IfcTextStyle.
-
bool
ModelOrDraughting
() const¶
-
void
setModelOrDraughting
(bool v)¶
-
IfcTextStyle
(IfcEntityInstanceData *e)¶
-
IfcTextStyle
(boost::optional<std::string> v1_Name, ::Ifc4x1::IfcTextStyleForDefinedFont *v2_TextCharacterAppearance, ::Ifc4x1::IfcTextStyleTextModel *v3_TextStyle, ::Ifc4x1::IfcTextFontSelect *v4_TextFontStyle, boost::optional<bool> v5_ModelOrDraughting)¶
-
typedef IfcTemplatedEntityList<IfcTextStyle>