LibreOffice Module canvas (master) 1
|
#include <parametricpolypolygon.hxx>
Classes | |
struct | Values |
Structure of defining values for the ParametricPolyPolygon. More... | |
Public Types | |
enum class | GradientType { Linear , Elliptical , Rectangular } |
Public Member Functions | |
virtual void | disposing (std::unique_lock< std::mutex > &) override |
Dispose all internal references. More... | |
virtual css::uno::Reference< css::rendering::XPolyPolygon2D > SAL_CALL | getOutline (double t) override |
virtual css::uno::Sequence< double > SAL_CALL | getColor (double t) override |
virtual css::uno::Sequence< double > SAL_CALL | getPointColor (const css::geometry::RealPoint2D &point) override |
virtual css::uno::Reference< css::rendering::XColorSpace > SAL_CALL | getColorSpace () override |
virtual OUString SAL_CALL | getImplementationName () override |
virtual sal_Bool SAL_CALL | supportsService (const OUString &ServiceName) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
Values | getValues () const |
Query all defining values of this object atomically. More... | |
Public Member Functions inherited from comphelper::WeakComponentImplHelper< typename... Ifc > | |
virtual void SAL_CALL | acquire () noexcept override |
virtual void SAL_CALL | release () noexcept override |
virtual void SAL_CALL | dispose () noexcept final override |
virtual void SAL_CALL | addEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) final override |
virtual void SAL_CALL | removeEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) final override |
virtual css::uno::Any SAL_CALL | queryInterface (css::uno::Type const &rType) override |
virtual css::uno::Sequence< css::uno::Type > SAL_CALL | getTypes () override |
virtual css::uno::Sequence< sal_Int8 > SAL_CALL | getImplementationId () override |
Public Member Functions inherited from comphelper::WeakComponentImplHelperBase | |
virtual | ~WeakComponentImplHelperBase () override |
virtual void SAL_CALL | dispose () override |
virtual void SAL_CALL | addEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) override |
virtual void SAL_CALL | removeEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) override |
virtual css::uno::Any SAL_CALL | queryInterface (css::uno::Type const &rType) override |
virtual void | disposing (std::unique_lock< std::mutex > &) |
Public Member Functions inherited from comphelper::UnoImplBase | |
virtual | ~UnoImplBase () |
Static Public Member Functions | |
static css::uno::Sequence< OUString > | getAvailableServiceNames () |
static rtl::Reference< ParametricPolyPolygon > | create (const css::uno::Reference< css::rendering::XGraphicDevice > &rDevice, std::u16string_view rServiceName, const css::uno::Sequence< css::uno::Any > &rArgs) |
Private Member Functions | |
virtual | ~ParametricPolyPolygon () override |
ParametricPolyPolygon (const ParametricPolyPolygon &)=delete | |
ParametricPolyPolygon & | operator= (const ParametricPolyPolygon &)=delete |
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. More... | |
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) | |
Static Private Member Functions | |
static rtl::Reference< ParametricPolyPolygon > | createLinearHorizontalGradient (const css::uno::Reference< css::rendering::XGraphicDevice > &rDevice, const css::uno::Sequence< css::uno::Sequence< double > > &colors, const css::uno::Sequence< double > &stops) |
static rtl::Reference< ParametricPolyPolygon > | createEllipticalGradient (const css::uno::Reference< css::rendering::XGraphicDevice > &rDevice, const css::uno::Sequence< css::uno::Sequence< double > > &colors, const css::uno::Sequence< double > &stops, double fAspect) |
static rtl::Reference< ParametricPolyPolygon > | createRectangularGradient (const css::uno::Reference< css::rendering::XGraphicDevice > &rDevice, const css::uno::Sequence< css::uno::Sequence< double > > &colors, const css::uno::Sequence< double > &stops, double fAspect) |
Private Attributes | |
css::uno::Reference< css::rendering::XGraphicDevice > | mxDevice |
const Values | maValues |
All defining values of this object. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from comphelper::WeakComponentImplHelperBase | |
void | throwIfDisposed (std::unique_lock< std::mutex > &) |
Protected Attributes inherited from comphelper::WeakComponentImplHelperBase | |
comphelper::OInterfaceContainerHelper4< css::lang::XEventListener > | maEventListeners |
Protected Attributes inherited from comphelper::UnoImplBase | |
std::mutex | m_aMutex |
bool | m_bDisposed |
Definition at line 41 of file parametricpolypolygon.hxx.
|
strong |
Enumerator | |
---|---|
Linear | |
Elliptical | |
Rectangular |
Definition at line 44 of file parametricpolypolygon.hxx.
|
overrideprivatevirtual |
Definition at line 197 of file parametricpolypolygon.cxx.
|
privatedelete |
Referenced by createEllipticalGradient(), createLinearHorizontalGradient(), and createRectangularGradient().
|
private |
Private, because objects can only be created from the static factories.
|
private |
|
static |
Definition at line 43 of file parametricpolypolygon.cxx.
References createEllipticalGradient(), createLinearHorizontalGradient(), createRectangularGradient(), and u.
Referenced by canvas::GraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::createInstance(), and canvas::GraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::createInstanceWithArguments().
|
staticprivate |
Definition at line 120 of file parametricpolypolygon.cxx.
References Elliptical, and ParametricPolyPolygon().
Referenced by create().
|
staticprivate |
Definition at line 110 of file parametricpolypolygon.cxx.
References Linear, and ParametricPolyPolygon().
Referenced by create().
|
staticprivate |
Definition at line 136 of file parametricpolypolygon.cxx.
References ParametricPolyPolygon(), and Rectangular.
Referenced by create().
|
overridevirtual |
Dispose all internal references.
Reimplemented from comphelper::WeakComponentImplHelperBase.
Definition at line 151 of file parametricpolypolygon.cxx.
References mxDevice.
|
static |
Definition at line 36 of file parametricpolypolygon.cxx.
Referenced by canvas::GraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::getAvailableServiceNames().
|
overridevirtual |
Definition at line 162 of file parametricpolypolygon.cxx.
|
overridevirtual |
Definition at line 174 of file parametricpolypolygon.cxx.
References comphelper::UnoImplBase::m_aMutex, and mxDevice.
|
overridevirtual |
Definition at line 182 of file parametricpolypolygon.cxx.
|
overridevirtual |
Definition at line 156 of file parametricpolypolygon.cxx.
|
overridevirtual |
Definition at line 168 of file parametricpolypolygon.cxx.
|
overridevirtual |
Definition at line 192 of file parametricpolypolygon.cxx.
ParametricPolyPolygon::Values canvas::ParametricPolyPolygon::getValues | ( | ) | const |
Query all defining values of this object atomically.
Definition at line 229 of file parametricpolypolygon.cxx.
References comphelper::UnoImplBase::m_aMutex, and maValues.
Referenced by cairocanvas::doOperation(), and cairocanvas::patternFromParametricPolyPolygon().
|
privatedelete |
|
overridevirtual |
Definition at line 187 of file parametricpolypolygon.cxx.
References ServiceName, and cppu::supportsService().
|
private |
All defining values of this object.
Definition at line 148 of file parametricpolypolygon.hxx.
Referenced by getValues().
|
private |
Definition at line 145 of file parametricpolypolygon.hxx.
Referenced by disposing(), and getColorSpace().