This class encapsulates an object that may be scaled. More...
#include <ilviews/printing/printable.h>
Public Member Functions | |
| IlvPrintableScalable (IlvRect const &scalableArea, IlvRegion const *clip=0, IlvTransformer const *t=0) | |
| The default constructor. More... | |
| virtual IlvRect | getBBox (IlvPrintableJob const &job) const |
| Gets the bounding box of the area to print. More... | |
| IlvRegion const & | getClip () const |
| Returns the clip size. More... | |
| IlvRect const & | getScalableArea () const |
| Returns the area to be printed. More... | |
| IlvTransformer const * | getTransformer () const |
| Gets the transformer to be used by the drawing. More... | |
| IlBoolean | hasClip () const |
| Returns an indication of whether a clip was given or not. More... | |
| IlBoolean | hasTransformer () const |
| Returns an indication of whether a transformer was given or not. More... | |
| void | resetClip () |
| Resets the clip. More... | |
| void | resetTransformer () |
| Resets the transformer. More... | |
| void | setClip (IlvRegion const &clip) |
| Sets the clip size. More... | |
| void | setScalableArea (IlvRect const &scalableArea) |
| Sets the area to be printed. More... | |
| void | setTransformer (IlvTransformer const *t) |
| Sets the transformer to be used by the drawing. More... | |
Public Member Functions inherited from IlvPrintable | |
| IlvPrintable () | |
| The default constructor. | |
| IlvPrintable (IlvPrintable const &other) | |
| The copy constructor. More... | |
| virtual | ~IlvPrintable () |
| The destructor. More... | |
| void | lock () |
| Locks the current instance. More... | |
| IlvPrintable & | operator= (IlvPrintable const &other) |
| The assignment operator. More... | |
| IlBoolean | print (IlvPrintableJob const &job) const |
| Prints the contents of the object. More... | |
| void | unlock () |
| Unlocks the current instance. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from IlvPrintable | |
| virtual IlBoolean | internalPrint (IlvPrintableJob const &job) const =0 |
| This function actually prints the document. More... | |
This class encapsulates an object that may be scaled.
Library: ilvprint
This is an abstract class that is intended to be inherited.
| IlvPrintableScalable::IlvPrintableScalable | ( | IlvRect const & | scalableArea, |
| IlvRegion const * | clip = 0, |
||
| IlvTransformer const * | t = 0 |
||
| ) |
The default constructor.
| scalableArea | The area to be printed. |
| clip | An optional rectangle used to clip the drawing. |
| t | An optional transformer used by the drawing. |
|
virtual |
Gets the bounding box of the area to print.
| job | The settings of the current print job. |
Implements IlvPrintable.
| IlvRegion const & IlvPrintableScalable::getClip | ( | ) | const |
| IlvRect const & IlvPrintableScalable::getScalableArea | ( | ) | const |
Returns the area to be printed.
| IlvTransformer const * IlvPrintableScalable::getTransformer | ( | ) | const |
Gets the transformer to be used by the drawing.
IlvTransformer. | IlBoolean IlvPrintableScalable::hasClip | ( | ) | const |
Returns an indication of whether a clip was given or not.
IlTrue if a clip was given, IlFalse otherwise. | IlBoolean IlvPrintableScalable::hasTransformer | ( | ) | const |
Returns an indication of whether a transformer was given or not.
IlTrue if a transformer was given, or IlFalse otherwise. | void IlvPrintableScalable::resetClip | ( | ) |
Resets the clip.
The clip is no longer used (hasClip() returns IlFalse).
| void IlvPrintableScalable::resetTransformer | ( | ) |
Resets the transformer.
The transformer is no longer used (hasTransformer() returns IlFalse).
| void IlvPrintableScalable::setClip | ( | IlvRegion const & | clip | ) |
Sets the clip size.
The size is sensible only if hasClip() returns IlTrue. The clip is a rectangle.
| clip | The clip size. |
| void IlvPrintableScalable::setScalableArea | ( | IlvRect const & | scalableArea | ) |
Sets the area to be printed.
| scalableArea | The area to be printed. |
| void IlvPrintableScalable::setTransformer | ( | IlvTransformer const * | t | ) |
Sets the transformer to be used by the drawing.
| t | A const pointer to an IlvTransformer. |