TEllipse Class Reference
Member Functions Documentation
Construct(const TRect &)
IMPORT_C void | Construct | ( | const TRect & | aRect | ) | |
Initialises the values of the ellipse so that it conforms to a rectangle entered as a parameter.
Parameters
const TRect & aRect | the rectangle within which the ellipse is drawn |
Intersection(const TRect &, const TPoint &)
Constructs an ellipse from the rectangle which it is given and assesses the points position with regard to the ellipse and where they intersect.
Parameters
const TRect & aRect | The rectangle within which the ellipse is drawn. |
const TPoint & aPoint | A point to compare with the ellipse to determine if intersection occurs. |
NextStep(TPoint &, TPoint &, TPoint &, TPoint &)
By analysing the current state of the ellipse the process is taken to the next appropriate step. If iStatus = EInitialised only one step will be taken, if the ellipse is already semi constructed then it will be taken to completion. Takes in four point parameters that defines the rectangle in order to pass to SingleStep(aTopLeft,aTopRight,aBottomLeft,aBottomRight).
Parameters
TPoint & aTopLeft | Top left corner of rectangle |
TPoint & aTopRight | Top right corner of rectangle |
TPoint & aBottomLeft | Bottom left corner of rectangle |
TPoint & aBottomRight | Bottom right corner of rectangle |
Output(TPoint &, TPoint &, TPoint &, TPoint &)
Sets the absolute points that define the ellipse as calculated using its iOffset from the origin and using the half width and half height of the rectangle iA and iB.
Parameters
TPoint & aTopLeft | The absolute (x,y) position for the top left point. |
TPoint & aTopRight | The absolute (x,y) position for the top right point. |
TPoint & aBottomLeft | The absolute (x,y) position for the bottom left point. |
TPoint & aBottomRight | The absolute (x,y) position for the bottom right point. |
SingleStep(TPoint &, TPoint &, TPoint &, TPoint &)
Does the next stage in producing an ellipse by taking four points (the corners of the rectangle the ellipse should fill) as parameters. Updates TEllipse status accordingly and calls Output(aTopLeft,aTopRight,aBottomLeft,aBottomRight).
Parameters
TPoint & aTopLeft | Top left corner of rectangle |
TPoint & aTopRight | Top right corner of rectangle |
TPoint & aBottomLeft | Bottom left corner of rectangle |
TPoint & aBottomRight | Bottom right corner of rectangle |
Member Enumerations Documentation
Enum TEllipseStatus
Enumeration for the ellipse production life cycle
Enumerators
EInitialised |
Ellipse has been initialised but has no area
|
EFirstSector |
The ellipse is drawn as two parabolas. These are in two sectors, the top and bottom half of the rectangle. The first sector means the top parabola has been produced.
|
ESecondSector |
The parabola that occupies the bottom half of the rectangle has been produced.
|
EComplete |
The ellipse is complete
|
ELine |
The ellipse has either a height or width of two units or less and so takes the appearance of a line
|
Member Data Documentation
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.