Integrated generic resource: Visual presentation ISO 10303-46:2021(E)
© ISO

Cover page
Table of contents
Copyright
Foreword
Introduction
1 Scope
2 Normative references
3 Terms, definitions and abbreviated terms
    3.1 Terms and definitions
    3.2 Abbreviated terms

4 Presentation organization
   4.1 General
   4.2 Fundamental concepts and assumptions
   4.3 Presentation organization type definitions
   4.4 Presentation organization entity definitions
   4.5 Presentation organization subtype constraint definition
   4.6 Presentation organization function definitions
   4.7 Presentation organization rule definitions
5 Presentation definition
   5.1 General
   5.2 Fundamental concepts and assumptions
   5.3 Presentation definition type definitions
   5.4 Presentation definition entity definitions
   5.5 Presentation definition subtype constraint definition
   5.6 Presentation definition function definitions
6 Presentation appearance
   6.1 General
   6.2 Fundamental concepts and assumptions
   6.3 Presentation appearance type definitions
   6.4 Presentation appearance entity definitions
   6.5 Presentation appearance subtype constraint definitions
   6.6 Presentation appearance function definitions
7 Presentation resource
   7.1 General
   7.2 Fundamental concepts and assumptions
   7.3 Presentation resource type definitions
   7.4 Presentation resource entity definitions
   7.5 Presentation resource subtype constraint definition

A Short names of entities
B Information object registration
C Computer interpretable listings
D EXPRESS-G diagrams
E Technical discussion
F Change history
Bibliography
Index

7 Presentation resource schema

7.1 General

The subject of the presentation_resource_schema is the specification of basic resources for presentation. There are three types of information specified in the presentation_resource_schema:

This clause defines the information requirements to which implementations shall conform using the EXPRESS language as defined in ISO 10303-11. The following EXPRESS declaration begins the presentation_resource_schema and identifies the necessary external references.

Each implementation of an AP that uses this schema and that encodes entity names shall use the encoding specified in Annex A. Each reference to this schema in an open system shall use the identifier encoding specified in Annex B. This schema is illustrated in Annex D using the EXPRESS-G notation.

EXPRESS specification:

*)
SCHEMA presentation_resource_schema;

REFERENCE FROM external_reference_schema    --  ISO 10303-41
  (externally_defined_item,
   pre_defined_item);

REFERENCE FROM geometry_schema    --  ISO 10303-42
  (axis2_placement,
   curve,
   geometric_representation_item);

REFERENCE FROM measure_schema    --  ISO 10303-41
  (length_measure,
   positive_length_measure,
   positive_ratio_measure,
   ratio_measure);

REFERENCE FROM presentation_definition_schema    --  ISO 10303-46
  (annotation_fill_area,
   symbol_representation);

REFERENCE FROM representation_schema    --  ISO 10303-43
  (item_in_context,
   representation);

REFERENCE FROM support_resource_schema    --  ISO 10303-41
  (identifier,
   label,
   text);
(*

NOTE 1   The schemas referenced above are specified in the following parts:

external_reference_schema ISO 10303-41
geometry_schema ISO 10303-42
measure_schema ISO 10303-41
presentation_definition_schema ISO 10303-46
representation_schema ISO 10303-43
support_resource_schema ISO 10303-41

NOTE 2   See Annex D for a graphical representation of this schema.

7.2 Fundamental concepts and assumptions

This schema specifies the resources necessary for construction of character fonts and annotation symbol fonts. The character fonts and annotation symbol fonts are defined within a local coordinate system. The characters and annotation symbols may be scaled and transformed depending on application usage.

There are two types of colour definition resources. The first is a direct colour specification based on the RGB colour model. The second makes use of a colour mapping table to associate a colour with a state variable along a continuous scale.

Geometric resources are geometric elements used in this part of ISO 10303 to support miscellaneous aspects of picture construction.

7.3 presentation_resource_schema type definitions

7.3.1 font_select   EXPRESS-G

The font_select type is a list of alternate data types. It provides a mechanism to refer to an instance of one of these data types. The font_select is used for the definition of text_literals and character_glyph_symbols. It selects between different sources for text fonts.

EXPRESS specification:

*)
TYPE font_select = SELECT
   (pre_defined_text_font,
    externally_defined_text_font,
    text_font);
END_TYPE;
(*

7.3.2 staircase_or_linear   EXPRESS-G

The staircase_or_linear type specifies the interpolation method for colours in a colour_association_table.

EXPRESS specification:

*)
TYPE staircase_or_linear = ENUMERATION OF
   (staircase,
    linear);
END_TYPE;
(*

Enumerated item definitions:

staircase: the colours are interpolated using a staircase function.

linear: the colours are interpolated linearly.

7.4 presentation_resource_schema entity definitions

7.4.1 character_glyph_font_usage   EXPRESS-G

A character_glyph_font_usage is the participation of a generic_character_glyph_symbol in a text_font.

EXPRESS specification:

*)
ENTITY character_glyph_font_usage;
  character : generic_character_glyph_symbol;
  font : text_font;
END_ENTITY;
(*

Attribute definitions:

character: the generic_character_glyph_symbol that is part of the font.

font: the text_font to which the generic_character_glyph_symbol is assigned.

7.4.2 character_glyph_symbol   EXPRESS-G

A character_glyph_symbol is a type of generic_character_glyph_symbol. A character_glyph_symbol contains the geometric representation of a character.

NOTE 1   Figure 28 illustrates the types and definition of character glyph symbols.



Figure 28 —  Character glyph symbols

Figure 28 —  Character glyph symbols

EXPRESS specification:

*)
ENTITY character_glyph_symbol
  SUBTYPE OF (generic_character_glyph_symbol);
  character_box : planar_extent;
  baseline_ratio : ratio_measure;
DERIVE
  box_height : length_measure := character_box.size_in_y;
WHERE
  WR1: {0.0 <= baseline_ratio <= 1.0};
  WR2: item_in_context(character_box, SELF\representation.context_of_items);
  WR3: 'MEASURE_SCHEMA.POSITIVE_LENGTH_MEASURE' IN TYPEOF (box_height);
END_ENTITY;
(*

Attribute definitions:

character_box: a rectangular box defining the extent of a character glyph. The character_box can be slanted by the text_style to produce slanted character glyphs.

baseline_ratio: the location of the baseline of the character glyph relative to the character_box. When character glyphs are composed to form a text literal, the baselines of adjacent glyphs are aligned. The character baseline is parallel to the x axis of the character_box. The specified value indicates the distance between the x axis of the character_box and the baseline as ratio of box_height.

NOTE 2   x axis and extent of the character box are defined by planar_extent.

EXAMPLE    A baseline_ratio of 0.0 specifies that the baseline of the character glyph and x axis are identical. A baseline_ratio of 0.5 specifies that the baseline of the character glyph divides the character_box in the middle of its height.

box_height: the height of the character_box.

Formal propositions:

WR1: The baseline_ratio ranges between 0.0 and 1.0.

WR2: The character_box shall be founded in the representation_context defined by context_of_items.

WR3: The box_height shall be a positive_length_measure.

7.4.3 character_glyph_symbol_outline   EXPRESS-G

A character_glyph_symbol_outline is a type of character_glyph_symbol where the geometry of the glyph is described by a set of annotation_fill_areas.

EXPRESS specification:

*)
ENTITY character_glyph_symbol_outline
  SUBTYPE OF (character_glyph_symbol);
  outlines : SET[1:?] OF annotation_fill_area;
WHERE
  WR1: outlines <= SELF\representation.items;
END_ENTITY;
(*

Attribute definitions:

outlines: the set of annotation_fill_areas that define the geometry of the character glyph.

Formal propositions:

WR1: All the fill areas making up the character glyph shall be contained in the set of items.

7.4.4 character_glyph_symbol_stroke   EXPRESS-G

A character_glyph_symbol_stroke is a type of character_glyph_symbol where the geometry of the glyph is described by a set of curves.

EXPRESS specification:

*)
ENTITY character_glyph_symbol_stroke
  SUBTYPE OF (character_glyph_symbol);
  strokes : SET[1:?] OF curve;
WHERE
  WR1: strokes <= SELF\representation.items;
END_ENTITY;
(*

Attribute definitions:

strokes: the set of curves that define the geometry of the character glyph.

Formal propositions:

WR1: All the curves making up the character glyph shall be contained in the set of items.

7.4.5 colour   EXPRESS-G

A colour is a basic appearance property of an element with respect to the light reflected by it.

EXPRESS specification:

*)
ENTITY colour;
END_ENTITY;
(*

7.4.6 colour_associated   EXPRESS-G

A colour_associated is a type of colour. A colour_associated entity defines a colour for the visualization of one-dimensional state variables to achieve a rendered picture. The colour at specific positions of a curve or surface is derived from the values of the state variables and the colour_association_table. The positions for which the colours are derived depend on the shading_curve_method or the shading_surface_method assigned to the curve or surface, respectively. The derived colours are interpolated according to the shading method appearance attribute.

NOTE 1   State variables are often used to specify physical quantities.

NOTE 2   The interpolation of colours across curves and surfaces is described in shading_curve_method and shading_surface_method.

EXPRESS specification:

*)
ENTITY colour_associated
  SUBTYPE OF (colour);
  name : label;
  variable_to_be_shown : SET[1:?] OF REAL;
  mapping : colour_association_table;
END_ENTITY;
(*

Attribute definitions:

name: the word, or group of words, by which the colour_associated is referred to.

variable_to_be_shown: the set of state variables are the one-dimensional values to be visualized by colours.

mapping: the colour_association_table used to derive the colour.

7.4.7 colour_association_table   EXPRESS-G

A colour_association_table is a mapping of a one-dimensional state variable space into a colour space.

The colour_association_table contains state variable values that are associated with a colour. When the value of a state variable is between two fixed state variable values, the colour shall be calculated by either staircase or linear interpolation.

EXPRESS specification:

*)
ENTITY colour_association_table;
  discrete_states_with_colours : LIST[1:?] OF state_variable_with_colour;
  interpolation_type : staircase_or_linear;
END_ENTITY;
(*

Attribute definitions:

discrete_states_with_colours: a list of one-dimensional state variable values that are associated with colour.

interpolation_type: the method of interpolation to be used.

7.4.8 colour_rgb   EXPRESS-G

A colour_rgb is a type of colour_specification. A colour_rgb defines a colour by specifying the intensity of red, green, and blue.

EXPRESS specification:

*)
ENTITY colour_rgb
  SUBTYPE OF (colour_specification);
  red : REAL;
  green : REAL;
  blue : REAL;
WHERE
  WR1: {0.0 <= red <= 1.0};
  WR2: {0.0 <= green <= 1.0};
  WR3: {0.0 <= blue <= 1.0};
END_ENTITY;
(*

Attribute definitions:

red: the intensity of the red colour component.

green: the intensity of the green colour component.

blue: the intensity of the blue colour component.

Formal propositions:

WR1: The intensity of the red colour component shall be between 0.0 and 1.0.

WR2: The intensity of the green component shall be between 0.0 and 1.0.

WR3: The intensity of the blue component shall be between 0.0 and 1.0.

7.4.9 colour_specification   EXPRESS-G

A colour_specification is a type of colour. A colour_specification contains a colour definition which refers directly to a specific colour space.

EXAMPLE    Colour spaces are RGB, HLS, HSV, and CIE. More details about these colour spaces can be found in [13].

NOTE    Only RGB colours are supported by this part of ISO-10303. This entity provides for later extension.

EXPRESS specification:

*)
ENTITY colour_specification
  SUBTYPE OF (colour);
  name : label;
END_ENTITY;
(*

Attribute definitions:

name: the word, or group of words, by which the colour_specification is referred to.

7.4.10 draughting_pre_defined_colour   EXPRESS-G

A draughting_pre_defined_colour is a type of pre_defined_colour that is identified by name.

Table 1 states the RGB values corresponding to each of the predefined colours that are specified by this part of ISO 10303.

Table 1 — RGB colours for predefined colours

Colour name

Red

Green

Blue

black 0.0 0.0 0.0
red 1.0 0.0 0.0
green 0.0 1.0 0.0
blue 0.0 0.0 1.0
yellow 1.0 1.0 0.0
magenta 1.0 0.0 1.0
cyan 0.0 1.0 1.0
white 1.0 1.0 1.0

EXPRESS specification:

*)
ENTITY draughting_pre_defined_colour
  SUBTYPE OF (pre_defined_colour);
WHERE
  WR1: SELF\pre_defined_item.name IN ['red', 'green', 'blue', 'yellow', 'magenta', 'cyan', 'black', 'white'];
END_ENTITY;
(*

Formal propositions:

WR1: The name of the draughting_pre_defined_colour shall be 'red', 'green', 'blue', 'yellow', 'magenta', 'cyan', 'black', or 'white'.

7.4.11 draughting_pre_defined_text_font   EXPRESS-G

A draughting_pre_defined_text_font is a type of pre_defined_text_font that shall be defined by ISO 3098.

EXPRESS specification:

*)
ENTITY draughting_pre_defined_text_font
  SUBTYPE OF (pre_defined_text_font);
WHERE
  WR1: SELF\pre_defined_item.name[1:8] = 'ISO 3098';
END_ENTITY;
(*

Formal propositions:

WR1: The name of the draughting_pre_defined_text_font shall be defined by 'ISO 3098'.

7.4.12 externally_defined_text_font   EXPRESS-G

An externally_defined_text_font is a type of externally_defined_item. An externally_defined_text_font is an external reference to a text font.

EXPRESS specification:

*)
ENTITY externally_defined_text_font
  SUBTYPE OF (externally_defined_item);
END_ENTITY;
(*

7.4.13 generic_character_glyph_symbol   EXPRESS-G

A generic_character_glyph_symbol is a type of symbol_representation that contains the geometric representation of a character.

EXPRESS specification:

*)
ENTITY generic_character_glyph_symbol
  ABSTRACT SUPERTYPE
  SUBTYPE OF (symbol_representation);
END_ENTITY;
(*

7.4.14 planar_box   EXPRESS-G

A planar_box is a type of planar_extent. A planar_box specifies an arbitrary rectangular box and its location in a two-dimensional cartesian coordinate system.

EXPRESS specification:

*)
ENTITY planar_box
  SUBTYPE OF (planar_extent);
  placement : axis2_placement;
END_ENTITY;
(*

Attribute definitions:

placement: the position and orientation of the bottom-left corner of the box. The attributes of the supertype define the length of the sides of the box along the positive x and y axes.

7.4.15 planar_extent   EXPRESS-G

A planar_extent is a type of geometric_representation_item. A planar_extent specifies an extent in both directions of a two-dimensional coordinate system.

EXPRESS specification:

*)
ENTITY planar_extent
  SUBTYPE OF (geometric_representation_item);
  size_in_x : length_measure;
  size_in_y : length_measure;
END_ENTITY;
(*

Attribute definitions:

size_in_x: the extent in the x axis direction.

size_in_y: the extent in the y axis direction.

7.4.16 pre_defined_colour   EXPRESS-G

A pre_defined_colour is a type of colour and a type of pre_defined_item. A pre_defined_colour is provided to allow an application-specific colour definition.

NOTE    Application Resources or Application Protocols specify the use of this entity. The pre_defined_colour entity further enables Application Resources or Application Protocols to fix colour values or components of colour values for their particular uses.

EXPRESS specification:

*)
ENTITY pre_defined_colour
  SUBTYPE OF (pre_defined_item, colour);
END_ENTITY;
(*

7.4.17 pre_defined_text_font   EXPRESS-G

A pre_defined_text_font is a type of pre_defined_item. A pre_defined_text_font is a text font provided for the definition of an application-specific font.

NOTE    Application Resources or Application Protocols specify the use of this entity.

EXPRESS specification:

*)
ENTITY pre_defined_text_font
  SUBTYPE OF (pre_defined_item);
END_ENTITY;
(*

7.4.18 presentation_scaled_placement   EXPRESS-G

A presentation_scaled_placement is a type of geometric_representation_item provided to support the definition of graphical_transformations.

EXPRESS specification:

*)
ENTITY presentation_scaled_placement
  SUBTYPE OF (geometric_representation_item);
  placement : axis2_placement;
  scaling : positive_ratio_measure;
END_ENTITY;
(*

Attribute definitions:

placement: a placement used to define rotation and translation.

scaling: the scaling that is part of the transformation.

7.4.19 state_variable_with_colour   EXPRESS-G

A state_variable_with_colour is an association of a single fixed state variable with a colour_specification.

EXPRESS specification:

*)
ENTITY state_variable_with_colour;
  state_variable : REAL;
  associated_colour : colour_specification;
END_ENTITY;
(*

Attribute definitions:

state_variable: the value of a one-dimensional state_variable.

EXAMPLE    Physical state variables are temperature and stress components.

associated_colour: the colour_specification associated with the state_variable.

7.4.20 text_font   EXPRESS-G

A text_font is the identification of a specific character font.

EXAMPLE    Examples for character fonts are Courier 12, Times 10, Helvetica Bold 14, 0815, ABC.

EXPRESS specification:

*)
ENTITY text_font;
  id : identifier;
  name : label;
  description : text;
INVERSE
  glyphs : SET[1:?] OF character_glyph_font_usage FOR font;
END_ENTITY;
(*

Attribute definitions:

id: the identification of the text_font.

name: the word, or group of words, by which the text_font is referred to.

description: text that relates the nature of the text_font.

glyphs: the set of character_glyph_font_usages that identify the character_glyph_symbols that participate in the text_font.

7.4.21 text_font_family   EXPRESS-G

A text_font_family is the identification of a related collection of text_fonts.

EXPRESS specification:

*)
ENTITY text_font_family;
  id : identifier;
  name : label;
  description : text;
INVERSE
  fonts : SET[1:?] OF text_font_in_family FOR family;
END_ENTITY;
(*

Attribute definitions:

id: the identification of the text_font_family.

name: the word, or group of words, by which the text_font_family is referred to.

description: text that relates the nature of the text_font_family.

fonts: the set of text_font_in_familys that identify the text_fonts that participate in the text_font_family. There shall exist at least one text_font_in_family for the text_font_family.

7.4.22 text_font_in_family   EXPRESS-G

A text_font_in_family is the participation of a text_font in a text_font_family.

EXAMPLE    Some font families are Courier and Helvetica. Fonts in these families include Courier 12, Helvetica Bold 14, respectively.

EXPRESS specification:

*)
ENTITY text_font_in_family;
  font : text_font;
  family : text_font_family;
END_ENTITY;
(*

Attribute definitions:

font: the text_font that is part of the family.

family: the text_font_family to which the text_font is assigned.

7.5 presentation_resource_schema subtype constraint definition

7.5.1 prs_geometric_representation_item_subtypes   EXPRESS-G

A prs_geometric_representation_item_subtypes is a constraint that applies to instances of subtypes of geometric_representation_item.

EXPRESS specification:

*)
SUBTYPE_CONSTRAINT prs_geometric_representation_item_subtypes FOR geometric_representation_item;
  ONEOF (curve,
         planar_extent,
         presentation_scaled_placement);
END_SUBTYPE_CONSTRAINT;
(*



*)
END_SCHEMA;  -- presentation_resource_schema
(*


© ISO 2021 — All rights reserved