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
31#ifndef vtkPolygonalSurfaceContourLineInterpolator_h
32#define vtkPolygonalSurfaceContourLineInterpolator_h
33
34#include "vtkInteractionWidgetsModule.h" // For export macro
36
37VTK_ABI_NAMESPACE_BEGIN
39class vtkIdList;
40
41class VTKINTERACTIONWIDGETS_EXPORT vtkPolygonalSurfaceContourLineInterpolator
43{
44public:
46
50 void PrintSelf(ostream& os, vtkIndent indent) override;
52
54
60 int InterpolateLine(vtkRenderer* ren, vtkContourRepresentation* rep, int idx1, int idx2) override;
61
69 int UpdateNode(vtkRenderer*, vtkContourRepresentation*, double* vtkNotUsed(node),
70 int vtkNotUsed(idx)) override;
71
73
79 vtkSetMacro(DistanceOffset, double);
80 vtkGetMacro(DistanceOffset, double);
82
88
89protected:
92
98
99private:
102 void operator=(const vtkPolygonalSurfaceContourLineInterpolator&) = delete;
103
104 // Cache the last used vertex id's (start and end).
105 // If they are the same, don't recompute.
106 vtkIdType LastInterpolatedVertexIds[2];
107
108 vtkDijkstraGraphGeodesicPath* DijkstraGraphGeodesicPath;
109};
110
111VTK_ABI_NAMESPACE_END
112#endif
represent the vtkContourWidget
Dijkstra algorithm to compute the graph geodesic.
list of point or cell ids
Definition vtkIdList.h:23
a simple class to control print indentation
Definition vtkIndent.h:29
Contour interpolator for polygonal data.
Contour interpolator for to place points on polygonal surfaces.
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.
static vtkPolygonalSurfaceContourLineInterpolator * New()
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:59
int vtkIdType
Definition vtkType.h:315