Tk Library Source Code

Documentation
Login


[ Main Table Of Contents | Table Of Contents | Keyword Index | Categories | Modules | Applications ]

NAME

canvas::edit::points - Editing a cloud of points on a canvas

Table Of Contents

SYNOPSIS

package require Tcl 8.5
package require Tk 8.5
package require canvas::edit::points ?0.1?

::canvas::edit points objectName canvas options...
objectName destroy
objectName enable
objectName disable
objectName active
objectName add x y
objectName clear
createCmd canvas x y
highlightCmd on canvas item
highlightCmd off canvas state
dataCmd add editorObj id x y
dataCmd remove editorObj id
dataCmd move start editorObj id
dataCmd move delta editorObj id x y dx dy
dataCmd move done editorObj id

DESCRIPTION

This package provides a class whose instances handle editing a cloud of point markers on a canvas. Instances can be configured with regard to the visual appearance of markers (regular, and highlighted). Note that instances do not store the edited points themselves, but delegate this to a configurable object.

Class API

Instance API

Instances of the point cloud editors provide the following API:

Options

The class command accepts the following options

Bugs, Ideas, Feedback

This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category canvas of the Tklib Trackers. Please also report any ideas for enhancements you may have for either package and/or documentation.

KEYWORDS

canvas, editing, point cloud, points