VTK
dox/Interaction/Widgets/vtkDijkstraImageContourLineInterpolator.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkDijkstraImageContourLineInterpolator.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 =========================================================================*/
00040 #ifndef __vtkDijkstraImageContourLineInterpolator_h
00041 #define __vtkDijkstraImageContourLineInterpolator_h
00042 
00043 #include "vtkInteractionWidgetsModule.h" // For export macro
00044 #include "vtkContourLineInterpolator.h"
00045 
00046 class vtkDijkstraImageGeodesicPath;
00047 class vtkImageData;
00048 
00049 class VTKINTERACTIONWIDGETS_EXPORT vtkDijkstraImageContourLineInterpolator
00050                        : public vtkContourLineInterpolator
00051 {
00052 public:
00054 
00055   vtkTypeMacro(vtkDijkstraImageContourLineInterpolator,
00056                               vtkContourLineInterpolator);
00057   void PrintSelf(ostream& os, vtkIndent indent);
00059 
00060   static vtkDijkstraImageContourLineInterpolator *New();
00061 
00063 
00067   virtual int InterpolateLine( vtkRenderer *ren,
00068                                vtkContourRepresentation *rep,
00069                                int idx1, int idx2 );
00071 
00073 
00076   virtual void SetCostImage( vtkImageData* );
00077   vtkGetObjectMacro( CostImage, vtkImageData );
00079 
00081 
00082   vtkGetObjectMacro( DijkstraImageGeodesicPath, vtkDijkstraImageGeodesicPath );
00084 
00085 protected:
00086   vtkDijkstraImageContourLineInterpolator();
00087   ~vtkDijkstraImageContourLineInterpolator();
00088 
00089   vtkImageData *CostImage;
00090   vtkDijkstraImageGeodesicPath *DijkstraImageGeodesicPath;
00091 
00092 private:
00093   vtkDijkstraImageContourLineInterpolator(
00094     const vtkDijkstraImageContourLineInterpolator&);  //Not implemented
00095   void operator=(const
00096     vtkDijkstraImageContourLineInterpolator&);  //Not implemented
00097 };
00098 
00099 #endif