Sophie

Sophie

distrib > Mageia > 5 > i586 > media > core-release > by-pkgid > 82ac505190c212a37e5a9f824939c992 > files > 68

vtk-examples-6.0.0-8.mga5.i586.rpm

#
# This example creates a couple of class instances and print them to
# the standard output. No rendering window is created.
#

#
# Do not forget to add the path to the Wrapping/Tcl directory to your
# TCLLIBPATH environment variable. Use forward slash / instead of \
# and quote (") path containing spaces.
# Also check that the path to your DLL (i.e. your build dir) is also
# in your PATH environment variable.
#

#
# First we include the Tcl packages which will make available
# all of the vtk commands to Tcl
#
package require vtkmy

#
# Next we create an instance of vtkBar
#
puts "Create vtkBar object and print it."

vtkBar bar
puts [bar Print]

#
# Then we create an instance of vtkBar2
#
puts "Create vtkBar2 object and print it."

vtkBar2 bar2
puts [bar2 Print]

#
# And we create an instance of vtkImageFoo
#
puts "Create vtkImageFoo object and print it."

vtkImageFoo imagefoo
puts [imagefoo Print]

puts "Looks good ?"

#
# Free up any objects we created
#
vtkCommand DeleteAllObjects

#
# Exit the application
#
exit