VTK
vtkGeoFileImageSource.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkGeoFileImageSource.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 -------------------------------------------------------------------------*/
34 #ifndef vtkGeoFileImageSource_h
35 #define vtkGeoFileImageSource_h
36 
37 #include "vtkGeovisCoreModule.h" // For export macro
38 #include "vtkGeoSource.h"
39 #include "vtkSmartPointer.h" // For smart pointer ivars
40 
41 class vtkGeoImageNode;
42 class vtkGeoTreeNode;
43 
44 class VTKGEOVISCORE_EXPORT vtkGeoFileImageSource : public vtkGeoSource
45 {
46 public:
49  void PrintSelf(ostream& os, vtkIndent indent);
50 
53 
57  virtual bool FetchRoot(vtkGeoTreeNode* root);
58 
62  virtual bool FetchChild(vtkGeoTreeNode* node, int index, vtkGeoTreeNode* child);
63 
65 
68  vtkSetStringMacro(Path);
71 
72 protected:
73 
74  bool ReadImage(int level, int id, vtkGeoImageNode* node);
75 
76 private:
77  vtkGeoFileImageSource(const vtkGeoFileImageSource&) VTK_DELETE_FUNCTION;
78  void operator=(const vtkGeoFileImageSource&) VTK_DELETE_FUNCTION;
79 
80  char* Path;
81 };
82 
83 #endif
vtkGeoFileImageSource::New
static vtkGeoFileImageSource * New()
vtkGeoFileImageSource::FetchChild
virtual bool FetchChild(vtkGeoTreeNode *node, int index, vtkGeoTreeNode *child)
Fetches the child image of a parent from disk.
vtkGeoTreeNode
Stores data for a patch of the globe.
Definition: vtkGeoTreeNode.h:47
vtkGeoImageNode
A node in a multi-resolution image tree.
Definition: vtkGeoImageNode.h:44
vtkGeoFileImageSource::ReadImage
bool ReadImage(int level, int id, vtkGeoImageNode *node)
vtkX3D::level
@ level
Definition: vtkX3D.h:395
vtkGeoFileImageSource::FetchRoot
virtual bool FetchRoot(vtkGeoTreeNode *root)
Fetches the root image representing the whole globe.
vtkGeoSource.h
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkGeoFileImageSource
A tiled image source on disk.
Definition: vtkGeoFileImageSource.h:45
vtkSmartPointer.h
vtkGeoFileImageSource::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkGetStringMacro
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
vtkGeoFileImageSource::vtkGeoFileImageSource
vtkGeoFileImageSource()
vtkGeoFileImageSource::~vtkGeoFileImageSource
~vtkGeoFileImageSource()
vtkX3D::index
@ index
Definition: vtkX3D.h:246
vtkGeoSource
A multi-resolution geographic data source.
Definition: vtkGeoSource.h:58