VTK  9.0.20210924
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 =========================================================================*/
59 #ifndef vtkPolygonalSurfaceContourLineInterpolator_h
60 #define vtkPolygonalSurfaceContourLineInterpolator_h
61 
62 #include "vtkInteractionWidgetsModule.h" // For export macro
64 
66 class vtkIdList;
67 
68 class VTKINTERACTIONWIDGETS_EXPORT vtkPolygonalSurfaceContourLineInterpolator
70 {
71 public:
73 
77  void PrintSelf(ostream& os, vtkIndent indent) override;
79 
81 
87  int InterpolateLine(vtkRenderer* ren, vtkContourRepresentation* rep, int idx1, int idx2) override;
88 
96  int UpdateNode(vtkRenderer*, vtkContourRepresentation*, double* vtkNotUsed(node),
97  int vtkNotUsed(idx)) override;
98 
100 
106  vtkSetMacro(DistanceOffset, double);
107  vtkGetMacro(DistanceOffset, double);
109 
115 
116 protected:
119 
125 
126 private:
129  void operator=(const vtkPolygonalSurfaceContourLineInterpolator&) = delete;
130 
131  // Cache the last used vertex id's (start and end).
132  // If they are the same, don't recompute.
133  vtkIdType LastInterpolatedVertexIds[2];
134 
135  vtkDijkstraGraphGeodesicPath* DijkstraGraphGeodesicPath;
136 };
137 
138 #endif
vtkPolygonalSurfaceContourLineInterpolator::UpdateNode
int UpdateNode(vtkRenderer *, vtkContourRepresentation *, double *vtkNotUsed(node), int vtkNotUsed(idx)) override
The interpolator is given a chance to update the node.
vtkIdType
int vtkIdType
Definition: vtkType.h:332
vtkContourRepresentation
represent the vtkContourWidget
Definition: vtkContourRepresentation.h:118
vtkPolygonalSurfaceContourLineInterpolator::vtkPolygonalSurfaceContourLineInterpolator
vtkPolygonalSurfaceContourLineInterpolator()
vtkPolygonalSurfaceContourLineInterpolator::GetContourPointIds
void GetContourPointIds(vtkContourRepresentation *rep, vtkIdList *ids)
Get the contour point ids.
vtkPolyDataContourLineInterpolator.h
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:113
vtkPolygonalSurfaceContourLineInterpolator::New
static vtkPolygonalSurfaceContourLineInterpolator * New()
vtkPolygonalSurfaceContourLineInterpolator::~vtkPolygonalSurfaceContourLineInterpolator
~vtkPolygonalSurfaceContourLineInterpolator() override
vtkIdList
list of point or cell ids
Definition: vtkIdList.h:140
vtkPolygonalSurfaceContourLineInterpolator::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instances of this class.
vtkPolygonalSurfaceContourLineInterpolator
Contour interpolator for to place points on polygonal surfaces.
Definition: vtkPolygonalSurfaceContourLineInterpolator.h:70
vtkPolyDataContourLineInterpolator
Contour interpolator for polygonal data.
Definition: vtkPolyDataContourLineInterpolator.h:36
vtkRenderer
abstract specification for renderers
Definition: vtkRenderer.h:182
vtkPolygonalSurfaceContourLineInterpolator::InterpolateLine
int InterpolateLine(vtkRenderer *ren, vtkContourRepresentation *rep, int idx1, int idx2) override
Subclasses that wish to interpolate a line segment must implement this.
vtkDijkstraGraphGeodesicPath
Dijkstra algorithm to compute the graph geodesic.
Definition: vtkDijkstraGraphGeodesicPath.h:78
vtkPolygonalSurfaceContourLineInterpolator::DistanceOffset
double DistanceOffset
Draw the polyline at a certain height (in the direction of the vertex normal) above the polydata.
Definition: vtkPolygonalSurfaceContourLineInterpolator.h:124