linetypes rendering
linetypes rendering
hi,
what is the stuff to implement in a odgsbaseview derived class to make the linetypes to be generated?
is it implemented in the dwgdrect toolkit? i can't see it working in the rendering examples.
sorry if being stupid and can't see something evident...
thanks in advance for any help.
regards
chudomir
hi,
it works itself when odgsbaseview:

olyline(),circle(),etc are called. you should override polylinedc()/polygondc() onlyfff"> to get linetype dashes in screen coordinates from dd framework. so you'll be not able to handle curves (they will be tesselated before getting linetyped). this stuff will be redesigned in the future to be more flexible.
thank you for your reply dmitry,
i have not overriden the polylinedc and polyfondc methods.
for curves i use only polyline() and then output the input polyline into a opengl-based rendering system.
i can see no linestyles being rendered.
i suppose that polyline() should be called several times for a single oddbline entitiy which have some non-continuous linetype.
i'm actually confused - i have a drawing with one linetyped oddbline entity.
polyline is being called only once (with 2 points) in my application.
i try with odamfcapp.exe.
- open the drawing and then select shaded rendering - the line is not linetyped (probably it is not rendered at shaded mode at all?).
- open the drawing and select opengl wireframe rendering - the line is linetyped.
so the questions is: what to call or register in order to make the polyline() method being called several times with the appropriate line pieces.
thank you for your help.
regards
chudomir
hi,
plese, look at .
so you should either receive polylinedc() calls or apply linetype yourself in your polyline() implementation.
p.s. but rather wait for v1.10
thank you for your reply. i'll wait for the next build.
best regards and wishes
chudomir