VTK
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 =========================================================================*/
41 #ifndef vtkTerrainContourLineInterpolator_h
42 #define vtkTerrainContourLineInterpolator_h
43 
44 #include "vtkInteractionWidgetsModule.h" // For export macro
46 
47 class vtkImageData;
49 
50 class VTKINTERACTIONWIDGETS_EXPORT vtkTerrainContourLineInterpolator
52 {
53 public:
58 
60 
65  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
67 
75  int InterpolateLine( vtkRenderer *ren,
77  int idx1, int idx2 ) VTK_OVERRIDE;
78 
84  int UpdateNode( vtkRenderer *,
86  double * vtkNotUsed(node), int vtkNotUsed(idx) ) VTK_OVERRIDE;
87 
89 
93  virtual void SetImageData(vtkImageData *);
94  vtkGetObjectMacro(ImageData, vtkImageData);
96 
98 
104  vtkGetObjectMacro(Projector, vtkProjectedTerrainPath);
106 
107 protected:
109  ~vtkTerrainContourLineInterpolator() VTK_OVERRIDE;
110 
111  vtkImageData *ImageData; // height field data
113 
114 private:
116  void operator=(const vtkTerrainContourLineInterpolator&) VTK_DELETE_FUNCTION;
117 };
118 
119 #endif
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instances of this class.
virtual int UpdateNode(vtkRenderer *, vtkContourRepresentation *, double *vtkNotUsed(node), int vtkNotUsed(idx))
The interpolator is given a chance to update the node.
project a polyline onto a terrain
abstract specification for renderers
Definition: vtkRenderer.h:57
virtual int InterpolateLine(vtkRenderer *ren, vtkContourRepresentation *rep, int idx1, int idx2)=0
Subclasses that wish to interpolate a line segment must implement this.
represent the vtkContourWidget
a simple class to control print indentation
Definition: vtkIndent.h:33
topologically and geometrically regular array of data
Definition: vtkImageData.h:39
Defines API for interpolating/modifying nodes from a vtkContourRepresentation.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...