VTK  9.4.20250114
vtkDijkstraImageContourLineInterpolator.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
29#ifndef vtkDijkstraImageContourLineInterpolator_h
30#define vtkDijkstraImageContourLineInterpolator_h
31
33#include "vtkInteractionWidgetsModule.h" // For export macro
34
35VTK_ABI_NAMESPACE_BEGIN
37class vtkImageData;
38
39class VTKINTERACTIONWIDGETS_EXPORT vtkDijkstraImageContourLineInterpolator
41{
42public:
44
48 void PrintSelf(ostream& os, vtkIndent indent) override;
50
52
58 int InterpolateLine(vtkRenderer* ren, vtkContourRepresentation* rep, int idx1, int idx2) override;
59
61
66 virtual void SetCostImage(vtkImageData*);
67 vtkGetObjectMacro(CostImage, vtkImageData);
69
71
74 vtkGetObjectMacro(DijkstraImageGeodesicPath, vtkDijkstraImageGeodesicPath);
76
77protected:
80
83
84private:
86 void operator=(const vtkDijkstraImageContourLineInterpolator&) = delete;
87};
88
89VTK_ABI_NAMESPACE_END
90#endif
Defines API for interpolating/modifying nodes from a vtkContourRepresentation.
represent the vtkContourWidget
Contour interpolator for placing points on an image.
static vtkDijkstraImageContourLineInterpolator * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instances of this class.
virtual void SetCostImage(vtkImageData *)
Set the image data for the vtkDijkstraImageGeodesicPath.
int InterpolateLine(vtkRenderer *ren, vtkContourRepresentation *rep, int idx1, int idx2) override
Subclasses that wish to interpolate a line segment must implement this.
Dijkstra algorithm to compute the graph geodesic.
topologically and geometrically regular array of data
a simple class to control print indentation
Definition vtkIndent.h:108
abstract specification for renderers