Rogue Wave Views |
Rogue Wave Views Documentation Home |
This is an abstract class that represents the concept of the position, on an axis, of a component. More...
#include <ilviews/printing/composite.h>
Public Member Functions | |
virtual | ~SegmentCoordinates () |
The destructor. | |
virtual SegmentCoordinates * | clone () const =0 |
This function returns a new object allocated on the heap; this object is a copy of the current object. More... | |
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 is an abstract class that represents the concept of the position, on an axis, of a component.
Library: ilvprint
A SegmentCoordinates
is defined by two PositionCoordinate
objects and a length. One and only one among the positions or the current objects must be deductible (DeducedPositionCoordinate
or DeducedSegmentCoordinates
), that is computed by the means of the two others.
|
pure virtual |
This function returns a new object allocated on the heap; this object is a copy of the current object.
Implemented in IlvPrintableComposite::RatioRelativeSegmentCoordinates, IlvPrintableComposite::DeltaRelativeSegmentCoordinates, and IlvPrintableComposite::DeducedSegmentCoordinates.
PositionCoordinate const& IlvPrintableComposite::SegmentCoordinates::getFirstPosition | ( | ) | const |
Gets the first PositionCoordinate
of the segment.
PositionCoordinate
of the segment. PositionCoordinate const& IlvPrintableComposite::SegmentCoordinates::getLastPosition | ( | ) | const |
Gets the last PositionCoordinate
of the segment.
PositionCoordinate
of the segment. PositionCoordinate const& IlvPrintableComposite::SegmentCoordinates::getOtherPosition | ( | PositionCoordinate const & | position | ) | const |
Gets the other position than the given position of the segment.
IlBoolean IlvPrintableComposite::SegmentCoordinates::isValid | ( | ) | const |
Returns whether the object is valid.
IlTrue
when the object is valid, IlFalse
otherwise. IlBoolean IlvPrintableComposite::SegmentCoordinates::setFirstPosition | ( | PositionCoordinate const & | newPosition | ) |
Modifies the first PositionCoordinate
.
newPosition | The new first PositionCoordinate . |
IlBoolean IlvPrintableComposite::SegmentCoordinates::setLastPosition | ( | PositionCoordinate const & | newPosition | ) |
Modifies the last PositionCoordinate
.
newPosition | The new last PositionCoordinate . |
© Copyright 2015, 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.