OGS
VtkRaster.h
Go to the documentation of this file.
1
14#pragma once
15
16#include <string>
17#include "GeoLib/Raster.h"
18
19class vtkImageAlgorithm;
20class vtkImageImport;
21class vtkImageReader2;
22
30{
31public:
35 static vtkImageImport* loadImageFromArray(double const*const data_array, GeoLib::RasterHeader header);
44 static vtkImageAlgorithm* loadImage(const std::string &fileName);
45private:
46#ifdef GEOTIFF_FOUND
52 static vtkImageAlgorithm* loadImageFromTIFF(const std::string& fileName);
53#endif
54
60 static vtkImageReader2* loadImageFromFile(const std::string &fileName);
61
68 static std::string findWorldFile(const std::string& filename);
69
74 static bool readWorldFile(std::string const& filename, vtkImageReader2* image);
75};
Definition of the GeoLib::Raster class.
Loading raster data such as images or ArcGIS-data into VTK image data structures.
Definition VtkRaster.h:30
static std::string findWorldFile(const std::string &filename)
static vtkImageAlgorithm * loadImageFromTIFF(const std::string &fileName)
static vtkImageReader2 * loadImageFromFile(const std::string &fileName)
static bool readWorldFile(std::string const &filename, vtkImageReader2 *image)
static vtkImageImport * loadImageFromArray(double const *const data_array, GeoLib::RasterHeader header)
Returns a VtkImageAlgorithm from an array of pixel values and some image meta data.
Definition VtkRaster.cpp:82
static vtkImageAlgorithm * loadImage(const std::string &fileName)
Loads an image- or raster-file into an vtkImageAlgorithm-Object.
Definition VtkRaster.cpp:43
Contains the relevant information when storing a geoscientific raster data.
Definition Raster.h:28