Skip to content, Skip to search

Changes

TrakEM2 Scripting

1 byte removed, 21:34, 29 October 2009
m
Introduction to scripting TrakEM2
*The canvas into which images are dragged and visualized is part of a [http://www.ini.uzh.ch/~acardona/api/ini/trakem2/display/Display.html Display] object. The latter has methods to access its [http://www.ini.uzh.ch/~acardona/api/ini/trakem2/display/Selection.html Selection], as well as the [http://www.ini.uzh.ch/~acardona/api/ini/trakem2/display/Layer.html Layer] and [http://www.ini.uzh.ch/~acardona/api/ini/trakem2/display/LayerSet.html LayerSet] that the Display is viewing.
*The Layer contains 2D objects like [http://www.ini.uzh.ch/~acardona/api/ini/trakem2/display/Patch.html Patch] (each Patch wraps an image) and [http://www.ini.uzh.ch/~acardona/api/ini/trakem2/display/DlabelDLabel.html DLabel] (floating text).
*The LayerSet contains 3D objects like [http://www.ini.uzh.ch/~acardona/api/ini/trakem2/display/AreaList.html AreaList], [http://www.ini.uzh.ch/~acardona/api/ini/trakem2/display/Pipe.html Pipe], [http://www.ini.uzh.ch/~acardona/api/ini/trakem2/display/Polyline.html Polyline], [http://www.ini.uzh.ch/~acardona/api/ini/trakem2/display/Ball.html Ball], [http://www.ini.uzh.ch/~acardona/api/ini/trakem2/display/Dissector.html Dissector], [http://www.ini.uzh.ch/~acardona/api/ini/trakem2/display/Treeline.html Treeline] and [http://www.ini.uzh.ch/~acardona/api/ini/trakem2/display/Stack.html Stack] (the latter wraps an ij.ImagePlus that contains an ij.ImageStack).
More convenient are the methods <i>scale</i>, <i>translate</i>, <i>rotate</i> and particularly <i>preTransform</i>, for the manipulation of a [http://www.ini.uzh.ch/~acardona/api/ini/trakem2/display/Displayable.html Displayable]'s affine transform (see [http://java.sun.com/javase/6/docs/api/java/awt/geom/AffineTransform.html AffineTransform]) and that of its linked Displayables (any transform propagates to the linked ones).
 
= See also =
Emailconfirmed, uploaders
653
edits