VTK  9.2.5
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 =========================================================================*/
62 #ifndef vtkPolygonalSurfaceContourLineInterpolator_h
63 #define vtkPolygonalSurfaceContourLineInterpolator_h
64 
65 #include "vtkInteractionWidgetsModule.h" // For export macro
67 
69 class vtkIdList;
70 
71 class VTKINTERACTIONWIDGETS_EXPORT vtkPolygonalSurfaceContourLineInterpolator
73 {
74 public:
76 
80  void PrintSelf(ostream& os, vtkIndent indent) override;
82 
84 
90  int InterpolateLine(vtkRenderer* ren, vtkContourRepresentation* rep, int idx1, int idx2) override;
91 
99  int UpdateNode(vtkRenderer*, vtkContourRepresentation*, double* vtkNotUsed(node),
100  int vtkNotUsed(idx)) override;
101 
103 
109  vtkSetMacro(DistanceOffset, double);
110  vtkGetMacro(DistanceOffset, double);
112 
118 
119 protected:
122 
128 
129 private:
132  void operator=(const vtkPolygonalSurfaceContourLineInterpolator&) = delete;
133 
134  // Cache the last used vertex id's (start and end).
135  // If they are the same, don't recompute.
136  vtkIdType LastInterpolatedVertexIds[2];
137 
138  vtkDijkstraGraphGeodesicPath* DijkstraGraphGeodesicPath;
139 };
140 
141 #endif
represent the vtkContourWidget
Dijkstra algorithm to compute the graph geodesic.
list of point or cell ids
Definition: vtkIdList.h:143
a simple class to control print indentation
Definition: vtkIndent.h:119
Contour interpolator for polygonal data.
Contour interpolator for to place points on polygonal surfaces.
static vtkPolygonalSurfaceContourLineInterpolator * New()
int InterpolateLine(vtkRenderer *ren, vtkContourRepresentation *rep, int idx1, int idx2) override
Subclasses that wish to interpolate a line segment must implement this.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instances of this class.
double DistanceOffset
Draw the polyline at a certain height (in the direction of the vertex normal) above the polydata.
int UpdateNode(vtkRenderer *, vtkContourRepresentation *, double *vtkNotUsed(node), int vtkNotUsed(idx)) override
The interpolator is given a chance to update the node.
void GetContourPointIds(vtkContourRepresentation *rep, vtkIdList *ids)
Get the contour point ids.
abstract specification for renderers
Definition: vtkRenderer.h:182
int vtkIdType
Definition: vtkType.h:332