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

Name

dumper::clipzinc

Synopsis

          clipzinc ta_name \
             type ID group \
             clippedGroup coords properties \
             transformation
        

Description

Creates an Zinc item of »type« and applies it as a clip to the group given inside variable »clippedGroup«.

Under SVG, the newly element is generated as a child of the viewport's <defs/> section. The clipPath Element is later referenced on the given group via »clip-path«.

»coords« and »properties« are clean here. However the item cannot being added to the group it is supposed to clip.

Requires »simple code model«.

Clients

clipzinc is being used by ::dumper::clipzinc.

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

Example 4.28. ::vgcode::dump-configure-Zinc using clipzinc

...
# with this item (should be the parent group).
set clippedGroup \
    [groupOf $target $_clip($id)]

append _graphics  \
    [dumper::clipzinc  $ta_name $type $id $group $clippedGroup  $coords $properties $transformation]
   



← ↖ →
getImage ↑ imageNew
SourceForge Logo

Copyright © 2009–2010 Arndt Roger Schneider