VTK  9.3.1
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 
37 VTK_ABI_NAMESPACE_BEGIN
39 class vtkIdList;
40 
41 class VTKINTERACTIONWIDGETS_EXPORT vtkPolygonalSurfaceContourLineInterpolator
43 {
44 public:
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 
87  void GetContourPointIds(vtkContourRepresentation* rep, vtkIdList* ids);
88 
89 protected:
92 
98 
99 private:
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 
111 VTK_ABI_NAMESPACE_END
112 #endif
Contour interpolator for to place points on polygonal surfaces.
double DistanceOffset
Draw the polyline at a certain height (in the direction of the vertex normal) above the polydata...
abstract specification for renderers
Definition: vtkRenderer.h:61
int vtkIdType
Definition: vtkType.h:315
represent the vtkContourWidget
Dijkstra algorithm to compute the graph geodesic.
a simple class to control print indentation
Definition: vtkIndent.h:28
list of point or cell ids
Definition: vtkIdList.h:22
int UpdateNode(vtkRenderer *, vtkContourRepresentation *, double *vtkNotUsed(node), int vtkNotUsed(idx)) override=0
The interpolator is given a chance to update the node.
Contour interpolator for polygonal data.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instances of this class.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
int InterpolateLine(vtkRenderer *ren, vtkContourRepresentation *rep, int idx1, int idx2) override=0
Subclasses that wish to interpolate a line segment must implement this.