高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】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 !
|