/usr/src/WrapITK/Tcl/Tests/PrintAll.tcl is in libinsighttoolkit3-dev 3.20.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | package require InsightToolkit
#
# Exercise the PrintSelf of each class
#
if {$argc == 0} {
set fileid stdout
} else {
set fileid [open [lindex $argv 0] w]
}
set b [itkStringStream]
set allClasses [info command itk*_New]
foreach class $allClasses {
puts $fileid "--------------- $class ---------------"
catch {set a [$class]; $a Print [$b GetStream]; puts $fileid "[$b GetString]"; $b Reset}
}
exit
|