This abstract class is used to represent the concept of the end point of a segment relatively to the bounding box of an IlvPrintableComposite
.
More...
#include <ilviews/printing/composite.h>
This abstract class is used to represent the concept of the end point of a segment relatively to the bounding box of an IlvPrintableComposite
.
Library: ilvprint
◆ RelativePositionCoordinate() [1/2]
IlvPrintableComposite::RelativePositionCoordinate::RelativePositionCoordinate |
( |
IlvPos |
position, |
|
|
IlBoolean |
isRelativeToFirst = IlTrue |
|
) |
| |
The constructor.
- Parameters
-
position | The position. |
isRelativeToFirst | Flag to specify whether the position is relative to the first or the last position of the reference segment. |
◆ RelativePositionCoordinate() [2/2]
The copy constructor.
- Parameters
-
other | Another instance of this class. |
◆ getPosition()
IlvPos IlvPrintableComposite::RelativePositionCoordinate::getPosition |
( |
| ) |
const |
Gets the value of the position.
This is the value given as parameter of the constructor or set by setPosition
.
- Returns
- The value of the position.
- See also
- setPosition
◆ isRelativeToFirstReferencePosition()
IlBoolean IlvPrintableComposite::RelativePositionCoordinate::isRelativeToFirstReferencePosition |
( |
| ) |
const |
Returns whether the position is relative to the first position of the reference.
- Returns
IlTrue
when it is relative to the first position of the reference, IlFalse
otherwise.
- See also
- setRelativeToFirstReferencePosition
◆ operator=()
The assignment operator.
- Parameters
-
other | Another instance of this class. |
- Returns
- A reference to the current object.
◆ setPosition()
void IlvPrintableComposite::RelativePositionCoordinate::setPosition |
( |
IlvPos |
newPosition | ) |
|
Sets the internal value of the position.
- Parameters
-
newPosition | The new value of the position. |
- See also
- getPosition()
◆ setRelativeToFirstReferencePosition()
void IlvPrintableComposite::RelativePositionCoordinate::setRelativeToFirstReferencePosition |
( |
IlBoolean |
val | ) |
|
Sets whether the position is relative to the first position of the reference.
- Parameters
-
val | IlTrue when it is relative to the first position of the reference, IlFalse otherwise. |
- See also
- isRelativeToFirstReferencePosition