VTK
|
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 "vtkViewsGeovisModule.h" // For export macro 00052 #include "vtkRenderView.h" 00053 00054 class vtkActor; 00055 class vtkAssembly; 00056 class vtkGeoAlignedImageRepresentation; 00057 class vtkGeoInteractorStyle; 00058 class vtkGeoTerrain; 00059 class vtkGlobeSource; 00060 class vtkImageData; 00061 class vtkPolyDataMapper; 00062 class vtkViewTheme; 00063 00064 class VTKVIEWSGEOVIS_EXPORT vtkGeoView : public vtkRenderView 00065 { 00066 public: 00067 static vtkGeoView *New(); 00068 vtkTypeMacro(vtkGeoView, vtkRenderView); 00069 void PrintSelf(ostream& os, vtkIndent indent); 00070 00073 vtkGeoAlignedImageRepresentation* AddDefaultImageRepresentation(vtkImageData* image); 00074 00076 virtual void PrepareForRendering(); 00077 00079 void BuildLowResEarth( double origin[3] ); 00080 00082 00083 virtual void SetLockHeading(bool lock); 00084 virtual bool GetLockHeading(); 00085 vtkBooleanMacro(LockHeading, bool); 00087 00089 vtkGeoInteractorStyle* GetGeoInteractorStyle(); 00090 00092 virtual void SetGeoInteractorStyle(vtkGeoInteractorStyle* style); 00093 00095 00096 virtual void SetTerrain(vtkGeoTerrain* terrain); 00097 vtkGetObjectMacro(Terrain, vtkGeoTerrain); 00099 00101 virtual void Render(); 00102 00103 protected: 00104 vtkGeoView(); 00105 ~vtkGeoView(); 00106 00107 vtkGlobeSource* LowResEarthSource; 00108 vtkPolyDataMapper* LowResEarthMapper; 00109 vtkActor* LowResEarthActor; 00110 vtkAssembly* Assembly; 00111 vtkGeoTerrain* Terrain; 00112 00113 int UsingMesaDrivers; 00114 00115 private: 00116 vtkGeoView(const vtkGeoView&); // Not implemented. 00117 void operator=(const vtkGeoView&); // Not implemented. 00118 }; 00119 00120 #endif 00121