The SEDRIS Data Representation Model
APPENDIX A - Classes
Translucency

Class Name: Translucency

Superclass - <SEDRIS Abstract Base>

Subclasses

This DRM class is concrete and has no subclasses.

Definition

An instance of this DRM class specifies the percentage of light that can pass through the given <Colour> instance, where

  1. translucency_value = 0.0 indicates that no light passes through, and
  2. translucency_value = 1.0 indicates a fully transparent object.

In essence, this specifies the transparency of the colour.

NOTE: An object's "opacity" is equal to 1.0 - transparency.

Primary Page in DRM Diagram:

Secondary Pages in DRM Diagram:

This class appears on only one page of the DRM class diagram.

Example

  1. The alpha value for an Ambient, OTW colour can be encoded in SEDRIS as a <Inline Colour> with an <Ambient Colour> and a <Translucency> component.

FAQs

If an object has a <Colour> with a <Translucency>, together with an <Image Mapping Function> specifying an <Image> that also has an alpha, how are the two alpha values resolved?

That depends on the <Image Mapping Function>'s image_mapping_method. See SE_Image_Mapping_Method for a detailed description of how <Image> and <Colour> alpha values are resolved for various mapping methods.

Constraints

Composed of (two-way)

Component of (two-way)

Inherited Field Elements

This class has no inherited field elements.

Field Elements

SE_Long_Float translucency_value; (notes)

Notes

Fields Notes


translucency_value

 This is the percentage of light that can pass through the given
 <Colour> instance, expressed as a number between 0.0 and 1.0.

Prev: Translation Control Link. Next: Translucency Control Link. Up:Index.

Last updated: July 16, 2004 Copyright © 2004 SEDRIS