Class used for elevation preprocessing. More...
#include <TerrainViz/nodes/SoTVizDataPreprocessor.h>
Public Member Functions | |
SoTVizDataPreprocessor () | |
virtual | ~SoTVizDataPreprocessor () |
SbBool | process () |
SbBool | addFile (const SbString &fileName) |
SbBool | writeToXML (const SbString &fileName) |
This class allows preprocessing of multiple elevation files.
Please see SoTVizPreprocessor for datum and ellipsoid definitions and compatibility.
Supported input file formats include:
Outputs a single elevation file (.DAT) used by the SoTVizRender class. The output units can be specified by calling setOutputUnits. All input files must have the same resolution. The reference resolution is taken from the first input file. The writeToXML method exports the DAT file description to be read by SoTVizRender.
SoTVizDataPreprocessor::SoTVizDataPreprocessor | ( | ) |
Constructor.
virtual SoTVizDataPreprocessor::~SoTVizDataPreprocessor | ( | ) | [virtual] |
Destructor.
Adds an elevation file to the preprocessor.
SbBool SoTVizDataPreprocessor::process | ( | ) | [virtual] |
Processes the file list and generates a .dat file named elevations.dat.
Implements SoTVizPreprocessor.
Writes resulting elevation and textures description in a TerrainViz XML file.
Note this is a file name, not a path. The path used is the one given by setDestDirectory. Both preprocessors (textures and data) must reference the same file.
Implements SoTVizPreprocessor.