This interface represents an ellipse(LEllipse object) More...
Public Member Functions | |
void | Draw (BOOL bFill, HDC hdc, double zoomX, double zoomY, double panX, double panY) |
void | FromEllipseRegion (ILEllipseRegion *val) |
double | GetArea () |
ILPoint * | GetBottom () |
ILRect * | GetBoundingRect () |
ILRect * | GetBoundingRotRect () |
ILPoint * | GetCenter () |
ILPoint * | GetLeft () |
double | GetPerimeter () |
ILPoint * | GetRight () |
ILPoint * | GetTop () |
ILPolygon * | Resample (int num) |
ILPolygon * | SamplingByAngle (double startArcAngle, double endArcAngle, double stepAngle) |
void | Set (double x, double y, double w, double h, double a) |
ILEllipseRegion * | ToEllipseRegion () |
ILEllipse * | Transform (ILTransform *tf) |
ILEllipse * | Translate (double offsetX, double offsetY) |
Public Member Functions inherited from ILObject | |
ILObject * | Copy () |
LPVErrorCode | Load (LString filename) |
void | Reset () |
LPVErrorCode | Save (LString filename) |
BOOL | Valid () |
Properties | |
double | Angle [get, set] |
The angle of the ellipse, aka. the orientation of the long axis. | |
double | Height [get, set] |
The height of the ellipse's minor axis. | |
double | Width [get, set] |
The length of the ellipse's major axis. | |
double | X [get, set] |
The x-coordinate of the ellipse's center. | |
double | Y [get, set] |
The y-coordinate of the ellipse's center. | |
This interface represents an ellipse(LEllipse object)
void Draw | ( | BOOL | bFill, |
HDC | hdc, | ||
double | zoomX, | ||
double | zoomY, | ||
double | panX, | ||
double | panY | ||
) |
Draw the ellipse on HDC.
[in] | bFill | Whether to fill the circle using current brush. |
void FromEllipseRegion | ( | ILEllipseRegion * | val | ) |
Set placement of the ellipse from the input ellipse region
double GetArea | ( | ) |
Get the area of the ellipse
val | Return the area value |
ILPoint* GetBottom | ( | ) |
Get the bottom end point of the ellipse which is on its minor axis
ILRect* GetBoundingRect | ( | ) |
Get the bounding rectangle of the ellipse
ILRect* GetBoundingRotRect | ( | ) |
Get the rotated bounding rectangle of the ellipse
ILPoint* GetCenter | ( | ) |
Get the center point of the ellipse
ILPoint* GetLeft | ( | ) |
Get the left end point of the ellipse which is on its major axis
double GetPerimeter | ( | ) |
Get the perimeter of the ellipse, using Ramanujan formula
val | Return the perimeter value |
ILPoint* GetRight | ( | ) |
Get the right end point of the ellipse which is on its major axis
ILPoint* GetTop | ( | ) |
Get the top end point of the ellipse which is on its minor axis
ILPolygon* Resample | ( | int | num | ) |
Resample the ellipse object into a closed polygon of the specified vertex count.
[in] | num | The count of the resampled vertexes. At least 3. |
result | Return the resampling result polygon |
ILPolygon* SamplingByAngle | ( | double | startArcAngle, |
double | endArcAngle, | ||
double | stepAngle | ||
) |
Sampling the ellipse into a polygon by the angle. The points are generated clockwise from the start to the end angle, one point per specified step angle.
[in] | startArcAngle | The start angle of the ellipse arc, in degrees |
[in] | endArcAngle | The end angle of the ellipse arc, in degrees |
[in] | stepAngle | The step angle in degrees |
result | Return the result polygon |
void Set | ( | double | x, |
double | y, | ||
double | w, | ||
double | h, | ||
double | a | ||
) |
Set placement of the ellipse
[in] | x | The x-coordinate of the ellipse's center |
[in] | y | The x-coordinate of the ellipse's center |
[in] | w | The width of the ellipse |
[in] | h | The height of the ellipse |
[in] | a | The angle of the ellipse, aka. the orientation of the long axis |
ILEllipseRegion* ToEllipseRegion | ( | ) |
Generate an ellipse region use the ellipse object
val | Return the ellipse region |
ILEllipse* Transform | ( | ILTransform * | tf | ) |
Transform the ellipse via the given transformation and return a new ellipse
[in] | tf | The transformation. |
Return | the new ellipse |
ILEllipse* Translate | ( | double | offsetX, |
double | offsetY | ||
) |
Translate the ellipse by the given offset and return a new ellipse
[in] | offsetX | The x-coordinate of the offset |
[in] | offsetY | The y-coordinate of the offset |
result | Return the new ellipse |