AGTransformableText / AGTransformableTextObj


Synopsis

define text that changes size and angle based on a transformation

AGGeometryPrimitive+AGTextParams AGTransformableText
{
geometry+IPort2 = {0,0};
font = "sw:roman-simplex";
 text+IPort2[] = {"transformable text"};
AGGeometry upVector = {0,0.3};
};

Description

AGTransformableText and AGTransformableTextObj define text that is subject to transformations. If the text parameter includes newline characters ("\n"), the text appears on multiple lines. AGTransformableTextObj includes an AGDataObject for your convenience.

To plot more than one string, each string must have a corresponding XY pair in the geometry subobject.

Subobjects

visibility
priority

Inherited from AGPrimitive through AGGeometryPrimitive.

geometry

Inherited from AGGeometryPrimitive.

text
color
font
fillColor
frameColor
frameWidth
horizontalJustification
verticalJustification
multiLineJustification
multiLineSpacingFactor

Inherited from AGTextParams.

upVector

A value that specifies the height and angle of the text. The transformation matrix in the AGDataObject transforms this value.

Example

Not available.

File

v/ag.v

See Also

Related modules

•      AGDataObject

•      AGGeometryPrimitive / AGRenderPrimitive

•      AGPrimitive

•      AGTextParams