#include <ut_svg.h>
Public Member Functions | |
UT_SVGMatrix | multiply (const UT_SVGMatrix &matrix) |
UT_SVGMatrix | inverse () |
UT_SVGMatrix | translate (float x, float y) |
UT_SVGMatrix | scale (float scaleFactor) |
UT_SVGMatrix | scaleNonUniform (float scaleFactorX, float scaleFactorY) |
UT_SVGMatrix | rotate (float angle) |
UT_SVGMatrix | rotateFromVector (float x, float y) |
UT_SVGMatrix | flipX () |
UT_SVGMatrix | flipY () |
UT_SVGMatrix | skewX (float angle) |
UT_SVGMatrix | skewY (float angle) |
UT_SVGMatrix (float a=1, float b=0, float c=0, float d=1, float e=0, float f=0) | |
~UT_SVGMatrix () | |
Static Public Member Functions | |
static bool | applyTransform (UT_SVGMatrix *currentMatrix, const char *transformAttribute) |
Parse the SVG "transform" attribute and apply the transformations to the current matrix. | |
Public Attributes | |
float | a |
float | b |
float | c |
float | d |
float | e |
float | f |
UT_SVGMatrix::UT_SVGMatrix | ( | float | a = 1 , |
|
float | b = 0 , |
|||
float | c = 0 , |
|||
float | d = 1 , |
|||
float | e = 0 , |
|||
float | f = 0 | |||
) |
UT_SVGMatrix::~UT_SVGMatrix | ( | ) |
bool UT_SVGMatrix::applyTransform | ( | UT_SVGMatrix * | currentMatrix, | |
const char * | transformAttribute | |||
) | [static] |
Parse the SVG "transform" attribute and apply the transformations to the current matrix.
currentMatrix | the current matrix | |
the | "transform" attribute |
References BNF_comma_wsp(), BNF_number(), BNF_wsp_star(), multiply(), rotate(), scaleNonUniform(), skewX(), skewY(), translate(), UT_ASSERT, and UT_DEBUGMSG.
UT_SVGMatrix UT_SVGMatrix::multiply | ( | const UT_SVGMatrix & | matrix | ) |
References a, b, c, d, e, and f.
Referenced by applyTransform(), rotate(), and rotateFromVector().
UT_SVGMatrix UT_SVGMatrix::rotate | ( | float | angle | ) |
References multiply(), and UT_PI.
Referenced by applyTransform().
UT_SVGMatrix UT_SVGMatrix::rotateFromVector | ( | float | x, | |
float | y | |||
) |
UT_SVGMatrix UT_SVGMatrix::scaleNonUniform | ( | float | scaleFactorX, | |
float | scaleFactorY | |||
) |
UT_SVGMatrix UT_SVGMatrix::skewX | ( | float | angle | ) |
UT_SVGMatrix UT_SVGMatrix::skewY | ( | float | angle | ) |
UT_SVGMatrix UT_SVGMatrix::translate | ( | float | x, | |
float | y | |||
) |
float UT_SVGMatrix::a |
Referenced by flipX(), flipY(), inverse(), multiply(), rotateFromVector(), scale(), scaleNonUniform(), skewX(), skewY(), and translate().
float UT_SVGMatrix::b |
Referenced by flipX(), flipY(), inverse(), multiply(), rotateFromVector(), scale(), scaleNonUniform(), skewX(), skewY(), and translate().
float UT_SVGMatrix::c |
Referenced by flipX(), flipY(), inverse(), multiply(), rotateFromVector(), scale(), scaleNonUniform(), skewX(), skewY(), and translate().
float UT_SVGMatrix::d |
Referenced by flipX(), flipY(), inverse(), multiply(), rotateFromVector(), scale(), scaleNonUniform(), skewX(), skewY(), and translate().
float UT_SVGMatrix::e |
Referenced by flipX(), flipY(), inverse(), multiply(), rotateFromVector(), scale(), scaleNonUniform(), skewX(), skewY(), and translate().
float UT_SVGMatrix::f |
Referenced by flipX(), flipY(), inverse(), multiply(), rotateFromVector(), scale(), scaleNonUniform(), skewX(), skewY(), and translate().