VTK
dox/Geovis/Core/vtkGeoFileImageSource.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkGeoFileImageSource.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 "vtkGeovisCoreModule.h" // For export macro
00034 #include "vtkGeoSource.h"
00035 #include "vtkSmartPointer.h" // For smart pointer ivars
00036 
00037 class vtkGeoImageNode;
00038 class vtkGeoTreeNode;
00039 
00040 class VTKGEOVISCORE_EXPORT vtkGeoFileImageSource : public vtkGeoSource
00041 {
00042 public:
00043   static vtkGeoFileImageSource *New();
00044   vtkTypeMacro(vtkGeoFileImageSource,vtkGeoSource);
00045   void PrintSelf(ostream& os, vtkIndent indent);
00046 
00047   vtkGeoFileImageSource();
00048   ~vtkGeoFileImageSource();
00049 
00051   virtual bool FetchRoot(vtkGeoTreeNode* root);
00052 
00054   virtual bool FetchChild(vtkGeoTreeNode* node, int index, vtkGeoTreeNode* child);
00055 
00057 
00058   vtkSetStringMacro(Path);
00059   vtkGetStringMacro(Path);
00061 
00062 protected:
00063 
00064   bool ReadImage(int level, int id, vtkGeoImageNode* node);
00065 
00066 private:
00067   vtkGeoFileImageSource(const vtkGeoFileImageSource&); // Not implemented
00068   void operator=(const vtkGeoFileImageSource&); // Not implemented
00069 
00070   char* Path;
00071 };
00072