VTK  9.2.5
vtkTerrainContourLineInterpolator.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkTerrainContourLineInterpolator.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
44 #ifndef vtkTerrainContourLineInterpolator_h
45 #define vtkTerrainContourLineInterpolator_h
46 
48 #include "vtkInteractionWidgetsModule.h" // For export macro
49 
50 class vtkImageData;
52 
53 class VTKINTERACTIONWIDGETS_EXPORT vtkTerrainContourLineInterpolator
55 {
56 public:
61 
63 
67  void PrintSelf(ostream& os, vtkIndent indent) override;
69 
77  int InterpolateLine(vtkRenderer* ren, vtkContourRepresentation* rep, int idx1, int idx2) override;
78 
84  int UpdateNode(vtkRenderer*, vtkContourRepresentation*, double* vtkNotUsed(node),
85  int vtkNotUsed(idx)) override;
86 
88 
92  virtual void SetImageData(vtkImageData*);
93  vtkGetObjectMacro(ImageData, vtkImageData);
95 
97 
103  vtkGetObjectMacro(Projector, vtkProjectedTerrainPath);
105 
106 protected:
109 
110  vtkImageData* ImageData; // height field data
112 
113 private:
115  void operator=(const vtkTerrainContourLineInterpolator&) = delete;
116 };
117 
118 #endif
Defines API for interpolating/modifying nodes from a vtkContourRepresentation.
represent the vtkContourWidget
topologically and geometrically regular array of data
Definition: vtkImageData.h:163
a simple class to control print indentation
Definition: vtkIndent.h:119
project a polyline onto a terrain
abstract specification for renderers
Definition: vtkRenderer.h:182
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instances of this class.
int InterpolateLine(vtkRenderer *ren, vtkContourRepresentation *rep, int idx1, int idx2) override
Interpolate to create lines between contour nodes idx1 and idx2.
int UpdateNode(vtkRenderer *, vtkContourRepresentation *, double *vtkNotUsed(node), int vtkNotUsed(idx)) override
The interpolator is given a chance to update the node.
virtual void SetImageData(vtkImageData *)
Set the height field data.
static vtkTerrainContourLineInterpolator * New()
Instantiate this class.