The SEDRIS Data Representation Model
APPENDIX A - Classes
Scale

Class Name: Scale

Superclass - <LSR Transformation Step>

Subclasses

This DRM class is concrete and has no subclasses.

Definition

An instance of this DRM class specifies a scale factor along the given axis.

If the absolute value of the scale factor is greater than 1.0, the <Scale> instance's operation stretches any target object along the given axis. On the other hand, if the absolute value is less than 1.0, any target object is shrunk along the given axis.

If the scale factor is negative, the <Scale> instance's operation reflects any target object across the origin along the given axis, as well as shrinking or stretching the object based on the magnitude of the scale factor.

Primary Page in DRM Diagram:

Secondary Pages in DRM Diagram:

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

Example

  1. A <Scale> instance specifies a scale of 2.0 along the W axis. This makes the dimension along the W axis twice as large.

  2. A <Scale> instance specifies a scale of 0.5 along the V axis. This makes the dimension along the V axis half as large.

  3. A <Scale> instance specifies a scale of -0.75 along the U axis. This reverses the axis direction and makes the dimension three quarters as large.

FAQs

No FAQs supplied.

Constraints

Composed of (two-way) (inherited)

Composed of (two-way)

Component of (two-way) (inherited)

Inherited Field Elements

This class has no inherited field elements.

Field Elements

SE_LSR_Transformation_Axis axis; 2
SE_Long_Float scale_factor; 3

Notes

Composed of Notes


Reference_Vector

If specified, this <Reference Vector> instance shall have vector_type = SE_REFVEC_LSR_TRANSFORMATION_AXIS.

Fields Notes

axis

The axis field specifies the axis to scale along.

scale_factor

The scale_factor field specifies the multiple by which to scale. For a <Scale> instance with a <Scale Control Link> component X, the value of the scale_factor field is obtained from X.


Prev: Rotation Control Link. Next: Scale Control Link. Up:Index.

Last updated: July 26, 2006 Copyright © 2006 SEDRIS