• ↖ Home
  • Developer´s Guide
    • ↑ Contents
    • Code
    • Embedding
    • Tcl
    • SVG
    • SVG-Import
    • Projects
    • License
    • Index
  • Download
    • Jeszra: Source Code

    • Ruby Wrapper Classes
    • Python Wrapper Classes
    • Lisp Wrapper Classes
  • Books@Lulu.com...
    • Jeszra: Design by Gestalt
    • Jeszra Library: Design by Gestalt

    • Gestalt Items
    • Runtime Library
  • Manual
    • Jeszra Book

    • Tcl Manual
    • Ruby Manual
    • Python Manual
    • Lisp Manual

    • API
  • About
pathcanvas
← Chapter 3. Tcl- Code Generation →

Name

dumper::pathcanvas

Synopsis

          pathcanvas window \
             coords properties
        

Description

Create a tkpath path entry inside a canvas window. This special version is necessary, in order to deal with path’s coordinates. Note 08/09/2007 - 15:02 : coordinates are rather larger ... better to transform this stuff in equal bits. There are always three items defining a point. Last entry is a single 'Z' M 557.0 578.0 Z

»z« may appear in the middle of a path definition, this happens when a hole is inside the path element.

Token 1 to 3 depends on the type of node. M, L, H is alright for normal stuff but not for cubic splines....

So nice it might be, it does not fly... M,L,H,V,A,Q,T,C,S,Z

Complete rewrite was necessary in order to deal with non-standard (x y) coordinates. Most prominently cubic splines. ... now it does fly ;-)

Features special code for dealing with underdefined S-segments, as they originate from Zinc.

Clients

pathcanvas is being used by ::vgcode::dump-configure-PathCanvas, ::vgcode::dump-configure-Canvas clients.

Example 3.28. ::vgcode::dump-configure-PathCanvas using pathcanvas

...
# in the general fashion.

if {{path} == $type} {
append _graphics \
    [dumper::pathcanvas $ta_name $coords_l  \
    [dumper::itemproperties  $optsl $id {} $target]]
   



← ↖ →
notebook ↑ commentDescript
SourceForge Logo

Copyright © 2009–2010 Arndt Roger Schneider