LibreOffice Module chart2 (master) 1
Public Member Functions | Private Attributes | List of all members
chart::LinearScaling Class Referencefinal

#include <Scaling.hxx>

Inheritance diagram for chart::LinearScaling:
[legend]
Collaboration diagram for chart::LinearScaling:
[legend]

Public Member Functions

 LinearScaling ()
 y(x) = x More...
 
 LinearScaling (double fSlope, double fOffset)
 y(x) = fSlope * x + fOffset More...
 
virtual ~LinearScaling () override
 
virtual OUString SAL_CALL getImplementationName () override
 declare XServiceInfo methods More...
 
virtual sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
virtual double SAL_CALL doScaling (double value) override
 
virtual css::uno::Reference< css::chart2::XScaling > SAL_CALL getInverseScaling () override
 
virtual OUString SAL_CALL getServiceName () override
 

Private Attributes

const double m_fSlope
 
const double m_fOffset
 

Detailed Description

Definition at line 94 of file Scaling.hxx.

Constructor & Destructor Documentation

◆ LinearScaling() [1/2]

chart::LinearScaling::LinearScaling ( )
explicit

y(x) = x

Definition at line 138 of file Scaling.cxx.

Referenced by getInverseScaling().

◆ LinearScaling() [2/2]

chart::LinearScaling::LinearScaling ( double  fSlope,
double  fOffset 
)

y(x) = fSlope * x + fOffset

Definition at line 143 of file Scaling.cxx.

◆ ~LinearScaling()

chart::LinearScaling::~LinearScaling ( )
overridevirtual

Definition at line 148 of file Scaling.cxx.

Member Function Documentation

◆ doScaling()

double SAL_CALL chart::LinearScaling::doScaling ( double  value)
overridevirtual

Definition at line 151 of file Scaling.cxx.

References m_fOffset, m_fSlope, and value.

◆ getImplementationName()

OUString SAL_CALL chart::LinearScaling::getImplementationName ( )
overridevirtual

declare XServiceInfo methods

Definition at line 173 of file Scaling.cxx.

◆ getInverseScaling()

uno::Reference< XScaling > SAL_CALL chart::LinearScaling::getInverseScaling ( )
overridevirtual

Definition at line 159 of file Scaling.cxx.

References LinearScaling(), m_fOffset, and m_fSlope.

◆ getServiceName()

OUString SAL_CALL chart::LinearScaling::getServiceName ( )
overridevirtual

Definition at line 168 of file Scaling.cxx.

◆ getSupportedServiceNames()

css::uno::Sequence< OUString > SAL_CALL chart::LinearScaling::getSupportedServiceNames ( )
overridevirtual

Definition at line 183 of file Scaling.cxx.

◆ supportsService()

sal_Bool SAL_CALL chart::LinearScaling::supportsService ( const OUString &  ServiceName)
overridevirtual

Definition at line 178 of file Scaling.cxx.

References cppu::supportsService().

Member Data Documentation

◆ m_fOffset

const double chart::LinearScaling::m_fOffset
private

Definition at line 123 of file Scaling.hxx.

Referenced by doScaling(), and getInverseScaling().

◆ m_fSlope

const double chart::LinearScaling::m_fSlope
private

Definition at line 122 of file Scaling.hxx.

Referenced by doScaling(), and getInverseScaling().


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