VTK  9.2.20230606
vtkDijkstraImageContourLineInterpolator.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkDijkstraImageContourLineInterpolator.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
41 #ifndef vtkDijkstraImageContourLineInterpolator_h
42 #define vtkDijkstraImageContourLineInterpolator_h
43 
45 #include "vtkInteractionWidgetsModule.h" // For export macro
46 
47 VTK_ABI_NAMESPACE_BEGIN
49 class vtkImageData;
50 
51 class VTKINTERACTIONWIDGETS_EXPORT vtkDijkstraImageContourLineInterpolator
53 {
54 public:
56 
60  void PrintSelf(ostream& os, vtkIndent indent) override;
62 
64 
70  int InterpolateLine(vtkRenderer* ren, vtkContourRepresentation* rep, int idx1, int idx2) override;
71 
73 
78  virtual void SetCostImage(vtkImageData*);
79  vtkGetObjectMacro(CostImage, vtkImageData);
81 
83 
86  vtkGetObjectMacro(DijkstraImageGeodesicPath, vtkDijkstraImageGeodesicPath);
88 
89 protected:
92 
95 
96 private:
98  void operator=(const vtkDijkstraImageContourLineInterpolator&) = delete;
99 };
100 
101 VTK_ABI_NAMESPACE_END
102 #endif
Defines API for interpolating/modifying nodes from a vtkContourRepresentation.
represent the vtkContourWidget
Contour interpolator for placing points on an image.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instances of this class.
static vtkDijkstraImageContourLineInterpolator * New()
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
Definition: vtkImageData.h:164
a simple class to control print indentation
Definition: vtkIndent.h:120
abstract specification for renderers
Definition: vtkRenderer.h:183