VOS Object Type Definition

image2D

OTD #022; Revision 1.

Group: image2D.

Base object type for 2D image objects: provides position, orientation and scaling properties. These three properties define a transformation for this 2D image relative to its parent image. An image should be displayed superimposed on top of its parent image, and its child image objects should be displayed superimposed on top of it.

Authors

Reed Hedges, (reed @ interreality . org)

Child Objects

 

image2D:position [property:property] (required.)

Position or translation of this object relative to the center of its parent image object (use the same units as position). This property contains two floating point numbers (X and Y), seperated by whitespace. The datatype should be "text/x-vector-float".

 

image2D:orientation [property:property] (required.)

Orientation or rotation of this object relative to the orientation of its parent image object (clockwise). This property contains a floating point number. The datatype should be "text/x-float".

 

image2D:scaling [property:property] (required.)

Size of this image object (same units as position). This property contains two floating point numbers (X and Y), seperated by whitespace. The datatype should be "text/x-vector-float". All objects under the same 2D object or space with the same scaling value should be rendered at the same size (regardless of the size of the shape/bitmap itself). This scaling factor should also be applied to image2D children of this object, so an objects size is determined by the product of all previous scaling values.

 

image2D:image [property:property] (required.)

Image data. The datatype indicates the data format. Suggested datatypes to support are: PNG, JPEG, SVG, BMP, TIFF, PCX, PNM, and XPM. More than one image property may be supplied with alternate datatypes.

Messages

this type defines no new messages.

History of this document

Revision 0 (Sun Aug 11 19:03:26 EDT 2002):
Created [rh]