高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】oddbellipse to windows cdcellipse90
oddbellipse to windows cdc::ellipse()
oddbellipse to windows cdc::ellipse()
greetings,
i am reading in an ellipse from the oddbellipse class. i need to display this shape in a dialog in windows using cdc::ellipse(x1, y1, x2, y2) where x1 = the x coordinate of the upper-left corner of the ellipse's bounding rectangle, y1 = upper-left y coord, x2 = lower-right x and y2 = lower-right y.
how do i user what i am given in the oddbellipse class to build this ellipse in the windows interface?
thanks,
al
oddbellipse can't be represented by such data, due to these reasons:
1. oddbellipse can be rotated about its center. (its major axis can be neither perpendicular nor parallel to x axis).
2. oddbellipse can be really a part of ellipse (elliptic arc).
so oddbellipse is much more general case then cdc::ellipse.
sincerely yours,
george udov
so, are you saying that the oddbelliipse entity which dwgdirect reads from the dwg file cannot be displayed in windows?
no :-)
i'm saying that the oddbelliipse entity which dwgdirect reads from the dwg file cannot be displayed using cdc::ellipse function.
dwgdirect rendering displaying oddbellipse entity in manner other then using cdc::ellipse(x1, y1, x2, y2). best way is to obtain odgeelliparc3d, then call odgeelliparc3d::getsamplepoints to obtain polyline, approximating the source ellipse.
btw, aren't you think that it is much more easy to use dwgdirect rendering capabilities to display dwg files?
sincerely yours,
george udov
|