basegfx::ODFGradientInfo Struct Reference

Gradient definition as used in ODF 1.2. More...

#include <gradienttools.hxx>

Collaboration diagram for basegfx::ODFGradientInfo:

Collaboration graph
[legend]

List of all members.

Public Attributes

B2DHomMatrix maTextureTransform
 transformation mapping from [0,1]^2 texture coordinate space to [0,1]^2 shape coordinate space
B2DHomMatrix maBackTextureTransform
 transformation mapping from [0,1]^2 shape coordinate space to [0,1]^2 texture coordinate space.
double mfAspectRatio
 Aspect ratio of the gradient.
sal_uInt32 mnSteps
 Requested gradient steps to render.


Detailed Description

Gradient definition as used in ODF 1.2.

This struct collects all data necessary for rendering ODF 1.2-compatible gradients. Use the createXXXODFGradientInfo() methods below for initializing from ODF attributes.

Definition at line 45 of file gradienttools.hxx.


Member Data Documentation

transformation mapping from [0,1]^2 texture coordinate space to [0,1]^2 shape coordinate space

Definition at line 50 of file gradienttools.hxx.

Referenced by basegfx::init1DGradientInfo(), basegfx::initEllipticalGradientInfo(), and basegfx::initRectGradientInfo().

transformation mapping from [0,1]^2 shape coordinate space to [0,1]^2 texture coordinate space.

This is the transformation commonly used to create gradients from a scanline rasterizer (put shape u/v coordinates into it, get texture s/t coordinates out of it)

Definition at line 58 of file gradienttools.hxx.

Referenced by basegfx::tools::getAxialGradientAlpha(), basegfx::tools::getLinearGradientAlpha(), basegfx::tools::getRadialGradientAlpha(), basegfx::tools::getSquareGradientAlpha(), basegfx::init1DGradientInfo(), basegfx::initEllipticalGradientInfo(), and basegfx::initRectGradientInfo().

Aspect ratio of the gradient.

Only used in drawinglayer for generating nested gradient polygons currently. Already catered for in the transformations above.

Definition at line 64 of file gradienttools.hxx.

Referenced by basegfx::init1DGradientInfo(), basegfx::initEllipticalGradientInfo(), and basegfx::initRectGradientInfo().

Requested gradient steps to render.

See the implementations of the getXXXGradientAlpha() methods below, the semantic differs slightly for the different gradient types.

Definition at line 71 of file gradienttools.hxx.

Referenced by basegfx::tools::getAxialGradientAlpha(), basegfx::tools::getLinearGradientAlpha(), basegfx::tools::getRadialGradientAlpha(), basegfx::tools::getSquareGradientAlpha(), basegfx::init1DGradientInfo(), basegfx::initEllipticalGradientInfo(), and basegfx::initRectGradientInfo().


The documentation for this struct was generated from the following file:

Generated on Thu Apr 29 13:57:21 2010 for ooo-build Module basegfx (ooo/OOO320_m15) by  doxygen 1.5.6