VTK: Interaction/Widgets/vtkDijkstraImageContourLineInterpolator.h Source File

| VTK 9.3.1

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