Table 6.275 — DRM_Texture_Coordinate_Control_Link

Property

Description

Class

  • <DRM Texture Coordinate Control Link>

Superclass

Subclass

  • None.

Definition

An instance of this DRM class is a specialized <DRM Control Link> instance used to provide the connection between an ordered aggregation of <DRM Expression> instances and the target fields of one or more <DRM Texture Coordinate> instances.

The s_expression_index field specifies which <DRM Expression> component controls the s field value of the affected <DRM Texture Coordinate> instance(s). If this value is zero, the s field values of those instances are not controlled; otherwise, the value is a one-based index into the ordered aggregation of <DRM Expression> instances.

The t_expression_index field specifies which <DRM Expression> component controls the t field value of the affected <DRM Texture Coordinate> instance(s). If this value is zero, the t field values of those instances are not controlled; otherwise, the value is a one-based index into the ordered aggregation of <DRM Expression> instances.

Class diagram

Figure 6.343 — DRM_Texture_Coordinate_Control_Link

Inherited field elements

Field name

Range

Field data type

description

 

String

Field elements

Field name

Range

Field data type

s_expression_index

 

Integer_Unsigned

t_expression_index

 

Integer_Unsigned

Default field values

Default field values for DRM_Texture_Coordinate_Control_Link

Associated to (one-way) (inherited)

  • None.

Associated to (one-way)

  • None.

Associated by (one-way) (inherited)

  • None.

Associated by (one-way)

  • None.

Associated with (two-way) (inherited)

  • None.

Associated with (two-way)

  • None.

Composed of (two-way) (inherited)

Composed of (two-way)

  • None.

Composed of (two-way metadata) (inherited)

  • None.

Composed of (two-way metadata)

  • None.

Component of (two-way) (inherited)

  • None.

Component of (two-way)

Constraints

Clarifications

None.

Example(s)

  • Consider a <DRM Polygon> instance P representing an exterior wall of a building, such that P has a <DRM Image Mapping Function> component that applies a texture to P. Each <DRM Vertex> component Vi of P has a <DRM Texture Coordinate> component TCi.

    Consider an explosion simulated near the building representation of which P is a part, such that there is a state change to the wall from undamged to showing damage from resulting from smoke. The data provider chooses to model this state change by changing the s, t values for each TCi so that the texture applied to P changes from a portion of the referenced <DRM Image> instance representing an undamaged wall to another portion of the same <DRM Image> instance showing damage resulting from smoke.

    This is accomplished by supplying each TCi with a <DRM Texture Coordinate Control Link> component Ki. Each Ki has two <DRM Expression> components, one of which determines the value for the s field value of TCi while the other determines the value for the t field value of TCi.