Rogue Wave Views Foundation Package API Reference Guide |
Rogue Wave Views Documentation Home |
Class for measurement system in centimeters. More...
#include <ilviews/printing/units.h>
Public Member Functions | |
IlvPrintCMUnit () | |
Default constructor. More... | |
IlvPrintCMUnit (IlvPrintCMUnit const &other) | |
Copy constructor. More... | |
IlvPrintCMUnit (IlvPrintUnit const &other) | |
Conversion constructor from an IlvPrintUnit . More... | |
IlvPrintCMUnit (double units) | |
Conversion constructor from a double. More... | |
virtual double | getPoints () const |
Returns the value expressed in points. More... | |
virtual IlString | getUnitName () const |
Returns a string that is the name of the unit (cm). More... | |
virtual void | setPoints (double points) |
Sets the value expressed in points. More... | |
Public Member Functions inherited from IlvPrintUnit | |
IlvPrintUnit () | |
Default constructor. More... | |
IlvPrintUnit (double units) | |
Conversion constructor from a double. More... | |
virtual | ~IlvPrintUnit () |
Destructor. More... | |
double | getUnits () const |
Returns the value expressed in units. More... | |
IlBoolean | operator!= (IlvPrintUnit const &other) const |
InEquality test. More... | |
IlvPrintUnit & | operator*= (double units) |
Multiplies the current object by the value expressed in units given as parameter. More... | |
IlvPrintUnit & | operator+= (IlvPrintUnit const &other) |
Adds to the current object the value of the object given as parameter. More... | |
IlvPrintUnit & | operator+= (double units) |
Adds to the current object the value expressed in units given as parameter. More... | |
IlvPrintUnit & | operator-= (IlvPrintUnit const &other) |
Subtracts from the current object the value of the object given as parameter. More... | |
IlvPrintUnit & | operator-= (double units) |
Subtracts from the current object the value expressed in units given as parameter. More... | |
IlvPrintUnit & | operator/= (double units) |
Divides the current object by the value expressed in units given as parameter. More... | |
IlvPrintUnit & | operator= (IlvPrintUnit const &other) |
Assignment operator. More... | |
IlvPrintUnit & | operator= (double units) |
Assignment operator. More... | |
IlBoolean | operator== (IlvPrintUnit const &other) const |
Equality test. More... | |
void | setUnits (double units) |
Sets the value expressed in units. More... | |
IlString | toString () const |
Returns a string representation of the value expressed in units. More... | |
Protected Member Functions | |
virtual IlString | getUnitNamePlural () const |
Returns a string that is the plural name of the unit (cm). More... | |
Class for measurement system in centimeters.
Library: ilvprint
IlvPrintCMUnit::IlvPrintCMUnit | ( | ) |
Default constructor.
It initializes the object in a coherent state.
IlvPrintCMUnit::IlvPrintCMUnit | ( | IlvPrintCMUnit const & | other | ) |
Copy constructor.
It creates an IlvPrintCMUnit
from another IlvPrintCMUnit
object.
other | A const reference to an IlvPrintCMUnit . |
IlvPrintCMUnit::IlvPrintCMUnit | ( | IlvPrintUnit const & | other | ) |
Conversion constructor from an IlvPrintUnit
.
It creates an IlvPrintCMUnit
from an IlvPrintUnit
object.
other | A const reference to an IlvPrintUnit . |
IlvPrintCMUnit::IlvPrintCMUnit | ( | double | units | ) |
Conversion constructor from a double.
This constructor creates an IlvPrint
from a double.
units | A double, the number of units of the IlvPrintUnit . |
|
virtual |
Returns the value expressed in points.
It translates the value returned by getUnits
, expressed in centimeters, into a value expressed in points.
Implements IlvPrintUnit.
|
virtual |
Returns a string that is the name of the unit (cm).
IlString
, the name of the unit. Implements IlvPrintUnit.
|
protectedvirtual |
Returns a string that is the plural name of the unit (cm).
IlString
, the plural name unit. Implements IlvPrintUnit.
|
virtual |
Sets the value expressed in points.
It translates the value given as parameter, expressed in points, into centimeters and then stores it (through setUnits
).
points | A double, the value expressed in points. |
Implements IlvPrintUnit.
© Copyright 2018, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.