VTK  9.3.20240424
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
50#ifndef vtkPolygonalSurfaceContourLineInterpolator_h
51#define vtkPolygonalSurfaceContourLineInterpolator_h
52
53#include "vtkInteractionWidgetsModule.h" // For export macro
55
56VTK_ABI_NAMESPACE_BEGIN
58class vtkIdList;
59
60class VTKINTERACTIONWIDGETS_EXPORT vtkPolygonalSurfaceContourLineInterpolator
62{
63public:
65
69 void PrintSelf(ostream& os, vtkIndent indent) override;
71
73
79 int InterpolateLine(vtkRenderer* ren, vtkContourRepresentation* rep, int idx1, int idx2) override;
80
88 int UpdateNode(vtkRenderer*, vtkContourRepresentation*, double* vtkNotUsed(node),
89 int vtkNotUsed(idx)) override;
90
92
98 vtkSetMacro(DistanceOffset, double);
99 vtkGetMacro(DistanceOffset, double);
101
107
108protected:
111
117
118private:
121 void operator=(const vtkPolygonalSurfaceContourLineInterpolator&) = delete;
122
123 // Cache the last used vertex id's (start and end).
124 // If they are the same, don't recompute.
125 vtkIdType LastInterpolatedVertexIds[2];
126
127 vtkDijkstraGraphGeodesicPath* DijkstraGraphGeodesicPath;
128};
129
130VTK_ABI_NAMESPACE_END
131#endif
represent the vtkContourWidget
Dijkstra algorithm to compute the graph geodesic.
list of point or cell ids
Definition vtkIdList.h:133
a simple class to control print indentation
Definition vtkIndent.h:108
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
int vtkIdType
Definition vtkType.h:315