VTK
vtkGeoFileTerrainSource.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkGeoFileTerrainSource.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 /*-------------------------------------------------------------------------
16  Copyright 2008 Sandia Corporation.
17  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18  the U.S. Government retains certain rights in this software.
19 -------------------------------------------------------------------------*/
33 #ifndef vtkGeoFileTerrainSource_h
34 #define vtkGeoFileTerrainSource_h
35 
36 #include "vtkGeovisCoreModule.h" // For export macro
37 #include "vtkGeoSource.h"
38 #include "vtkSmartPointer.h" // For smart pointer ivars
39 
40 class vtkGeoTerrainNode;
41 class vtkGeoTreeNode;
42 
44 {
45 public:
46  static vtkGeoFileTerrainSource *New();
48  void PrintSelf(ostream& os, vtkIndent indent);
49 
52 
54  virtual bool FetchRoot(vtkGeoTreeNode* root);
55 
57  virtual bool FetchChild(vtkGeoTreeNode* node, int index, vtkGeoTreeNode* child);
58 
60 
61  vtkSetStringMacro(Path);
62  vtkGetStringMacro(Path);
64 
65 protected:
66 
67  bool ReadModel(int level, int id, vtkGeoTerrainNode* node);
68 
69 private:
70  vtkGeoFileTerrainSource(const vtkGeoFileTerrainSource&); // Not implemented
71  void operator=(const vtkGeoFileTerrainSource&); // Not implemented
72 
73  char* Path;
74 };
75 
76 #endif
A source for tiled geometry on disk.
A multi-resolution geographic data source.
Definition: vtkGeoSource.h:56
virtual bool FetchChild(vtkGeoTreeNode *node, int index, vtkGeoTreeNode *child)=0
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:38
#define VTKGEOVISCORE_EXPORT
Stores data for a patch of the globe.
static vtkObject * New()
virtual bool FetchRoot(vtkGeoTreeNode *root)=0