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  GradientType {
  GradientType::Linear,
  GradientType::Elliptical,
  GradientType::Rectangular
}
 

Public Member Functions

virtual void SAL_CALL disposing () 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...
 

Static Public Member Functions

static css::uno::Sequence< OUString > getAvailableServiceNames ()
 
static ParametricPolyPolygoncreate (const css::uno::Reference< css::rendering::XGraphicDevice > &rDevice, const OUString &rServiceName, const css::uno::Sequence< css::uno::Any > &rArgs)
 

Private Member Functions

virtual ~ParametricPolyPolygon () override
 
 ParametricPolyPolygon (const ParametricPolyPolygon &)=delete
 
ParametricPolyPolygonoperator= (const ParametricPolyPolygon &)=delete
 
 ParametricPolyPolygon (const css::uno::Reference< css::rendering::XGraphicDevice > &rDevice, 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 (const css::uno::Reference< css::rendering::XGraphicDevice > &rDevice, GradientType eType, const css::uno::Sequence< css::uno::Sequence< double > > &colors, const css::uno::Sequence< double > &stops)
 

Static Private Member Functions

static 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 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 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 Attributes inherited from cppu::BaseMutex
mutable::osl::Mutex m_aMutex
 

Detailed Description

Definition at line 41 of file parametricpolypolygon.hxx.

Member Enumeration Documentation

Enumerator
Linear 
Elliptical 
Rectangular 

Definition at line 45 of file parametricpolypolygon.hxx.

Constructor & Destructor Documentation

canvas::ParametricPolyPolygon::~ParametricPolyPolygon ( )
overrideprivatevirtual

Definition at line 210 of file parametricpolypolygon.cxx.

canvas::ParametricPolyPolygon::ParametricPolyPolygon ( const ParametricPolyPolygon )
privatedelete
canvas::ParametricPolyPolygon::ParametricPolyPolygon ( const css::uno::Reference< css::rendering::XGraphicDevice > &  rDevice,
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.

canvas::ParametricPolyPolygon::ParametricPolyPolygon ( const css::uno::Reference< css::rendering::XGraphicDevice > &  rDevice,
GradientType  eType,
const css::uno::Sequence< css::uno::Sequence< double > > &  colors,
const css::uno::Sequence< double > &  stops 
)
private

Member Function Documentation

ParametricPolyPolygon * canvas::ParametricPolyPolygon::create ( const css::uno::Reference< css::rendering::XGraphicDevice > &  rDevice,
const OUString &  rServiceName,
const css::uno::Sequence< css::uno::Any > &  rArgs 
)
static
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
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 121 of file parametricpolypolygon.cxx.

References Linear, and ParametricPolyPolygon().

Referenced by create().

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
void SAL_CALL canvas::ParametricPolyPolygon::disposing ( )
overridevirtual

Dispose all internal references.

Definition at line 162 of file parametricpolypolygon.cxx.

References cppu::BaseMutex::m_aMutex, and mxDevice.

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

Definition at line 175 of file parametricpolypolygon.cxx.

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

Definition at line 187 of file parametricpolypolygon.cxx.

References cppu::BaseMutex::m_aMutex, and mxDevice.

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

Definition at line 195 of file parametricpolypolygon.cxx.

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

Definition at line 169 of file parametricpolypolygon.cxx.

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

Definition at line 181 of file parametricpolypolygon.cxx.

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

Definition at line 205 of file parametricpolypolygon.cxx.

ParametricPolyPolygon::Values canvas::ParametricPolyPolygon::getValues ( ) const

Query all defining values of this object atomically.

Definition at line 244 of file parametricpolypolygon.cxx.

References cppu::BaseMutex::m_aMutex, and maValues.

Referenced by cairocanvas::doOperation(), and cairocanvas::patternFromParametricPolyPolygon().

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

Definition at line 200 of file parametricpolypolygon.cxx.

References cppu::supportsService().

Member Data Documentation

const Values canvas::ParametricPolyPolygon::maValues
private

All defining values of this object.

Definition at line 149 of file parametricpolypolygon.hxx.

Referenced by getValues().

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

Definition at line 146 of file parametricpolypolygon.hxx.

Referenced by disposing(), and getColorSpace().


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