Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.15

API

SDK

Tips ‘n’ Tricks

Miscellaneous


:: com :: sun :: star :: rendering ::

interface XParametricPolyPolygon2D
Description
Interface to a dynamic poly-polygon generator, that generates poly-polygons depending on a given parameter value.

The returned poly-polygon should normally be contained in the [0,1]x[0,1] rectangle. At least that is the dimension expected at other places. e.g. Texture.


Methods' Summary
getOutline Query the polygonal outline at the specified value. The returned outline should be clipped to the [0,1]x[0,1] rectangle.  
getColor Query the color value for the polygonal area at the specified parameter value.  
getPointColor Query the color for a dedicated point in the plane.  
getColorSpace Query the color space employed by this object  
Methods' Details
getOutline
XPolyPolygon2D
getOutline( [in] double  t )
raises( ::com::sun::star::lang::IllegalArgumentException );

Description
Query the polygonal outline at the specified value. The returned outline should be clipped to the [0,1]x[0,1] rectangle.
Parameter t
Parameter value in the range [0,1]. During painting, this range is sweeped through starting from 0. When using such a parametric polypolygon for gradients, the area covered by the returned XPolyPolygon2D should be monotonically decreasing with t (unless singularities in e.g. the resulting gradient are desired).
getColor
sequence< ColorComponent >
getColor( [in] double  t )
raises( ::com::sun::star::lang::IllegalArgumentException );

Description
Query the color value for the polygonal area at the specified parameter value.
Parameter t
Parameter value in the range [0,1]. During painting, this range is swept through starting from 0.
getPointColor
sequence< ColorComponent >
getPointColor( [in] ::com::sun::star::geometry::RealPoint2D  point )
raises( ::com::sun::star::lang::IllegalArgumentException );

Description
Query the color for a dedicated point in the plane.
Parameter point
The permissible parameter range for point is [0,1]x[0,1]
getColorSpace
XColorSpace
getColorSpace();

Description
Query the color space employed by this object
Returns
the color space the colors generated by this object are to be interpreted in.
Top of Page

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. The Apache feather logo is a trademark of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.