VTK
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 =========================================================================*/
40 #ifndef vtkPolygonalSurfaceContourLineInterpolator_h
41 #define vtkPolygonalSurfaceContourLineInterpolator_h
42 
43 #include "vtkInteractionWidgetsModule.h" // For export macro
45 
47 class vtkIdList;
48 
50 {
51 public:
53 
57  void PrintSelf(ostream& os, vtkIndent indent) override;
59 
61 
67  int InterpolateLine( vtkRenderer *ren,
69  int idx1, int idx2 ) override;
70 
78  int UpdateNode( vtkRenderer *,
80  double * vtkNotUsed(node), int vtkNotUsed(idx) ) override;
81 
83 
89  vtkSetMacro( DistanceOffset, double );
90  vtkGetMacro( DistanceOffset, double );
92 
97  void GetContourPointIds( vtkContourRepresentation *rep, vtkIdList *idList );
98 
99 protected:
102 
108 
109 private:
111  void operator=(const vtkPolygonalSurfaceContourLineInterpolator&) = delete;
112 
113  // Cache the last used vertex id's (start and end).
114  // If they are the same, don't recompute.
115  vtkIdType LastInterpolatedVertexIds[2];
116 
117  vtkDijkstraGraphGeodesicPath* DijkstraGraphGeodesicPath;
118 };
119 
120 #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:57
int vtkIdType
Definition: vtkType.h:345
represent the vtkContourWidget
Dijkstra algorithm to compute the graph geodesic.
a simple class to control print indentation
Definition: vtkIndent.h:33
list of point or cell ids
Definition: vtkIdList.h:30
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.