[vtkusers] file handling

David Cole david.cole at kitware.com
Mon Mar 14 09:03:44 EST 2005


>
> How would you write the line
> reader SetFileName "$VTK_DATA_ROOT/Data/masonry.bmp"
>
> in C++?

$VTK_DATA_ROOT represents the environment variable named VTK_DATA_ROOT. 
It should be replaced with the location of the VTKData folder on your 
system...

A search of the current CVS VTK C++ source files for VTK_DATA_ROOT 
yields hits in the source file VTK/Rendering/vtkTesting.cxx. See that 
file for an example usage of getenv to extract the value of VTK_DATA_ROOT.


Hope this helps,
David





More information about the vtkusers mailing list