• ↖ 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
groupzinc
← Chapter 4. SVG- Code Generation →

Name

dumper::groupzinc

Synopsis

          groupzinc window \
             ta_name properties group \
             transformation ?pgroup?
        

Description

»group« contains the name of a variable, in which the generated Zinc group is stored.

This variable name is used inside SVG as the ID of the created group element. »group« is later used inside »zincNew« to add children to this node–this is different to »canvasNew« where, there are no groups for Tk items.

The Zinc window must be queried for the parent group, this isn't possible here!

Side-effect generates a variable »_lastgroup« the value is used later by zincNew and contains the the future ID of that group!

Walking down the Zinc hierarchy isn't straight-forward. There is a special routine in the parser section to do that: »walkDownZincGroups«, in short the Z-Order must be preserved. And the Zinc does not –never– report its elements this way...

Clients

groupzinc is being used by ::dumper::zincNew.

groupzinc is being used by ::vgcode::dump-configure-Zinc clients.

Example 4.27. ::vgcode::dump-configure-Zinc using groupzinc

...


set group \
    [groupOf $target $id]
set generated \
    [dumper::groupzinc  $target $ta_name $properties $group  $transformation $pgroup]
   



← ↖ →
pathcanvas ↑ getImage
SourceForge Logo

Copyright © 2009–2010 Arndt Roger Schneider