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