VTK  9.3.0
vtkPolygonalSurfaceContourLineInterpolator.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
40 #ifndef vtkPolygonalSurfaceContourLineInterpolator_h
41 #define vtkPolygonalSurfaceContourLineInterpolator_h
42 
43 #include "vtkInteractionWidgetsModule.h" // For export macro
45 
46 VTK_ABI_NAMESPACE_BEGIN
48 class vtkIdList;
49 
50 class VTKINTERACTIONWIDGETS_EXPORT vtkPolygonalSurfaceContourLineInterpolator
52 {
53 public:
55 
59  void PrintSelf(ostream& os, vtkIndent indent) override;
61 
63 
69  int InterpolateLine(vtkRenderer* ren, vtkContourRepresentation* rep, int idx1, int idx2) override;
70 
78  int UpdateNode(vtkRenderer*, vtkContourRepresentation*, double* vtkNotUsed(node),
79  int vtkNotUsed(idx)) override;
80 
82 
88  vtkSetMacro(DistanceOffset, double);
89  vtkGetMacro(DistanceOffset, double);
91 
97 
98 protected:
101 
107 
108 private:
111  void operator=(const vtkPolygonalSurfaceContourLineInterpolator&) = delete;
112 
113  // Cache the last used vertex id's (start and end).
114  // If they are the same, don't recompute.
115  vtkIdType LastInterpolatedVertexIds[2];
116 
117  vtkDijkstraGraphGeodesicPath* DijkstraGraphGeodesicPath;
118 };
119 
120 VTK_ABI_NAMESPACE_END
121 #endif
represent the vtkContourWidget
Dijkstra algorithm to compute the graph geodesic.
list of point or cell ids
Definition: vtkIdList.h:32
a simple class to control print indentation
Definition: vtkIndent.h:38
Contour interpolator for polygonal data.
Contour interpolator for to place points on polygonal surfaces.
static vtkPolygonalSurfaceContourLineInterpolator * New()
int InterpolateLine(vtkRenderer *ren, vtkContourRepresentation *rep, int idx1, int idx2) override
Subclasses that wish to interpolate a line segment must implement this.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instances of this class.
double DistanceOffset
Draw the polyline at a certain height (in the direction of the vertex normal) above the polydata.
int UpdateNode(vtkRenderer *, vtkContourRepresentation *, double *vtkNotUsed(node), int vtkNotUsed(idx)) override
The interpolator is given a chance to update the node.
void GetContourPointIds(vtkContourRepresentation *rep, vtkIdList *ids)
Get the contour point ids.
abstract specification for renderers
Definition: vtkRenderer.h:71
int vtkIdType
Definition: vtkType.h:315