VTK
|
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 "vtkContourLineInterpolator.h" 00047 00048 class vtkImageData; 00049 class vtkProjectedTerrainPath; 00050 00051 class VTK_WIDGETS_EXPORT vtkTerrainContourLineInterpolator 00052 : public vtkContourLineInterpolator 00053 { 00054 public: 00056 static vtkTerrainContourLineInterpolator *New(); 00057 00059 00060 vtkTypeMacro(vtkTerrainContourLineInterpolator, 00061 vtkContourLineInterpolator); 00062 void PrintSelf(ostream& os, vtkIndent indent); 00064 00066 00071 virtual int InterpolateLine( vtkRenderer *ren, 00072 vtkContourRepresentation *rep, 00073 int idx1, int idx2 ); 00075 00077 00080 virtual int UpdateNode( vtkRenderer *, 00081 vtkContourRepresentation *, 00082 double * vtkNotUsed(node), int vtkNotUsed(idx) ); 00084 00086 00088 virtual void SetImageData(vtkImageData *); 00089 vtkGetObjectMacro(ImageData, vtkImageData); 00091 00093 00097 vtkGetObjectMacro(Projector, vtkProjectedTerrainPath); 00099 00100 protected: 00101 vtkTerrainContourLineInterpolator(); 00102 ~vtkTerrainContourLineInterpolator(); 00103 00104 vtkImageData *ImageData; // height field data 00105 vtkProjectedTerrainPath *Projector; 00106 00107 private: 00108 vtkTerrainContourLineInterpolator(const vtkTerrainContourLineInterpolator&); //Not implemented 00109 void operator=(const vtkTerrainContourLineInterpolator&); //Not implemented 00110 }; 00111 00112 #endif