Class Ifc4::IfcCurveStyle

Nested Relationships

This class is a nested type of Struct Ifc4.

Inheritance Relationships

Base Type

Class Documentation

class Ifc4::IfcCurveStyle : public Ifc4::IfcPresentationStyle

Definition from ISO/CD 10303-46:1992: A curve style specifies the visual appearance of curves.

An IfcCurveStyle provides the style table for presentation information assigned to geometric curves. The style is defined by a color, a font and a width. The IfcCurveStyle defines curve patterns as model patterns, that is, the distance between visible and invisible segments of curve patterns are given in model space dimensions (that have to be scaled using the target plot scale).

Styles are intended to be shared by multiple IfcStyledItem’s, assigning the style to occurrences of (subtypes of) IfcGeometricRepresentationItem’s. Measures given to a font pattern or a curve width are given in global drawing length units.

NOTE global units are defined at the single IfcProject instance, given by UnitsInContext:IfcUnitAssignment, the same units are used for the geometric representation items and for the style definitions.

The measure values for font pattern and curve width apply to the model space with a target plot scale provided for the correct appearance in the default plot scale.. For different scale and projection dependent curve styles a different instance of IfcCurveStyle needs to be used by IfcPresentationStyleAssignment for different IfcGeometricRepresentationSubContext dependent representations.

NOTE the target plot scale is given by IfcGeometricRepresentationSubContext.TargetScale.

An IfcCurveStyle can be assigned to IfcGeometricRepresentationItem’s via the IfcPresentationStyleAssignment through an intermediate IfcStyledItem or IfcAnnotationCurveOccurrence.

NOTE Corresponding ISO 10303 name: curve_style. Please refer to ISO/IS 10303-46:1994 for the final definition of the formal standard.

HISTORY New entity in IFC2x2.

Public Types

typedef IfcTemplatedEntityList<IfcCurveStyle> list

Public Functions

bool hasCurveFont() const

Whether the optional attribute CurveFont is defined for this IfcCurveStyle.

::Ifc4::IfcCurveFontOrScaledCurveFontSelect *CurveFont() const

A curve style font which is used to present a curve. It can either be a predefined curve font, or an explicitly defined curve font. Both may be scaled. If not given, then the curve font should be taken from the layer assignment with style, if that is not given either, then the default curve font applies.

void setCurveFont(::Ifc4::IfcCurveFontOrScaledCurveFontSelect *v)
bool hasCurveWidth() const

Whether the optional attribute CurveWidth is defined for this IfcCurveStyle.

::Ifc4::IfcSizeSelect *CurveWidth() const

A positive length measure in units of the presentation area for the width of a presented curve. If not given, then the style should be taken from the layer assignment with style, if that is not given either, then the default style applies.

void setCurveWidth(::Ifc4::IfcSizeSelect *v)
bool hasCurveColour() const

Whether the optional attribute CurveColour is defined for this IfcCurveStyle.

::Ifc4::IfcColour *CurveColour() const

The colour of the visible part of the curve. If not given, then the colour should be taken from the layer assignment with style, if that is not given either, then the default colour applies.

void setCurveColour(::Ifc4::IfcColour *v)
bool hasModelOrDraughting() const

Whether the optional attribute ModelOrDraughting is defined for this IfcCurveStyle.

bool ModelOrDraughting() const
void setModelOrDraughting(bool v)
const IfcParse::entity &declaration() const
IfcCurveStyle(IfcEntityInstanceData *e)
IfcCurveStyle(boost::optional<std::string> v1_Name, ::Ifc4::IfcCurveFontOrScaledCurveFontSelect *v2_CurveFont, ::Ifc4::IfcSizeSelect *v3_CurveWidth, ::Ifc4::IfcColour *v4_CurveColour, boost::optional<bool> v5_ModelOrDraughting)

Public Static Functions

const IfcParse::entity &Class()