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 #include "vtkGeovisCoreModule.h" // For export macro
34 #include "vtkGeoSource.h"
35 #include "vtkSmartPointer.h" // For smart pointer ivars
36 
37 class vtkGeoTerrainNode;
38 class vtkGeoTreeNode;
39 
41 {
42 public:
43  static vtkGeoFileTerrainSource *New();
45  void PrintSelf(ostream& os, vtkIndent indent);
46 
49 
51  virtual bool FetchRoot(vtkGeoTreeNode* root);
52 
54  virtual bool FetchChild(vtkGeoTreeNode* node, int index, vtkGeoTreeNode* child);
55 
57 
58  vtkSetStringMacro(Path);
59  vtkGetStringMacro(Path);
61 
62 protected:
63 
64  bool ReadModel(int level, int id, vtkGeoTerrainNode* node);
65 
66 private:
67  vtkGeoFileTerrainSource(const vtkGeoFileTerrainSource&); // Not implemented
68  void operator=(const vtkGeoFileTerrainSource&); // Not implemented
69 
70  char* Path;
71 };
72 
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