VTK
dox/Interaction/Widgets/vtkTerrainContourLineInterpolator.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkTerrainContourLineInterpolator.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 =========================================================================*/
00043 #ifndef __vtkTerrainContourLineInterpolator_h
00044 #define __vtkTerrainContourLineInterpolator_h
00045 
00046 #include "vtkInteractionWidgetsModule.h" // For export macro
00047 #include "vtkContourLineInterpolator.h"
00048 
00049 class vtkImageData;
00050 class vtkProjectedTerrainPath;
00051 
00052 class VTKINTERACTIONWIDGETS_EXPORT vtkTerrainContourLineInterpolator
00053                        : public vtkContourLineInterpolator
00054 {
00055 public:
00057   static vtkTerrainContourLineInterpolator *New();
00058 
00060 
00061   vtkTypeMacro(vtkTerrainContourLineInterpolator,
00062                               vtkContourLineInterpolator);
00063   void PrintSelf(ostream& os, vtkIndent indent);
00065 
00067 
00072   virtual int InterpolateLine( vtkRenderer *ren,
00073                                vtkContourRepresentation *rep,
00074                                int idx1, int idx2 );
00076 
00078 
00081   virtual int UpdateNode( vtkRenderer *,
00082                           vtkContourRepresentation *,
00083                           double * vtkNotUsed(node), int vtkNotUsed(idx) );
00085 
00087 
00089   virtual void SetImageData(vtkImageData *);
00090   vtkGetObjectMacro(ImageData, vtkImageData);
00092 
00094 
00098   vtkGetObjectMacro(Projector, vtkProjectedTerrainPath);
00100 
00101 protected:
00102   vtkTerrainContourLineInterpolator();
00103   ~vtkTerrainContourLineInterpolator();
00104 
00105   vtkImageData              *ImageData; // height field data
00106   vtkProjectedTerrainPath   *Projector;
00107 
00108 private:
00109   vtkTerrainContourLineInterpolator(const vtkTerrainContourLineInterpolator&);  //Not implemented
00110   void operator=(const vtkTerrainContourLineInterpolator&);  //Not implemented
00111 };
00112 
00113 #endif