Difference between revisions of "Slicer3:GUI Experiments:TkTreeCtrl"

From NAMIC Wiki
Jump to: navigation, search
 
Line 28: Line 28:
 
** Model Hierarchy display properties (Alex)
 
** Model Hierarchy display properties (Alex)
 
** EMSegment (Brad)
 
** EMSegment (Brad)
 +
** QueryAtlas (Wendy)
 
* Propose useful C++ API (all) for implementation by Sebastien and Yumin
 
* Propose useful C++ API (all) for implementation by Sebastien and Yumin

Revision as of 15:07, 13 July 2007

Home < Slicer3:GUI Experiments:TkTreeCtrl

Background

TkTreeCtrl is a pretty amazing set of interface functionality for displaying trees where each row can be a multi-column list and/or a set of interface widgets. The interface is highly configurable (as shown in the demos) and very efficient. It is a cross-platform tcl extension.

As of late June 2007, TkTreeCtrl is built as part of KWWidgets and is exposed for use in Slicer3.

Running the Demo in Slicer3

First, download and unpack the package from TkTreeCtrl. Version 2.2.3 or later should work.

In Slicer3:

  • open the tcl console (Control-T or use the menu)
  • cd to the directory where you unpacked TkTreeCtrl
  • cd to the demos directory
  • type the following commands
proc console {args} {}
source demo.tcl
wm deiconify .
  • experiment and have fun!
    • note that the File menu includes options for viewing the source of each demo (note how brief and elegant each demo is!)
    • you can even watch the events as you interact with the tree demos
    • you can edit the configuration parameters of the trees on the fly and see the visual result

Plans

  • Test the widget
    • Example MRML tree (Steve)
    • Model Hierarchy display properties (Alex)
    • EMSegment (Brad)
    • QueryAtlas (Wendy)
  • Propose useful C++ API (all) for implementation by Sebastien and Yumin