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 =========================================================================*/
43 #ifndef vtkPolygonalSurfaceContourLineInterpolator_h
44 #define vtkPolygonalSurfaceContourLineInterpolator_h
45 
46 #include "vtkInteractionWidgetsModule.h" // For export macro
48 
50 class vtkIdList;
51 
53 {
54 public:
56 
60  void PrintSelf(ostream& os, vtkIndent indent);
62 
64 
70  virtual int InterpolateLine( vtkRenderer *ren,
72  int idx1, int idx2 );
73 
81  virtual int UpdateNode( vtkRenderer *,
83  double * vtkNotUsed(node), int vtkNotUsed(idx) );
84 
86 
92  vtkSetMacro( DistanceOffset, double );
93  vtkGetMacro( DistanceOffset, double );
95 
101 
102 protected:
105 
111 
112 private:
114  void operator=(const vtkPolygonalSurfaceContourLineInterpolator&) VTK_DELETE_FUNCTION;
115 
116  // Cache the last used vertex id's (start and end).
117  // If they are the same, don't recompute.
118  vtkIdType LastInterpolatedVertexIds[2];
119 
120  vtkDijkstraGraphGeodesicPath* DijkstraGraphGeodesicPath;
121 };
122 
123 #endif
vtkIdType
int vtkIdType
Definition: vtkType.h:287
vtkPolygonalSurfaceContourLineInterpolator::~vtkPolygonalSurfaceContourLineInterpolator
~vtkPolygonalSurfaceContourLineInterpolator()
vtkContourRepresentation
represent the vtkContourWidget
Definition: vtkContourRepresentation.h:121
vtkPolygonalSurfaceContourLineInterpolator::vtkPolygonalSurfaceContourLineInterpolator
vtkPolygonalSurfaceContourLineInterpolator()
vtkPolyDataContourLineInterpolator.h
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkPolygonalSurfaceContourLineInterpolator::New
static vtkPolygonalSurfaceContourLineInterpolator * New()
vtkIdList
list of point or cell ids
Definition: vtkIdList.h:37
vtkPolygonalSurfaceContourLineInterpolator::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkPolygonalSurfaceContourLineInterpolator
Contour interpolator for to place points on polygonal surfaces.
Definition: vtkPolygonalSurfaceContourLineInterpolator.h:53
vtkPolyDataContourLineInterpolator
Contour interpolator for polygonal data.
Definition: vtkPolyDataContourLineInterpolator.h:36
vtkPolygonalSurfaceContourLineInterpolator::InterpolateLine
virtual int InterpolateLine(vtkRenderer *ren, vtkContourRepresentation *rep, int idx1, int idx2)
Subclasses that wish to interpolate a line segment must implement this.
vtkPolygonalSurfaceContourLineInterpolator::UpdateNode
virtual int UpdateNode(vtkRenderer *, vtkContourRepresentation *, double *vtkNotUsed(node), int vtkNotUsed(idx))
The interpolator is given a chance to update the node.
vtkRenderer
abstract specification for renderers
Definition: vtkRenderer.h:64
vtkDijkstraGraphGeodesicPath
Dijkstra algorithm to compute the graph geodesic.
Definition: vtkDijkstraGraphGeodesicPath.h:49
vtkPolygonalSurfaceContourLineInterpolator::GetContourPointIds
void GetContourPointIds(vtkContourRepresentation *rep, vtkIdList *idList)
Get the contour point ids.
vtkPolygonalSurfaceContourLineInterpolator::DistanceOffset
double DistanceOffset
Draw the polyline at a certain height (in the direction of the vertex normal) above the polydata.
Definition: vtkPolygonalSurfaceContourLineInterpolator.h:110