VTK
dox/Interaction/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 "vtkInteractionWidgetsModule.h" // For export macro
00046 #include "vtkPolyDataContourLineInterpolator.h"
00047 
00048 class vtkDijkstraGraphGeodesicPath;
00049 class vtkIdList;
00050 
00051 class VTKINTERACTIONWIDGETS_EXPORT vtkPolygonalSurfaceContourLineInterpolator : public vtkPolyDataContourLineInterpolator
00052 {
00053 public:
00055 
00056   vtkTypeMacro(vtkPolygonalSurfaceContourLineInterpolator, vtkPolyDataContourLineInterpolator);
00057   void PrintSelf(ostream& os, vtkIndent indent);
00059 
00060   static vtkPolygonalSurfaceContourLineInterpolator *New();
00061 
00063 
00067   virtual int InterpolateLine( vtkRenderer *ren,
00068                                vtkContourRepresentation *rep,
00069                                int idx1, int idx2 );
00071 
00073 
00078   virtual int UpdateNode( vtkRenderer *,
00079                           vtkContourRepresentation *,
00080                           double * vtkNotUsed(node), int vtkNotUsed(idx) );
00082 
00084 
00088   vtkSetMacro( DistanceOffset, double );
00089   vtkGetMacro( DistanceOffset, double );
00091 
00094   void GetContourPointIds( vtkContourRepresentation *rep, vtkIdList *idList );
00095 
00096 protected:
00097   vtkPolygonalSurfaceContourLineInterpolator();
00098   ~vtkPolygonalSurfaceContourLineInterpolator();
00099 
00102   double         DistanceOffset;
00103 
00104 private:
00105   vtkPolygonalSurfaceContourLineInterpolator(const vtkPolygonalSurfaceContourLineInterpolator&);  //Not implemented
00106   void operator=(const vtkPolygonalSurfaceContourLineInterpolator&);  //Not implemented
00107 
00108   // Cache the last used vertex id's (start and end).
00109   // If they are the same, don't recompute.
00110   vtkIdType      LastInterpolatedVertexIds[2];
00111 
00112   vtkDijkstraGraphGeodesicPath* DijkstraGraphGeodesicPath;
00113 };
00114 
00115 #endif