[Lazarus] FPVectorial and TAChart

Felipe Monteiro de Carvalho felipemonteiro.carvalho at gmail.com
Thu Apr 21 13:46:42 CEST 2011


On Wed, Apr 20, 2011 at 1:20 PM, Alexander Klenin <klenin at gmail.com> wrote:
> I have committed my experimental code -- see fpvectorial demo in
> TAChart since r30400.
> Try changing output format to, say, DXF -- you will get SIGSEGV.
> This bug is in TvVectorialDocument.CreateVectorialWriter -- it does not check
> GvVectorialFormats[i].WriterClass for nil.
> Also, there are a few typos: "unsuported" -> "unsupported",. "seams" -> "seems".

Fixed.

> It does not work on Windows due to WriteLn calls
> (conditional on FPVECTORIAL_TOCANVAS_DEBUG) -- should probably be
> disabled in SVN

Done

> After fixing that, I was able to view g-code file created by TAChart back-end.
> However, it bears very little resemblance to the original chart :(

Can you send me the gcode file? Are you viewing with fpvviewer?

>> Using a class was required in a bug report... not my invention. About
>> the fields, well maybe I should then remove the possibility of having
>> a different Pen for each part of the polyline.
>
> At least you can move it into a descendant class.

Done. Now both are possible: One pen for the entire line, or one Pen
per segment, will be faster to draw too.

-- 
Felipe Monteiro de Carvalho




More information about the Lazarus mailing list