![]() |
【转帖】use Object Lineweight In A Plotstyle File
use object lineweight in a plotstyle file
use object lineweight in a plotstyle file hy sergey ! now i understand why you just implement read only support for plotstyles we are trying to use your class to implement our own plotsyles files. but i think we've find something that doesn't work fine with odpsplotstyledata. in a plotstyle file we can associate a color with a line weight, but if in the line weight we select "use object line weight", odpsplotstyledata::lineweight() return 0 even if the object's lineweight is different from 0. fillstyle, lineendstyle, linejoinstyle, linetype have the case useobject, but lineweight haven't it. please, how could we know if we have to use the object lineweight ? if odpsplotstyledata::lineweight() returns 0, it means "use object lineweight". to obtain lineweight value, use odpsplotstyletable::getlineweightat(odpsplotstyled ata::lineweight()-1). btw, plotstyles can be technique for associating lineweight with color index, not color with lineweight. sincerely yours, george udov thanks udov, your answer really help me ! my problem was in exgdivectorizeview:ntraitsmodified(), i was calling effectiveplotstyle()->lineweight() to test if "use object lineweight" was selecting for this plotstyle, now i call m_plotstyle->lineweight() and it works ! |
所有的时间均为北京时间。 现在的时间是 12:37 AM. |