VTK
dox/Widgets/vtkPolygonalSurfaceContourLineInterpolator.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkPolygonalSurfaceContourLineInterpolator.h
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00042 #ifndef __vtkPolygonalSurfaceContourLineInterpolator_h
00043 #define __vtkPolygonalSurfaceContourLineInterpolator_h
00044 
00045 #include "vtkPolyDataContourLineInterpolator.h"
00046 
00047 class vtkDijkstraGraphGeodesicPath;
00048 class vtkIdList;
00049 
00050 class VTK_WIDGETS_EXPORT vtkPolygonalSurfaceContourLineInterpolator : public vtkPolyDataContourLineInterpolator
00051 {
00052 public:
00054 
00055   vtkTypeMacro(vtkPolygonalSurfaceContourLineInterpolator, vtkPolyDataContourLineInterpolator);
00056   void PrintSelf(ostream& os, vtkIndent indent);
00058 
00059   static vtkPolygonalSurfaceContourLineInterpolator *New();
00060 
00062 
00066   virtual int InterpolateLine( vtkRenderer *ren, 
00067                                vtkContourRepresentation *rep,
00068                                int idx1, int idx2 );
00070   
00072 
00077   virtual int UpdateNode( vtkRenderer *, 
00078                           vtkContourRepresentation *,
00079                           double * vtkNotUsed(node), int vtkNotUsed(idx) );
00081 
00083 
00087   vtkSetMacro( DistanceOffset, double ); 
00088   vtkGetMacro( DistanceOffset, double ); 
00090 
00093   void GetContourPointIds( vtkContourRepresentation *rep, vtkIdList *idList );
00094   
00095 protected:
00096   vtkPolygonalSurfaceContourLineInterpolator();
00097   ~vtkPolygonalSurfaceContourLineInterpolator();
00098 
00101   double         DistanceOffset;
00102 
00103 private:
00104   vtkPolygonalSurfaceContourLineInterpolator(const vtkPolygonalSurfaceContourLineInterpolator&);  //Not implemented
00105   void operator=(const vtkPolygonalSurfaceContourLineInterpolator&);  //Not implemented
00106 
00107   // Cache the last used vertex id's (start and end).
00108   // If they are the same, don't recompute.
00109   vtkIdType      LastInterpolatedVertexIds[2];
00110 
00111   vtkDijkstraGraphGeodesicPath* DijkstraGraphGeodesicPath;
00112 };
00113 
00114 #endif