 |
VTK
9.1.0
|
Go to the documentation of this file.
34 #ifndef vtkGDALRasterReader_h
35 #define vtkGDALRasterReader_h
37 #include <vtkIOGDALModule.h>
80 vtkSetMacro(CollateBands,
bool);
81 vtkGetMacro(CollateBands,
bool);
82 vtkBooleanMacro(CollateBands,
bool);
88 vtkSetVector2Macro(TargetDimensions,
int);
89 vtkGetVector2Macro(TargetDimensions,
int);
153 int TargetDimensions[2];
163 class vtkGDALRasterReaderInternal;
164 vtkGDALRasterReaderInternal*
Impl;
171 #endif // vtkGDALRasterReader_h
std::vector< std::string > Domains
int * GetRasterDimensions()
Get raster width and height in number of pixels (cells)
const char * GetProjectionWKT() const
Returns WKT spatial reference.
std::string DriverShortName
Read raster file formats using GDAL.
int CanReadFile(VTK_FILEPATH const char *fname) override
Is this file supported.
std::string DomainMetaData
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkGDALRasterReader() override
const std::string & GetDriverLongName()
Return driver name which was used to read the current data.
const std::string & GetDriverShortName()
Return driver name which was used to read the current data.
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called in response to a REQUEST_DATA request from the executive.
int GetCellArrayStatus(const char *name)
The following methods allow selective reading of bands.
double GetInvalidValue(size_t bandIndex=0, int *hasNoData=nullptr)
Return the invalid value for a pixel (for blanking purposes) in a specified raster band.
static vtkGDALRasterReader * New()
const char * GetProjectionString() const
Return proj4 spatial reference.
const char * GetCellArrayName(int index)
The following methods allow selective reading of bands.
a simple class to control print indentation
std::string ProjectionWKT
Superclass of binary file readers.
const std::vector< std::string > & GetMetaData()
Return metadata as reported by GDAL.
void EnableAllCellArrays()
The following methods allow selective reading of bands.
vtkIdType GetNumberOfCells()
Return the number of cells that are not set to GDAL NODATA.
int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
void DisableAllCellArrays()
The following methods allow selective reading of bands.
std::vector< std::string > MetaData
int GetNumberOfCellArrays()
The following methods allow selective reading of bands.
void SetCellArrayStatus(const char *name, int status)
The following methods allow selective reading of bands.
std::vector< std::string > GetDomainMetaData(const std::string &domain)
Return domain metadata.
const double * GetGeoCornerPoints()
Return geo-referenced corner points (Upper left, lower left, lower right, upper right)
std::string DriverLongName
int FillOutputPortInformation(int port, vtkInformation *info) override
These method should be reimplemented by subclasses that have more than a single input or single outpu...
vtkGDALRasterReaderInternal * Impl