几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】problems with odgibasedrawobjectsetcolor90, please help (http://www.dimcax.com/hust/showthread.php?t=18229)

yang686526 2009-05-06 11:56 PM

【转帖】problems with odgibasedrawobjectsetcolor90, please help
 
problems with odgibasedrawobject::setcolor(), please help
problems with odgibasedrawobject::setcolor(), please help
hi,
i moved 2 days ago from 1.08 to 1.09.
rendering was ok in the previous release, but now it seems that the virtual method setcolor(oduint16 color) of my odgsbaseview derived object is not called anymore, so i don't know at what point to change the color in our rendering machine.
can someone help me with this?
thanks in advance for any help.
best regards
chudomir
it should be overridden and handled at
void exgsgdidevice::draw_color(colorref rgb)
{
if(m_currgb!=rgb)
{
m_bbrushvalid = m_bpenvalid = false;
m_currgb = rgb;
}
}
within exgsgdidevice.cpp.
thank you for your reply.
but it comes through setcurrtraits(), while i wanted to handle the direct set of the current color in the view-derived class (when it is set by the dwgdirect core). anyway, i'll goi through setcurrtraits() now...
thanks again.
regards
chudomir


所有的时间均为北京时间。 现在的时间是 03:33 PM.