This interface represents an arc(LArc object) More...
Public Member Functions | |
void | Draw (BOOL bFill, HDC hdc, double zoomX, double zoomY, double panX, double panY) |
void | FromAnnulusSectorRegion (ILAnnulusSectorRegion *val) |
double | GetAngle () |
ILRect * | GetBoundingRect () |
ILPoint * | GetCenter () |
ILCircle * | GetCircle () |
ILPoint * | GetEndPoint () |
double | GetLength () |
ILPoint * | GetStartPoint () |
ILPolygon * | Resample (int num) |
void | Set (double x, double y, double r, double aStart, double aEnd) |
ILAnnulusSectorRegion * | ToAnnulusSectorRegion (int inExp, int outExp) |
ILArc * | Transform (ILTransform *tf) |
ILArc * | 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 | EndAngle [get, set] |
The end angle in degrees. | |
double | Radius [get, set] |
The radius of the imaginary circle. | |
double | StartAngle [get, set] |
The start angle in degrees. The arc starts clockwise from the StartAngle and ends to EndAngle. | |
double | X [get, set] |
The x-coordinate of the imaginary circle's center. | |
double | Y [get, set] |
The y-coordinate of the imaginary circle's center. | |
This interface represents an arc(LArc object)
void Draw | ( | BOOL | bFill, |
HDC | hdc, | ||
double | zoomX, | ||
double | zoomY, | ||
double | panX, | ||
double | panY | ||
) |
Draw the arc on HDC.
[in] | bFill | Whether to fill the arc using current brush. |
void FromAnnulusSectorRegion | ( | ILAnnulusSectorRegion * | val | ) |
Set placement of the arc from the input annulus sector region. The start and end angle is the same as the annulus sector region, the radius is the averaging of the inner and outer radius of the region.
double GetAngle | ( | ) |
Get the angle size of the arc segment
result | Return the angle. |
ILRect* GetBoundingRect | ( | ) |
Get the bounding rectangle of all the points
ILPoint* GetCenter | ( | ) |
Get the center point of the imaginary circle
ILCircle* GetCircle | ( | ) |
Get the imaginary circle
ILPoint* GetEndPoint | ( | ) |
Get the end point
double GetLength | ( | ) |
Get the length of the arc segment
result | Return the length. |
ILPoint* GetStartPoint | ( | ) |
Get the start point
ILPolygon* Resample | ( | int | num | ) |
Resample the arc object into an open polygon of the specified vertex count The start and end point is always kept in the resampled result.
[in] | num | The count of the resampled vertexes, at least 2 |
result | Return the resampling result polygon |
void Set | ( | double | x, |
double | y, | ||
double | r, | ||
double | aStart, | ||
double | aEnd | ||
) |
Set placement of the arc
[in] | x | The x-coordinate of the imaginary circle's center point |
[in] | y | The y-coordinate of the imaginary circle's center point |
[in] | r | The radius of the imaginary circle |
[in] | aStart | The start angle in degrees |
[in] | aEnd | The end angle in degrees |
ILAnnulusSectorRegion* ToAnnulusSectorRegion | ( | int | inExp, |
int | outExp | ||
) |
Generate an annulus sector region use the arc object with the given expansion
[in] | inExp | The expansion pixels from the imaginary circle's placement that generate the inner radius of the output annulus sector region |
[in] | outExp | The expansion pixels from the imaginary circle's placement that generate the outer radius of the output annulus sector region |
val | Return the annulus sector region |
ILArc* Transform | ( | ILTransform * | tf | ) |
Transform the arc via the given transformation and return a new arc. Note that for an affine or perspective transformation, the result arc's imaginary circle is the bounding circle of the mapping result which may be an ellipse arc.
[in] | tf | The transformation. |
Return | the new arc |
ILArc* Translate | ( | double | offsetX, |
double | offsetY | ||
) |
Translate the arc by the given offset and return a new arc
[in] | offsetX | The x-coordinate of the offset |
[in] | offsetY | The y-coordinate of the offset |
result | Return the new arc |