vtkTerrainContourLineInterpolator

Section: Visualization Toolkit Widget Classes

Usage

vtkTerrainContourLineInterpolator interpolates nodes on height field data. The class is meant to be used in conjunciton with a vtkContourWidget, enabling you to draw paths on terrain data. The class internally uses a vtkProjectedTerrainPath. Users can set kind of interpolation desired between two node points by setting the modes of the this filter. For instance:

\begin{verbatim} contourRepresentation->SetLineInterpolator(interpolator); interpolator->SetImageData( demDataFile ); interpolator->GetProjector()->SetProjectionModeToHug(); interpolator->SetHeightOffset(25.0); \end{verbatim}

You are required to set the ImageData to this class as the height-field image.

To create an instance of class vtkTerrainContourLineInterpolator, simply invoke its constructor as follows

  obj = vtkTerrainContourLineInterpolator

Methods

The class vtkTerrainContourLineInterpolator has several methods that can be used. They are listed below. Note that the documentation is translated automatically from the VTK sources, and may not be completely intelligible. When in doubt, consult the VTK website. In the methods listed below, obj is an instance of the vtkTerrainContourLineInterpolator class.