VTK
dox/Geovis/vtkGeoAlignedImageRepresentation.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkGeoAlignedImageRepresentation.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 -------------------------------------------------------------------------*/
00033 #ifndef __vtkGeoAlignedImageRepresentation_h
00034 #define __vtkGeoAlignedImageRepresentation_h
00035 
00036 #include "vtkDataRepresentation.h"
00037 
00038 class vtkGeoImageNode;
00039 class vtkGeoSource;
00040 class vtkGeoTreeNodeCache;
00041 
00042 class VTK_GEOVIS_EXPORT vtkGeoAlignedImageRepresentation : public vtkDataRepresentation
00043 {
00044 public:
00045   static vtkGeoAlignedImageRepresentation *New();
00046   vtkTypeMacro(vtkGeoAlignedImageRepresentation,vtkDataRepresentation);
00047   void PrintSelf(ostream& os, vtkIndent indent);
00048 
00051   virtual vtkGeoImageNode* GetBestImageForBounds(double bounds[4]);
00052 
00054 
00056   virtual vtkGeoSource* GetSource()
00057     { return this->GeoSource; }
00058   virtual void SetSource(vtkGeoSource* source);
00060 
00065   void SaveDatabase(const char* path);
00066 
00067 protected:
00068   vtkGeoAlignedImageRepresentation();
00069   ~vtkGeoAlignedImageRepresentation();
00070 
00072 
00073   void SetGeoSource(vtkGeoSource* source);
00074   vtkGeoSource* GeoSource;
00076 
00078   vtkGeoImageNode* Root;
00079 
00081   void Initialize();
00082 
00084   void PrintTree(ostream& os, vtkIndent indent, vtkGeoImageNode* root);
00085 
00086   vtkGeoTreeNodeCache* Cache;
00087 
00088 private:
00089   vtkGeoAlignedImageRepresentation(const vtkGeoAlignedImageRepresentation&); // Not implemented
00090   void operator=(const vtkGeoAlignedImageRepresentation&); // Not implemented
00091 };
00092 
00093 #endif