00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkGeoTerrain2D.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 =========================================================================*/ 00015 /*------------------------------------------------------------------------- 00016 Copyright 2008 Sandia Corporation. 00017 Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, 00018 the U.S. Government retains certain rights in this software. 00019 -------------------------------------------------------------------------*/ 00035 #ifndef __vtkGeoTerrain2D_h 00036 #define __vtkGeoTerrain2D_h 00037 00038 #include "vtkGeoTerrain.h" 00039 00040 class vtkAbstractTransform; 00041 class vtkAssembly; 00042 class vtkCollection; 00043 class vtkGeoImageRepresentation; 00044 class vtkGeoSource; 00045 class vtkGeoTerrainNode; 00046 class vtkRenderer; 00047 00048 class VTK_GEOVIS_EXPORT vtkGeoTerrain2D : public vtkGeoTerrain 00049 { 00050 public: 00051 static vtkGeoTerrain2D *New(); 00052 vtkTypeMacro(vtkGeoTerrain2D,vtkGeoTerrain); 00053 virtual void PrintSelf(ostream& os, vtkIndent indent); 00054 00056 00058 vtkSetMacro(TextureTolerance, double); 00059 vtkGetMacro(TextureTolerance, double); 00061 00063 00065 vtkSetMacro(LocationTolerance, double); 00066 vtkGetMacro(LocationTolerance, double); 00068 00070 virtual vtkAbstractTransform* GetTransform(); 00071 00072 protected: 00073 vtkGeoTerrain2D(); 00074 ~vtkGeoTerrain2D(); 00075 00076 double LocationTolerance; 00077 double TextureTolerance; 00078 00080 virtual void InitializeNodeAnalysis(vtkRenderer* ren); 00081 00084 virtual bool NodeInViewport(vtkGeoTerrainNode* node); 00085 00088 virtual int EvaluateNode(vtkGeoTerrainNode* node); 00089 00090 double CameraBounds[4]; 00091 double PixelSize; 00092 00093 private: 00094 vtkGeoTerrain2D(const vtkGeoTerrain2D&); // Not implemented 00095 void operator=(const vtkGeoTerrain2D&); // Not implemented 00096 }; 00097 00098 #endif