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