00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkGeoFileTerrainSource.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 #include "vtkGeoSource.h" 00034 #include "vtkSmartPointer.h" // For smart pointer ivars 00035 00036 class vtkGeoTerrainNode; 00037 class vtkGeoTreeNode; 00038 00039 class VTK_GEOVIS_EXPORT vtkGeoFileTerrainSource : public vtkGeoSource 00040 { 00041 public: 00042 static vtkGeoFileTerrainSource *New(); 00043 vtkTypeMacro(vtkGeoFileTerrainSource,vtkGeoSource); 00044 void PrintSelf(ostream& os, vtkIndent indent); 00045 00046 vtkGeoFileTerrainSource(); 00047 ~vtkGeoFileTerrainSource(); 00048 00050 virtual bool FetchRoot(vtkGeoTreeNode* root); 00051 00053 virtual bool FetchChild(vtkGeoTreeNode* node, int index, vtkGeoTreeNode* child); 00054 00056 00057 vtkSetStringMacro(Path); 00058 vtkGetStringMacro(Path); 00060 00061 protected: 00062 00063 bool ReadModel(int level, int id, vtkGeoTerrainNode* node); 00064 00065 private: 00066 vtkGeoFileTerrainSource(const vtkGeoFileTerrainSource&); // Not implemented 00067 void operator=(const vtkGeoFileTerrainSource&); // Not implemented 00068 00069 char* Path; 00070 }; 00071