Public Member Functions | Static Public Member Functions | Protected Attributes

LibBoard::Transform Struct Reference

#include <Transforms.h>

Inheritance diagram for LibBoard::Transform:
Inheritance graph
[legend]

Public Member Functions

 Transform ()
virtual ~Transform ()
virtual double mapX (double x) const
virtual double mapY (double y) const =0
virtual void apply (double &x, double &y) const
virtual double scale (double x) const
virtual double rounded (double x) const
virtual void setBoundingBox (const Rect &rect, const double pageWidth, const double pageHeight, const double margin)=0

Static Public Member Functions

static double round (const double &x)

Protected Attributes

double _scale
double _deltaX
double _deltaY
double _height

Detailed Description

The base class for transforms.


Constructor & Destructor Documentation

LibBoard::Transform::Transform (  )  [inline]
virtual LibBoard::Transform::~Transform (  )  [inline, virtual]

Member Function Documentation

void LibBoard::Transform::apply ( double &  x,
double &  y 
) const [virtual]

References mapX(), and mapY().

double LibBoard::Transform::mapX ( double  x  )  const [virtual]
virtual double LibBoard::Transform::mapY ( double  y  )  const [pure virtual]
double LibBoard::Transform::round ( const double &  x  )  [inline, static]
double LibBoard::Transform::rounded ( double  x  )  const [virtual]

Reimplemented in LibBoard::TransformFIG, and LibBoard::TransformSVG.

References round().

Referenced by mapX(), LibBoard::TransformEPS::mapY(), and scale().

double LibBoard::Transform::scale ( double  x  )  const [virtual]
virtual void LibBoard::Transform::setBoundingBox ( const Rect rect,
const double  pageWidth,
const double  pageHeight,
const double  margin 
) [pure virtual]

Field Documentation

double LibBoard::Transform::_deltaX [protected]
double LibBoard::Transform::_deltaY [protected]
double LibBoard::Transform::_height [protected]
double LibBoard::Transform::_scale [protected]

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