class SugTransform

SugTranform stores a single transformation as given by an element's tranform attribute

Public Methods

[more] SugTransform ()
The class constructor
[more]SugRealType getAngle ()
Returns the angle value of this transform.
[more]SugTypes::TransformType getType ()
Returns the type of this transform.
[more]SugRealType getX ()
Returns the X value of this transform.
[more]SugRealType getY ()
Returns the Y value of this transform.
[more]void setRotate (SugRealType angle, SugRealType x, SugRealType y)
Sets the rotation angle, x and y.
[more]void setScale (SugRealType x, SugRealType y)
Sets the scale x and y.
[more]void setSkewX (SugRealType angle)
Sets the skew x angle.
[more]void setSkewY (SugRealType angle)
Sets the skew y angle.
[more]void setTransform (const char* transformString)
Parses the given string and sets itself up with the correct data.
[more]void setTranslate (SugRealType x, SugRealType y)
Sets the translation x and y.
[more] ~SugTransform ()
The class destructor

Public Members

[more] Sets the transformation matrix

Protected Fields

[more]SugRealType mAngle
The transformation angle
[more]SugTypes::TransformType mType
The type of transform this is
[more]SugRealType mX
The x value of the transform
[more]SugRealType mY
The y value of the transform


Documentation

SugTranform stores a single transformation as given by an element's tranform attribute
oSugTypes::TransformType mType
The type of transform this is

oSugRealType mX
The x value of the transform

oSugRealType mY
The y value of the transform

oSugRealType mAngle
The transformation angle

o Sets the transformation matrix
Sets the transformation matrix

ovoid setTransform(const char* transformString)
Parses the given string and sets itself up with the correct data. The string can have the following formats: matrix(a, b, c, d, e, f) translate(x, [y]) scale(x, [y]) rotate(angle, [x, y]) skewX(angle) skewY(angle)

Parameters:
s - transformString The string to parse.

ovoid setTranslate(SugRealType x, SugRealType y)
Sets the translation x and y.

Parameters:
x - The X amount to translate.
y - The Y amount to translate.

ovoid setScale(SugRealType x, SugRealType y)
Sets the scale x and y.

Parameters:
x - The X factor to scale by.
y - The Y factor to scale by.

ovoid setRotate(SugRealType angle, SugRealType x, SugRealType y)
Sets the rotation angle, x and y.

Parameters:
angle - The angle to rotate by.
x - The X coordinate to rotate around.
y - The Y coordinate to rotate around.

ovoid setSkewX(SugRealType angle)
Sets the skew x angle.

Parameters:
angle - The angle to skew by.

ovoid setSkewY(SugRealType angle)
Sets the skew y angle.

Parameters:
angle - The angle to skew by.

oSugRealType getX()
Returns the X value of this transform.

Returns:
s The X value.

oSugRealType getY()
Returns the Y value of this transform.

Returns:
s The Y value.

oSugRealType getAngle()
Returns the angle value of this transform.

Returns:
s The angle value.

oSugTypes::TransformType getType()
Returns the type of this transform.

Returns:
s The transform type.

o SugTransform()
The class constructor

o ~SugTransform()
The class destructor


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.