SVG:SVG2zinc::Backend::TclScript - a backend class for generating Tcl script
use SVG:SVG2zinc::Backend::TclScript; $backend = SVG:SVG2zinc::Backend::TclScript->new( -out => filename_or_handle, -in => svgfilename, -verbose => 0|1, -render => 0|1|2, ); $backend->fileHeader(); $backend->treatLines("lineOfCode1", "lineOfCode2",...); $backend->comment("comment1", "comment2", ...); $backend->printLines("comment1", "comment2", ...); $backend->fileTail();
SVG:SVG2zinc::Backend::TclScript is a class for generating Tcl script to display SVG files. The generated script is based on TkZinc.
For more information, you should look at SVG:SVG2zinc::Backend(3pm).
The new method accepts parameters described in the SVG:SVG2zinc::Backend class and the following additionnal parameters:
The render value of the TkZinc widget. 0 means no openGL, 1 or 2 for openGL. Defaults to 1.
SVG::SVG2zinc::Backend and SVG::SVG2zinc(3pm)
This is higly experimental. Only few tests... The author is not a Tcl coder!
The Tk::Zinc::SVGExtension perl module provided with SVG::SVG2zinc should be converted in Tcl and imported by (or included in) the generated Tcl script.
Christophe Mertz <mertz at intuilab dot com>
CENA (C) 2003-2004
This program is free software; you can redistribute it and/or modify it under the term of the LGPL licence.
To install SVG::SVG2zinc, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SVG::SVG2zinc
CPAN shell
perl -MCPAN -e shell install SVG::SVG2zinc
For more information on module installation, please visit the detailed CPAN module installation guide.