VTK  9.0.1
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 
49 class VTKINTERACTIONWIDGETS_EXPORT vtkPolygonalSurfaceContourLineInterpolator
51 {
52 public:
54 
58  void PrintSelf(ostream& os, vtkIndent indent) override;
60 
62 
68  int InterpolateLine(vtkRenderer* ren, vtkContourRepresentation* rep, int idx1, int idx2) override;
69 
77  int UpdateNode(vtkRenderer*, vtkContourRepresentation*, double* vtkNotUsed(node),
78  int vtkNotUsed(idx)) override;
79 
81 
87  vtkSetMacro(DistanceOffset, double);
88  vtkGetMacro(DistanceOffset, double);
90 
95  void GetContourPointIds(vtkContourRepresentation* rep, vtkIdList* idList);
96 
97 protected:
100 
106 
107 private:
110  void operator=(const vtkPolygonalSurfaceContourLineInterpolator&) = delete;
111 
112  // Cache the last used vertex id's (start and end).
113  // If they are the same, don't recompute.
114  vtkIdType LastInterpolatedVertexIds[2];
115 
116  vtkDijkstraGraphGeodesicPath* DijkstraGraphGeodesicPath;
117 };
118 
119 #endif
vtkIdType
int vtkIdType
Definition: vtkType.h:338
vtkPolyDataContourLineInterpolator::InterpolateLine
int InterpolateLine(vtkRenderer *ren, vtkContourRepresentation *rep, int idx1, int idx2) override=0
Subclasses that wish to interpolate a line segment must implement this.
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkContourRepresentation
represent the vtkContourWidget
Definition: vtkContourRepresentation.h:117
vtkPolyDataContourLineInterpolator.h
vtkPolyDataContourLineInterpolator::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkIdList
list of point or cell ids
Definition: vtkIdList.h:30
vtkPolygonalSurfaceContourLineInterpolator
Contour interpolator for to place points on polygonal surfaces.
Definition: vtkPolygonalSurfaceContourLineInterpolator.h:49
vtkPolyDataContourLineInterpolator
Contour interpolator for polygonal data.
Definition: vtkPolyDataContourLineInterpolator.h:34
vtkRenderer
abstract specification for renderers
Definition: vtkRenderer.h:67
vtkDijkstraGraphGeodesicPath
Dijkstra algorithm to compute the graph geodesic.
Definition: vtkDijkstraGraphGeodesicPath.h:48
vtkPolyDataContourLineInterpolator::UpdateNode
int UpdateNode(vtkRenderer *, vtkContourRepresentation *, double *vtkNotUsed(node), int vtkNotUsed(idx)) override=0
The interpolator is given a chance to update the node.
vtkPolygonalSurfaceContourLineInterpolator::DistanceOffset
double DistanceOffset
Draw the polyline at a certain height (in the direction of the vertex normal) above the polydata.
Definition: vtkPolygonalSurfaceContourLineInterpolator.h:105