• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

dox/Geovis/vtkGeoView.h

Go to the documentation of this file.
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 vtkRenderWindow;
00059 class vtkViewTheme;
00060 
00061 class VTK_GEOVIS_EXPORT vtkGeoView : public vtkRenderView
00062 {
00063 public:
00064   static vtkGeoView *New();
00065   vtkTypeRevisionMacro(vtkGeoView, vtkRenderView);
00066   void PrintSelf(ostream& os, vtkIndent indent);
00067   
00070   vtkGeoAlignedImageRepresentation* AddDefaultImageRepresentation(vtkImageData* image);
00071   
00075   virtual void SetupRenderWindow(vtkRenderWindow* win);
00076 
00078   virtual void PrepareForRendering();
00079   
00081   void BuildLowResEarth( double origin[3] );
00082   
00084 
00085   virtual void SetLockHeading(bool lock);
00086   virtual bool GetLockHeading();
00087   vtkBooleanMacro(LockHeading, bool);
00089 
00091   virtual void ApplyViewTheme(vtkViewTheme* theme);
00092 
00094   vtkGeoInteractorStyle* GetGeoInteractorStyle();
00095 
00097   virtual void SetGeoInteractorStyle(vtkGeoInteractorStyle* style);
00098 
00100 
00101   virtual void SetTerrain(vtkGeoTerrain* terrain);
00102   vtkGetObjectMacro(Terrain, vtkGeoTerrain);
00104   
00105 protected:
00106   vtkGeoView();
00107   ~vtkGeoView();
00108   
00109   vtkRenderWindow*   RenderWindow;
00110   vtkGlobeSource*    LowResEarthSource;
00111   vtkPolyDataMapper* LowResEarthMapper;
00112   vtkActor*          LowResEarthActor;
00113   vtkAssembly*       Assembly;
00114   vtkGeoTerrain*     Terrain;
00115 
00116 private:
00117   vtkGeoView(const vtkGeoView&);  // Not implemented.
00118   void operator=(const vtkGeoView&);  // Not implemented.
00119 };
00120 
00121 #endif
00122 

Generated by  doxygen 1.7.1