VTK  9.2.6
vtkPolygonalSurfaceContourLineInterpolator.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPolygonalSurfaceContourLineInterpolator.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 =========================================================================*/
43 #ifndef vtkPolygonalSurfaceContourLineInterpolator_h
44 #define vtkPolygonalSurfaceContourLineInterpolator_h
45 
46 #include "vtkInteractionWidgetsModule.h" // For export macro
48 
50 class vtkIdList;
51 
52 class VTKINTERACTIONWIDGETS_EXPORT vtkPolygonalSurfaceContourLineInterpolator
54 {
55 public:
57 
61  void PrintSelf(ostream& os, vtkIndent indent) override;
63 
65 
71  int InterpolateLine(vtkRenderer* ren, vtkContourRepresentation* rep, int idx1, int idx2) override;
72 
80  int UpdateNode(vtkRenderer*, vtkContourRepresentation*, double* vtkNotUsed(node),
81  int vtkNotUsed(idx)) override;
82 
84 
90  vtkSetMacro(DistanceOffset, double);
91  vtkGetMacro(DistanceOffset, double);
93 
98  void GetContourPointIds(vtkContourRepresentation* rep, vtkIdList* ids);
99 
100 protected:
103 
109 
110 private:
113  void operator=(const vtkPolygonalSurfaceContourLineInterpolator&) = delete;
114 
115  // Cache the last used vertex id's (start and end).
116  // If they are the same, don't recompute.
117  vtkIdType LastInterpolatedVertexIds[2];
118 
119  vtkDijkstraGraphGeodesicPath* DijkstraGraphGeodesicPath;
120 };
121 
122 #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:72
int vtkIdType
Definition: vtkType.h:332
represent the vtkContourWidget
Dijkstra algorithm to compute the graph geodesic.
a simple class to control print indentation
Definition: vtkIndent.h:39
list of point or cell ids
Definition: vtkIdList.h:33
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.