22#include <com/sun/star/lang/XServiceInfo.hpp>
23#include <com/sun/star/rendering/XParametricPolyPolygon2D.hpp>
59 const css::uno::Sequence< css::uno::Sequence< double > >& rColors,
60 const css::uno::Sequence< double >& rStops,
63 maGradientPoly(
std::move( aGradientPoly )),
64 mnAspectRatio( nAspectRatio ),
78 const css::uno::Sequence< css::uno::Sequence< double > >
maColors;
81 const css::uno::Sequence< double >
maStops;
87 static css::uno::Sequence< OUString > getAvailableServiceNames();
89 const css::uno::Reference< css::rendering::XGraphicDevice >& rDevice,
90 std::u16string_view rServiceName,
91 const css::uno::Sequence< css::uno::Any >& rArgs );
94 virtual void disposing(std::unique_lock<std::mutex>&)
override;
97 virtual css::uno::Reference< css::rendering::XPolyPolygon2D > SAL_CALL getOutline(
double t )
override;
98 virtual css::uno::Sequence< double > SAL_CALL getColor(
double t )
override;
99 virtual css::uno::Sequence< double > SAL_CALL getPointColor(
const css::geometry::RealPoint2D& point )
override;
100 virtual css::uno::Reference< css::rendering::XColorSpace > SAL_CALL getColorSpace()
override;
116 css::rendering::XGraphicDevice >& rDevice,
117 const css::uno::Sequence< css::uno::Sequence< double > >& colors,
118 const css::uno::Sequence< double >& stops );
120 css::rendering::XGraphicDevice >& rDevice,
121 const css::uno::Sequence< css::uno::Sequence< double > >& colors,
122 const css::uno::Sequence< double >& stops,
125 css::rendering::XGraphicDevice >& rDevice,
126 const css::uno::Sequence< css::uno::Sequence< double > >& colors,
127 const css::uno::Sequence< double >& stops,
132 css::rendering::XGraphicDevice > xDevice,
133 const ::basegfx::B2DPolygon& rGradientPoly,
135 const css::uno::Sequence< css::uno::Sequence< double > >& colors,
136 const css::uno::Sequence< double >& stops,
137 double nAspectRatio );
139 css::rendering::XGraphicDevice > xDevice,
141 const css::uno::Sequence< css::uno::Sequence< double > >& colors,
142 const css::uno::Sequence< double >& stops );
css::uno::Reference< css::rendering::XGraphicDevice > mxDevice
ParametricPolyPolygon(css::uno::Reference< css::rendering::XGraphicDevice > xDevice, GradientType eType, const css::uno::Sequence< css::uno::Sequence< double > > &colors, const css::uno::Sequence< double > &stops)
ParametricPolyPolygon(css::uno::Reference< css::rendering::XGraphicDevice > xDevice, const ::basegfx::B2DPolygon &rGradientPoly, GradientType eType, const css::uno::Sequence< css::uno::Sequence< double > > &colors, const css::uno::Sequence< double > &stops, double nAspectRatio)
Private, because objects can only be created from the static factories.
ParametricPolyPolygon & operator=(const ParametricPolyPolygon &)=delete
const Values maValues
All defining values of this object.
ParametricPolyPolygon(const ParametricPolyPolygon &)=delete
comphelper::WeakComponentImplHelper< css::rendering::XParametricPolyPolygon2D, css::lang::XServiceInfo > ParametricPolyPolygon_Base
css::uno::Sequence< OUString > getSupportedServiceNames()
OUString getImplementationName()
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
css::uno::Reference< css::deployment::XPackageRegistry > create(css::uno::Reference< css::deployment::XPackageRegistry > const &xRootRegistry, OUString const &context, OUString const &cachePath, css::uno::Reference< css::uno::XComponentContext > const &xComponentContext)
Structure of defining values for the ParametricPolyPolygon.
const css::uno::Sequence< css::uno::Sequence< double > > maColors
Gradient colors.
const GradientType meType
Type of gradient to render (as e.g. linear grads are not represented by maGradientPoly)
const ::basegfx::B2DPolygon maGradientPoly
Polygonal gradient shape (ignored for linear and axial gradient)
Values(::basegfx::B2DPolygon aGradientPoly, const css::uno::Sequence< css::uno::Sequence< double > > &rColors, const css::uno::Sequence< double > &rStops, double nAspectRatio, GradientType eType)
const double mnAspectRatio
Aspect ratio of gradient, affects scaling of innermost gradient polygon.
const css::uno::Sequence< double > maStops
Gradient color stops.