00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkGeoView.h,v $ 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 -------------------------------------------------------------------------*/ 00045 #ifndef __vtkGeoView_h 00046 #define __vtkGeoView_h 00047 00048 #include "vtkRenderView.h" 00049 00050 class vtkActor; 00051 class vtkAssembly; 00052 class vtkGeoAlignedImageRepresentation; 00053 class vtkGeoInteractorStyle; 00054 class vtkGeoTerrain; 00055 class vtkGlobeSource; 00056 class vtkImageData; 00057 class vtkPolyDataMapper; 00058 class vtkViewTheme; 00059 00060 class VTK_GEOVIS_EXPORT vtkGeoView : public vtkRenderView 00061 { 00062 public: 00063 static vtkGeoView *New(); 00064 vtkTypeRevisionMacro(vtkGeoView, vtkRenderView); 00065 void PrintSelf(ostream& os, vtkIndent indent); 00066 00069 vtkGeoAlignedImageRepresentation* AddDefaultImageRepresentation(vtkImageData* image); 00070 00072 virtual void PrepareForRendering(); 00073 00075 void BuildLowResEarth( double origin[3] ); 00076 00078 00079 virtual void SetLockHeading(bool lock); 00080 virtual bool GetLockHeading(); 00081 vtkBooleanMacro(LockHeading, bool); 00083 00085 vtkGeoInteractorStyle* GetGeoInteractorStyle(); 00086 00088 virtual void SetGeoInteractorStyle(vtkGeoInteractorStyle* style); 00089 00091 00092 virtual void SetTerrain(vtkGeoTerrain* terrain); 00093 vtkGetObjectMacro(Terrain, vtkGeoTerrain); 00095 00097 virtual void Render(); 00098 00099 protected: 00100 vtkGeoView(); 00101 ~vtkGeoView(); 00102 00103 bool HasMesa(); 00104 00105 vtkGlobeSource* LowResEarthSource; 00106 vtkPolyDataMapper* LowResEarthMapper; 00107 vtkActor* LowResEarthActor; 00108 vtkAssembly* Assembly; 00109 vtkGeoTerrain* Terrain; 00110 00111 int UsingMesaDrivers; 00112 00113 private: 00114 vtkGeoView(const vtkGeoView&); // Not implemented. 00115 void operator=(const vtkGeoView&); // Not implemented. 00116 }; 00117 00118 #endif 00119