This class is used to represent the position, on an axis, of a component. It is a percentage of the bounding box of an IlvPrintableComposite. It is stored in hundredths of a percent.
More...
#include <ilviews/printing/composite.h>
Public Member Functions | |
| RatioRelativeSegmentCoordinates (PositionCoordinate const &first, PositionCoordinate const &last, IlvDim length) | |
| The constructor. More... | |
| virtual SegmentCoordinates * | clone () const |
| This function returns a new object allocated on the heap; this object is a copy of the current object. More... | |
Public Member Functions inherited from IlvPrintableComposite::RelativeSegmentCoordinates | |
| void | setLength (IlvDim newLength) |
| Sets the internal value of the length. More... | |
Public Member Functions inherited from IlvPrintableComposite::SegmentCoordinates | |
| virtual | ~SegmentCoordinates () |
| The destructor. | |
| PositionCoordinate const & | getFirstPosition () const |
Gets the first PositionCoordinate of the segment. More... | |
| PositionCoordinate const & | getLastPosition () const |
Gets the last PositionCoordinate of the segment. More... | |
| PositionCoordinate const & | getOtherPosition (PositionCoordinate const &position) const |
| Gets the other position than the given position of the segment. More... | |
| IlBoolean | isValid () const |
| Returns whether the object is valid. More... | |
| IlBoolean | setFirstPosition (PositionCoordinate const &newPosition) |
Modifies the first PositionCoordinate. More... | |
| IlBoolean | setLastPosition (PositionCoordinate const &newPosition) |
Modifies the last PositionCoordinate. More... | |
This class is used to represent the position, on an axis, of a component. It is a percentage of the bounding box of an IlvPrintableComposite. It is stored in hundredths of a percent.
Library: ilvprint
| IlvPrintableComposite::RatioRelativeSegmentCoordinates::RatioRelativeSegmentCoordinates | ( | PositionCoordinate const & | first, |
| PositionCoordinate const & | last, | ||
| IlvDim | length | ||
| ) |
The constructor.
| first | The position of the start point of the segment. |
| last | The position of the last point of the segment. |
| length | The length of the segment. |
|
virtual |
This function returns a new object allocated on the heap; this object is a copy of the current object.
Implements IlvPrintableComposite::SegmentCoordinates.