LibreOffice Module canvas (master) 1
Classes | Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
canvas::ParametricPolyPolygon Class Referencefinal

#include <parametricpolypolygon.hxx>

Inheritance diagram for canvas::ParametricPolyPolygon:
[legend]
Collaboration diagram for canvas::ParametricPolyPolygon:
[legend]

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< ParametricPolyPolygoncreate (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
 
ParametricPolyPolygonoperator= (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< ParametricPolyPolygoncreateLinearHorizontalGradient (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< ParametricPolyPolygoncreateEllipticalGradient (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< ParametricPolyPolygoncreateRectangularGradient (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
 

Detailed Description

Definition at line 41 of file parametricpolypolygon.hxx.

Member Enumeration Documentation

◆ GradientType

Enumerator
Linear 
Elliptical 
Rectangular 

Definition at line 44 of file parametricpolypolygon.hxx.

Constructor & Destructor Documentation

◆ ~ParametricPolyPolygon()

canvas::ParametricPolyPolygon::~ParametricPolyPolygon ( )
overrideprivatevirtual

Definition at line 197 of file parametricpolypolygon.cxx.

◆ ParametricPolyPolygon() [1/3]

canvas::ParametricPolyPolygon::ParametricPolyPolygon ( const ParametricPolyPolygon )
privatedelete

◆ ParametricPolyPolygon() [2/3]

canvas::ParametricPolyPolygon::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

Private, because objects can only be created from the static factories.

◆ ParametricPolyPolygon() [3/3]

canvas::ParametricPolyPolygon::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 
)
private

Member Function Documentation

◆ create()

rtl::Reference< ParametricPolyPolygon > canvas::ParametricPolyPolygon::create ( const css::uno::Reference< css::rendering::XGraphicDevice > &  rDevice,
std::u16string_view  rServiceName,
const css::uno::Sequence< css::uno::Any > &  rArgs 
)
static

◆ createEllipticalGradient()

rtl::Reference< ParametricPolyPolygon > canvas::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 
)
staticprivate

Definition at line 120 of file parametricpolypolygon.cxx.

References Elliptical, and ParametricPolyPolygon().

Referenced by create().

◆ createLinearHorizontalGradient()

rtl::Reference< ParametricPolyPolygon > canvas::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 
)
staticprivate

Definition at line 110 of file parametricpolypolygon.cxx.

References Linear, and ParametricPolyPolygon().

Referenced by create().

◆ createRectangularGradient()

rtl::Reference< ParametricPolyPolygon > canvas::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 
)
staticprivate

Definition at line 136 of file parametricpolypolygon.cxx.

References ParametricPolyPolygon(), and Rectangular.

Referenced by create().

◆ disposing()

void canvas::ParametricPolyPolygon::disposing ( std::unique_lock< std::mutex > &  )
overridevirtual

Dispose all internal references.

Reimplemented from comphelper::WeakComponentImplHelperBase.

Definition at line 151 of file parametricpolypolygon.cxx.

References mxDevice.

◆ getAvailableServiceNames()

uno::Sequence< OUString > canvas::ParametricPolyPolygon::getAvailableServiceNames ( )
static

◆ getColor()

uno::Sequence< double > SAL_CALL canvas::ParametricPolyPolygon::getColor ( double  t)
overridevirtual

Definition at line 162 of file parametricpolypolygon.cxx.

◆ getColorSpace()

uno::Reference< rendering::XColorSpace > SAL_CALL canvas::ParametricPolyPolygon::getColorSpace ( )
overridevirtual

Definition at line 174 of file parametricpolypolygon.cxx.

References comphelper::UnoImplBase::m_aMutex, and mxDevice.

◆ getImplementationName()

OUString SAL_CALL canvas::ParametricPolyPolygon::getImplementationName ( )
overridevirtual

Definition at line 182 of file parametricpolypolygon.cxx.

◆ getOutline()

uno::Reference< rendering::XPolyPolygon2D > SAL_CALL canvas::ParametricPolyPolygon::getOutline ( double  t)
overridevirtual

Definition at line 156 of file parametricpolypolygon.cxx.

◆ getPointColor()

uno::Sequence< double > SAL_CALL canvas::ParametricPolyPolygon::getPointColor ( const css::geometry::RealPoint2D &  point)
overridevirtual

Definition at line 168 of file parametricpolypolygon.cxx.

◆ getSupportedServiceNames()

uno::Sequence< OUString > SAL_CALL canvas::ParametricPolyPolygon::getSupportedServiceNames ( )
overridevirtual

Definition at line 192 of file parametricpolypolygon.cxx.

◆ getValues()

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().

◆ operator=()

ParametricPolyPolygon & canvas::ParametricPolyPolygon::operator= ( const ParametricPolyPolygon )
privatedelete

◆ supportsService()

sal_Bool SAL_CALL canvas::ParametricPolyPolygon::supportsService ( const OUString &  ServiceName)
overridevirtual

Definition at line 187 of file parametricpolypolygon.cxx.

References ServiceName, and cppu::supportsService().

Member Data Documentation

◆ maValues

const Values canvas::ParametricPolyPolygon::maValues
private

All defining values of this object.

Definition at line 148 of file parametricpolypolygon.hxx.

Referenced by getValues().

◆ mxDevice

css::uno::Reference< css::rendering::XGraphicDevice > canvas::ParametricPolyPolygon::mxDevice
private

Definition at line 145 of file parametricpolypolygon.hxx.

Referenced by disposing(), and getColorSpace().


The documentation for this class was generated from the following files: