VTK  9.2.5
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
48class vtkImageData;
49
50class VTKINTERACTIONWIDGETS_EXPORT vtkDijkstraImageContourLineInterpolator
52{
53public:
55
59 void PrintSelf(ostream& os, vtkIndent indent) override;
61
63
69 int InterpolateLine(vtkRenderer* ren, vtkContourRepresentation* rep, int idx1, int idx2) override;
70
72
77 virtual void SetCostImage(vtkImageData*);
78 vtkGetObjectMacro(CostImage, vtkImageData);
80
82
85 vtkGetObjectMacro(DijkstraImageGeodesicPath, vtkDijkstraImageGeodesicPath);
87
88protected:
91
94
95private:
97 void operator=(const vtkDijkstraImageContourLineInterpolator&) = delete;
98};
99
100#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
Definition: vtkImageData.h:54
a simple class to control print indentation
Definition: vtkIndent.h:40
abstract specification for renderers
Definition: vtkRenderer.h:73