/usr/lib/tcltk/vtk-6.0/pkgIndex.tcl is in tcl-vtk6 6.0.0-6.
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 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | # Visualization Toolkit (VTK) Tcl package configuration.
package ifneeded vtkinit {6.0} {
namespace eval ::vtk::init {
proc load_library_package {libName libPath {libPrefix {lib}}} {
#first try to load a static package, then try the shared package.
if {[catch "load {} $libName"]} {
set libExt [info sharedlibextension]
set currentDirectory [pwd]
set libFile [file join $libPath "$libPrefix$libName-6.0$libExt"]
if {[catch "cd {$libPath}; load {$libFile}" errorMessage]} {
puts $errorMessage
}
cd $currentDirectory
}
}
proc require_package {name {version {6.0}}} {
if {[catch "package require -exact $name $version" errorMessage]} {
puts $errorMessage
return 0
} else {
return 1
}
}
set version {6.0}
set kits {}
foreach kit { base CommonCore CommonMath CommonMisc CommonSystem CommonTransforms CommonDataModel CommonColor CommonExecutionModel FiltersCore CommonComputationalGeometry FiltersGeneral ImagingCore ImagingFourier FiltersStatistics FiltersExtraction InfovisCore FiltersGeometry FiltersSources IOCore IOImage IOXMLParser RenderingCore RenderingFreeType ImagingHybrid RenderingOpenGL RenderingContextIID ChartsCore IOGeometry IOXML DomainsChemistry IOLegacy ParallelCore FiltersAMR FiltersCosmo FiltersFlowPaths FiltersGeneric ImagingSources FiltersHybrid FiltersHyperTree ImagingGeneral FiltersImaging FiltersModeling FiltersParallel ParallelMPI FiltersParallelFlowPaths FiltersParallelGeometry FiltersParallelImaging FiltersParallelMPI FiltersParallelStatistics FiltersProgrammable FiltersReebGraph FiltersSelection FiltersTexture FiltersVerdict InteractionStyle IOSQL InfovisLayout RenderingLabel ImagingColor RenderingAnnotation RenderingVolume InteractionWidgets ViewsCore ViewsInfovis GeovisCore IOAMR IOEnSight IOExodus RenderingGLtoPS IOExport IOMovie IOFFMPEG IOGDAL IOImport IOInfovis IOLSDyna IOMINC IOMPIImage IOMPIParallel IOMySQL IONetCDF IOODBC IOPLY IOParallel IOParallelExodus IOParallelLSDyna IOParallelNetCDF IOPostgreSQL IOVPIC IOVideo IOXdmfII ImagingMath ImagingMorphological ImagingStatistics ImagingStencil InfovisBoostGraphAlgorithms InteractionImage PythonInterpreter RenderingFreeTypeOpenGL RenderingHybridOpenGL RenderingImage RenderingLOD RenderingMatplotlib RenderingParallel RenderingQt RenderingTk RenderingVolumeAMR RenderingVolumeOpenGL TestingRendering ViewsContextIID ViewsGeovis } {
lappend kits [string tolower "${kit}"]
}
}
package provide vtkinit {6.0}
}
foreach kit { CommonCore CommonMath CommonMisc CommonSystem CommonTransforms CommonDataModel CommonColor CommonExecutionModel FiltersCore CommonComputationalGeometry FiltersGeneral ImagingCore ImagingFourier FiltersStatistics FiltersExtraction InfovisCore FiltersGeometry FiltersSources IOCore IOImage IOXMLParser RenderingCore RenderingFreeType ImagingHybrid RenderingOpenGL RenderingContextIID ChartsCore IOGeometry IOXML DomainsChemistry IOLegacy ParallelCore FiltersAMR FiltersCosmo FiltersFlowPaths FiltersGeneric ImagingSources FiltersHybrid FiltersHyperTree ImagingGeneral FiltersImaging FiltersModeling FiltersParallel ParallelMPI FiltersParallelFlowPaths FiltersParallelGeometry FiltersParallelImaging FiltersParallelMPI FiltersParallelStatistics FiltersProgrammable FiltersReebGraph FiltersSelection FiltersTexture FiltersVerdict InteractionStyle IOSQL InfovisLayout RenderingLabel ImagingColor RenderingAnnotation RenderingVolume InteractionWidgets ViewsCore ViewsInfovis GeovisCore IOAMR IOEnSight IOExodus RenderingGLtoPS IOExport IOMovie IOFFMPEG IOGDAL IOImport IOInfovis IOLSDyna IOMINC IOMPIImage IOMPIParallel IOMySQL IONetCDF IOODBC IOPLY IOParallel IOParallelExodus IOParallelLSDyna IOParallelNetCDF IOPostgreSQL IOVPIC IOVideo IOXdmfII ImagingMath ImagingMorphological ImagingStatistics ImagingStencil InfovisBoostGraphAlgorithms InteractionImage PythonInterpreter RenderingFreeTypeOpenGL RenderingHybridOpenGL RenderingImage RenderingLOD RenderingMatplotlib RenderingParallel RenderingQt RenderingTk RenderingVolumeAMR RenderingVolumeOpenGL TestingRendering ViewsContextIID ViewsGeovis } {
package ifneeded "vtk${kit}TCL" {6.0} "
package require -exact vtkinit {6.0}
::vtk::init::load_library_package {vtk${kit}TCL} {[file dirname [file dirname [file dirname [info script]]]]}
"
package ifneeded "vtk[string tolower ${kit}]" {6.0} "
package require -exact vtkinit {6.0}
if {\[catch {source \[file join {[file dirname [info script]]} {vtk[string tolower ${kit}]} {vtk[string tolower ${kit}].tcl}\]} errorMessage\]} {
puts \$errorMessage
}
"
}
foreach src {vtk vtkbase vtkinteraction vtktesting} {
package ifneeded ${src} {6.0} "
package require -exact vtkinit {6.0}
if {\[catch {source \[file join {[file dirname [info script]]} {$src} {$src.tcl}\]} errorMessage\]} {
puts \$errorMessage
}
"
}
|